OptionalconfirmHandler?: (OptionalconfirmationTokenConfirmHandler?: (Called when the customer confirms payment using confirmation tokens.
Your implementation should follow the guide to create (and optionally confirm) a PaymentIntent or SetupIntent on your server and call the intentCreationCallback with its client secret or an error if one occurred.
IntentConfiguration e.g. the same amount, currency, etc.confirmationToken.id) as the confirmation_token parameter.confirmHandler or confirmationTokenConfirmHandler must be provided, but not both.OptionalpaymentMethodTypes?: string[]
Called when the customer confirms payment. Your implementation should create a PaymentIntent or SetupIntent on your server and call the
intentCreationCallbackwith its client secret or an error if one occurred.IntentConfiguratione.g. the same amount, currency, etc.confirmHandlerorconfirmationTokenConfirmHandlermust be provided, but not both.trueif the customer selected the "Save this payment method for future use" checkbox. Setsetup_future_usageon the PaymentIntent tooff_sessionif this istrue.client_secretof the PaymentIntent or SetupIntent created by your server or the error that occurred. If you're using customFlow: false (default), the error's localizedMessage will be displayed to the customer in the sheet. If you're using customFlow: true, theconfirmmethod fails with the error.