ConfirmationToken result type.

interface Result {
    id: string;
    created: number;
    expiresAt?: number;
    liveMode: boolean;
    paymentIntentId?: string;
    setupIntentId?: string;
    returnURL?: string;
    setupFutureUsage?: PaymentIntent.FutureUsage;
    paymentMethodPreview?: ConfirmationToken.PaymentMethodPreview;
    shipping?: ConfirmationToken.ShippingDetails;
    allResponseFields: Record<string, any>;
}

Properties

id: string

Unique identifier for the object (e.g. ctoken_...).

created: number

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

expiresAt?: number

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

liveMode: boolean

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

paymentIntentId?: string

ID of the PaymentIntent this token was used to confirm.

setupIntentId?: string

ID of the SetupIntent this token was used to confirm.

returnURL?: string

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

setupFutureUsage?: PaymentIntent.FutureUsage

Indicates intent to reuse the payment method.

Non-PII preview of payment details captured by the Payment Element.

Shipping information collected on this token.

allResponseFields: Record<string, any>

All response fields from the API, including any additional or undocumented fields.