Stripe Checkout 会话的有效期是多长时间?
How long is a Stripe Checkout session valid for?
我正在通过 C# SDK 创建一个 Stripe Checkout 会话,并希望知道该会话的有效期。
var options = new SessionCreateOptions
{
SuccessUrl = "https://example.com/success.html?session_id={CHECKOUT_SESSION_ID}",
CancelUrl = "https://example.com/canceled.html",
PaymentMethodTypes = new List<string>
{
"card",
},
Mode = "subscription",
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
Price = req.PriceId,
Quantity = 1,
},
},
};
var service = new SessionService();
var session = await service.CreateAsync(options);
Stripe Checkout 会话在创建 24 小时后过期。
我正在通过 C# SDK 创建一个 Stripe Checkout 会话,并希望知道该会话的有效期。
var options = new SessionCreateOptions
{
SuccessUrl = "https://example.com/success.html?session_id={CHECKOUT_SESSION_ID}",
CancelUrl = "https://example.com/canceled.html",
PaymentMethodTypes = new List<string>
{
"card",
},
Mode = "subscription",
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
Price = req.PriceId,
Quantity = 1,
},
},
};
var service = new SessionService();
var session = await service.CreateAsync(options);
Stripe Checkout 会话在创建 24 小时后过期。