A view of the Checkout Session that represents the customer's checkout.

interface Session {
    id: string;
    businessName?: string;
    livemode: boolean;
    currency: string;
    minorUnitsAmountDivisor?: number;
    presentmentDetails?: PresentmentDetails;
    email?: string;
    paymentOption?: Checkout.PaymentOptionDisplayData;
    shippingAddress?: ShippingAddress;
    orderSummaryItems: OneTimePriceOrderSummaryItem[];
    discountAmounts: DiscountAmount[];
    tax?: Tax;
    taxAmounts?: TaxAmount[];
    totals: Totals;
    status: SessionStatus;
    lastPaymentError?: StripeError<ErrorCode>;
}

Properties

id: string

The Checkout Session ID.

businessName?: string

The business name configured in Stripe Business Public Details.

livemode: boolean

Whether the Checkout Session is in live mode.

currency: string

Three-letter ISO 4217 currency code in lowercase.

minorUnitsAmountDivisor?: number

Factor used to convert minor currency units to major units.

presentmentDetails?: PresentmentDetails

Currency presentation details for the customer.

email?: string

The customer's email address.

The customer's currently selected payment option.

shippingAddress?: ShippingAddress

The customer's shipping contact details and postal address.

orderSummaryItems: OneTimePriceOrderSummaryItem[]

The items the customer is purchasing.

discountAmounts: DiscountAmount[]

Aggregate discount amounts for all order items.

tax?: Tax

Tax computation status.

taxAmounts?: TaxAmount[]

Aggregate amounts for each tax rate after Checkout computes tax.

totals: Totals

Tax and discount breakdown for the computed session total.

Lifecycle status of the Checkout Session.

lastPaymentError?: StripeError<ErrorCode>

The error encountered the last time confirmation ran.