create

fun create(clientSecret: String, paymentMethodType: PaymentMethod.Type): ConfirmSetupIntentParams

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

clientSecret

client secret from the PaymentIntent that is to be confirmed

paymentMethodType

the known type of the SetupIntent's attached PaymentMethod


fun create(paymentMethodId: String, clientSecret: String, mandateData: MandateDataParams? = null, mandateId: String? = null): ConfirmSetupIntentParams

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

paymentMethodId

ID of the payment method (a PaymentMethod, Card, BankAccount, or saved Source object) to attach to this SetupIntent.

clientSecret

The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.

mandateData

optional details about the Mandate to create.

mandateId

optional ID of the Mandate to be used for this payment.


fun create(paymentMethodCreateParams: PaymentMethodCreateParams, clientSecret: String, mandateData: MandateDataParams? = null, mandateId: String? = null): ConfirmSetupIntentParams

Create the parameters necessary for confirming a SetupIntent with a new PaymentMethod

Return

params that can be use to confirm a SetupIntent

Parameters

paymentMethodCreateParams

the params to create a new PaymentMethod that will be attached to the SetupIntent being confirmed

clientSecret

The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.

mandateData

optional details about the Mandate to create.

mandateId

optional ID of the Mandate to be used for this payment.