An aggregate discount amount for the Checkout Session.

interface DiscountAmount {
    amount: string;
    minorUnitsAmount: number;
    displayName: string;
    promotionCode?: string;
    percentOff?: number;
}

Hierarchy (View Summary)

Properties

amount: string

Localized display value, for example $10.00.

minorUnitsAmount: number

Value in the currency's smallest unit.

displayName: string

Customer-facing discount name.

promotionCode?: string

The applied promotion code, when the discount came from one.

percentOff?: number

The percentage discounted, when applicable.