【问题标题】:How long is a Stripe Checkout session valid for?Stripe Checkout 会话的有效期是多久?
【发布时间】:2021-07-20 11:51:16
【问题描述】:

我正在通过 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);

【问题讨论】:

    标签: c# stripe-payments


    【解决方案1】:

    Stripe Checkout Session 在创建后 24 小时到期。

    来源:https://stripe.com/docs/payments/accept-a-payment

    【讨论】:

      猜你喜欢
      • 2021-02-20
      • 2016-10-21
      • 2013-03-30
      • 1970-01-01
      • 2021-09-18
      • 2022-01-18
      • 1970-01-01
      • 1970-01-01
      • 2022-12-28
      相关资源
      最近更新 更多