Skip to content

Commit

Permalink
Add support for UseStripeSDK on PaymentIntent create and confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Nov 4, 2019
1 parent 9c502ec commit aef3d02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit aef3d02

Please sign in to comment.