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 PaymentMethodOptions when updating a PaymentIntent and a SetupIntent #1920

Merged
merged 1 commit into from
Feb 12, 2020
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("payment_method")]
public string PaymentMethod { get; set; }

/// <summary>
/// Payment-method-specific configuration for this PaymentIntent.
/// </summary>
[JsonProperty("payment_method_options")]
public PaymentIntentPaymentMethodOptionsOptions PaymentMethodOptions { get; set; }

/// <summary>
/// The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("payment_method")]
public string PaymentMethod { get; set; }

/// <summary>
/// Payment-method-specific configuration for this SetupIntent.
/// </summary>
[JsonProperty("payment_method_options")]
public SetupIntentPaymentMethodOptionsOptions PaymentMethodOptions { get; set; }

/// <summary>
/// The list of payment method types that this SetupIntent is allowed to set up. If this is
/// not provided, defaults to card.
Expand Down