Step by step: Pay with Stripe Checkout
- The shopper starts checkout and the store creates a Checkout Session with the cart's line items.
- The store redirects the shopper to the Stripe-hosted payment page.
- The shopper enters card details and Stripe checks the payment.
- The card is declined; the shopper stays on the Stripe page and can retry.
- The shopper retries on the payment page.
- Payment succeeds. Stripe sends checkout.session.completed; the webhook marks the order paid and the receipt goes out.
- If the shopper leaves, the session expires without payment and the order stays unpaid.