diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 6c40e7256c..5206c8f543 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -60,6 +60,23 @@ public class PaymentIntentConfirmOptions : BaseOptions [JsonProperty("save_payment_method")] public bool? SavePaymentMethod { get; set; } + /// + /// 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 on_session if you intend to only reuse the payment method when your customer + /// is present in your checkout flow. Use off_session 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 + /// off_session will ensure that they are authenticated while processing this + /// PaymentIntent. You will then be able to make later off-session payments for this + /// customer. + /// + [JsonProperty("setup_future_usage")] + public string SetupFutureUsage { get; set; } + /// /// Shipping information for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index 011c128324..a127f39198 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -79,6 +79,23 @@ public class PaymentIntentUpdateOptions : BaseOptions [JsonProperty("save_payment_method")] public bool? SavePaymentMethod { get; set; } + /// + /// 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 on_session if you intend to only reuse the payment method when your customer + /// is present in your checkout flow. Use off_session 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 + /// off_session will ensure that they are authenticated while processing this + /// PaymentIntent. You will then be able to make later off-session payments for this + /// customer. + /// + [JsonProperty("setup_future_usage")] + public string SetupFutureUsage { get; set; } + /// /// Shipping information for this PaymentIntent. ///