Skip to content

Commit

Permalink
Add support for SetupFutureUsage on PaymentIntent update and confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jul 5, 2019
1 parent c290d57 commit ca967c5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ public class PaymentIntentConfirmOptions : BaseOptions
[JsonProperty("save_payment_method")]
public bool? SavePaymentMethod { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent’s payment
/// method.
/// If present, the payment method used with this PaymentIntent can be attached to a
/// Customer, even after the transaction completes.
/// Use <c>on_session</c> if you intend to only reuse the payment method when your customer
/// is present in your checkout flow. Use <c>off_session</c> if your customer may or may
/// not be in your checkout flow.
/// Stripe uses this to dynamically optimize your payment flow and comply with regional
/// legislation and network rules. For example, if your customer is impacted by SCA, using
/// <c>off_session</c> will ensure that they are authenticated while processing this
/// PaymentIntent. You will then be able to make later off-session payments for this
/// customer.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Shipping information for this PaymentIntent.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@ public class PaymentIntentUpdateOptions : BaseOptions
[JsonProperty("save_payment_method")]
public bool? SavePaymentMethod { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent’s payment
/// method.
/// If present, the payment method used with this PaymentIntent can be attached to a
/// Customer, even after the transaction completes.
/// Use <c>on_session</c> if you intend to only reuse the payment method when your customer
/// is present in your checkout flow. Use <c>off_session</c> if your customer may or may
/// not be in your checkout flow.
/// Stripe uses this to dynamically optimize your payment flow and comply with regional
/// legislation and network rules. For example, if your customer is impacted by SCA, using
/// <c>off_session</c> will ensure that they are authenticated while processing this
/// PaymentIntent. You will then be able to make later off-session payments for this
/// customer.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Shipping information for this PaymentIntent.
/// </summary>
Expand Down

0 comments on commit ca967c5

Please sign in to comment.