createWithPaymentMethodCreateParams

fun createWithPaymentMethodCreateParams(paymentMethodCreateParams: PaymentMethodCreateParams, clientSecret: String, savePaymentMethod: Boolean? = null, mandateId: String? = null, mandateData: MandateDataParams? = null, setupFutureUsage: ConfirmPaymentIntentParams.SetupFutureUsage? = null, shipping: ConfirmPaymentIntentParams.Shipping? = null, paymentMethodOptions: PaymentMethodOptionsParams? = null): ConfirmPaymentIntentParams

Create the parameters necessary for confirming a PaymentIntent while attaching PaymentMethodCreateParams data

Parameters

paymentMethodCreateParams

params for the PaymentMethod that will be attached to this PaymentIntent

clientSecret

client secret from the PaymentIntent that is to be confirmed

savePaymentMethod

Set to true to save this PaymentIntent’s payment method to the associated Customer, if the payment method is not already attached. This parameter only applies to the payment method passed in the same request or the current payment method attached to the PaymentIntent and must be specified again if a new payment method is added.

mandateId

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

mandateData

optional details about the Mandate to create.

setupFutureUsage

Optional. See SetupFutureUsage.

shipping

Optional. See Shipping.