create
Create the parameters necessary for confirming a SetupIntent based on its clientSecret and paymentMethodType
Use this initializer for SetupIntents that already have a PaymentMethod attached.
Parameters
client secret from the PaymentIntent that is to be confirmed
the known type of the SetupIntent's attached PaymentMethod
Create the parameters necessary for confirming a SetupIntent while attaching a PaymentMethod that already exits.
Return
params that can be use to confirm a SetupIntent
Parameters
ID of the payment method (a PaymentMethod, Card, BankAccount, or saved Source object) to attach to this SetupIntent.
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.
optional details about the Mandate to create.
optional ID of the Mandate to be used for this payment.
Create the parameters necessary for confirming a SetupIntent with a new PaymentMethod
Return
params that can be use to confirm a SetupIntent
Parameters
the params to create a new PaymentMethod that will be attached to the SetupIntent being confirmed
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.
optional details about the Mandate to create.
optional ID of the Mandate to be used for this payment.