From aef3d02e720d459990d2a68c673e03c4e175fb98 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 4 Nov 2019 12:10:35 -0800 Subject: [PATCH] Add support for `UseStripeSDK` on `PaymentIntent` create and confirm --- paymentintent.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paymentintent.go b/paymentintent.go index 66dee90269..22c1119cb8 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -134,6 +134,7 @@ type PaymentIntentConfirmParams struct { SetupFutureUsage *string `form:"setup_future_usage"` Shipping *ShippingDetailsParams `form:"shipping"` Source *string `form:"source"` + UseStripeSDK *bool `form:"use_stripe_sdk"` } // PaymentIntentPaymentMethodOptionsCardInstallmentsPlanParams represents details about the @@ -197,8 +198,9 @@ type PaymentIntentParams struct { TransferData *PaymentIntentTransferDataParams `form:"transfer_data"` TransferGroup *string `form:"transfer_group"` - // This parameter only works if you confirm on creation. - OffSession *bool `form:"off_session"` + // Those parameters only works if you confirm on creation. + OffSession *bool `form:"off_session"` + UseStripeSDK *bool `form:"use_stripe_sdk"` } // PaymentIntentListParams is the set of parameters that can be used when listing payment intents.