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[]OptionalonBehalfOf?: stringThe connected account whose payment method configurations will apply to the PaymentSheet session. Affects the allowed payment methods and whether card brand choice is enabled. If saved, the payment method will be saved to your platform account. See our PaymentIntent docs for more information.
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.