Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SetupFutureUsage on PaymentIntent update and confirm #1687

Merged
merged 1 commit into from
Jul 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
ob-stripe marked this conversation as resolved.
Show resolved Hide resolved
/// 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
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