SessionStatus:
    | { type: "open" }
    | { type: "expired" }
    | { type: "complete"; paymentStatus: PaymentStatus }

The lifecycle status of a Checkout Session.

Type declaration

  • { type: "open" }
    • type: "open"

      The Checkout Session is still in progress.

  • { type: "expired" }
    • type: "expired"

      The Checkout Session has expired.

  • { type: "complete"; paymentStatus: PaymentStatus }
    • type: "complete"

      The customer completed the Checkout Session.

    • paymentStatus: PaymentStatus

      The payment status after completion.