@suluk/payments - v0.1.0
    Preparing search index...

    Function validateDiscount

    • Validate a discount against a subtotal, with a SPECIFIC rejection reason (PARITY: "specific discount-rejection reasons" — a shopper is told why, not just "invalid"). Structural only; the app layers active/window/usage.

      Parameters

      • subtotalCents: number
      • d: Discount | null | undefined

      Returns DiscountResult