ConfirmationToken
Confirmation Token objects help transport client-side data collected by Elements to your server for payment confirmation. They capture payment method information, shipping details, and other checkout state from Elements, then pass them to your server where you can use them to confirm a PaymentIntent or SetupIntent.
Confirmation Tokens are single-use and expire 15 minutes after creation.
Think of the ConfirmationToken as an immutable bag of data that serves two purposes:
Transport checkout state collected by Elements needed to confirm an Intent
Capture Elements configuration for validation at confirmation time
Related guides: Confirmation Tokens
Types
Properties
ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
Payment method data collected from Elements. This represents the transactional checkout state, not a reusable PaymentMethod object.
Indicates how you intend to use the payment method for future payments. This is automatically determined based on Elements configuration and user input.
ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
Shipping information collected on this ConfirmationToken.