Result:
    | { status: "completed"; paymentStatus: PaymentStatus }
    | { status: "canceled" }
    | { status: "failed"; error: StripeError<ErrorCode> }

The result of confirming a Checkout Session.

Type declaration

  • { status: "completed"; paymentStatus: PaymentStatus }
    • status: "completed"

      The customer completed the payment flow.

    • paymentStatus: PaymentStatus

      The payment status after Checkout completed.

  • { status: "canceled" }
    • status: "canceled"

      The customer canceled the payment flow.

  • { status: "failed"; error: StripeError<ErrorCode> }
    • status: "failed"

      The payment flow failed.

    • error: StripeError<ErrorCode>

      The error that caused the payment flow to fail.