OptionalconfirmConfirm immediately. Requires paymentMethod.
OptionalcustomerCustomer the saved payment method is attached to on success
OptionaldescriptionArbitrary description
OptionalidempotencyIdempotency key (defaults to a generated UUID)
OptionalmetadataKey/value metadata
OptionalpaymentAn existing payment method to set up (e.g. from Stripe.js)
OptionalpaymentPayment method types to accept, e.g. ['card']. Sent as
allowed_payment_method_types. When omitted, Stripe
uses the types enabled in your Dashboard (automatic payment methods).
OptionalreturnWhere to send the customer after a redirect-based authentication. Only
used when confirming here, so it requires confirm: true.
OptionalusageHow the saved payment method will be used. off_session (charging the
customer when they aren't present) asks for the authentication needed up
front.
Options for creating a SetupIntent