ConfirmationToken

class ConfirmationToken : StripeModel

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:

  1. Transport checkout state collected by Elements needed to confirm an Intent

  2. Capture Elements configuration for validation at confirmation time

Related guides: Confirmation Tokens

Types

Link copied to clipboard
class PaymentMethodPreview : StripeModel

Preview of the payment method data collected from Elements. This represents the transactional checkout state, not a reusable PaymentMethod object.

Properties

Link copied to clipboard

Time at which the object was created. Measured in seconds since the Unix epoch.

Link copied to clipboard

Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.

Link copied to clipboard

Unique identifier for the object.

Link copied to clipboard

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Link copied to clipboard

ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.

Link copied to clipboard

Payment method data collected from Elements. This represents the transactional checkout state, not a reusable PaymentMethod object.

Link copied to clipboard

Return URL used to confirm the intent for redirect-based methods.

Link copied to clipboard

Indicates how you intend to use the payment method for future payments. This is automatically determined based on Elements configuration and user input.

Link copied to clipboard

ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.

Link copied to clipboard

Shipping information collected on this ConfirmationToken.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)