Preview of payment method details captured by the ConfirmationToken. This represents the transactional checkout state, not a reusable PaymentMethod object.

interface PaymentMethodPreview {
    type: PaymentMethod.Type;
    billingDetails?: BillingDetails;
    allowRedisplay?: ConfirmationToken.AllowRedisplay;
    customerId?: string;
    allResponseFields: Record<string, any>;
}

Properties

Type of the payment method.

billingDetails?: BillingDetails

Billing details for the payment method.

This field indicates whether this payment method can be shown again to its customer in a checkout flow

customerId?: string

The ID of the Customer to which this PaymentMethod is saved. Null when the PaymentMethod has not been saved to a Customer.

allResponseFields: Record<string, any>

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