GalleryExamplesDraw your repo

Examples / Flow diagrams

Stripe checkout and webhook

The steps from a cart to a paid order with Stripe Checkout, including the webhook that confirms payment and the paths for failed or abandoned payments.

Stripe checkout and webhook: flow diagram of Shopper starts checkout, Create Checkout Session, Redirect shopper to Stripe, Payment succeeds?, Card declined or error and 5 more▶ Play the story
Open in Plotix A copy you can edit, or ask the agent to change.
Plotix's agent drew it from this request

Draw a flow diagram of an online store taking payment with Stripe Checkout: cart, create checkout session, redirect to Stripe, payment succeeds or fails, the checkout.session.completed webhook marks the order paid and sends a receipt, abandoned sessions expire.

Step by step: Pay with Stripe Checkout

  1. The shopper starts checkout and the store creates a Checkout Session with the cart's line items.
  2. The store redirects the shopper to the Stripe-hosted payment page.
  3. The shopper enters card details and Stripe checks the payment.
  4. The card is declined; the shopper stays on the Stripe page and can retry.
  5. The shopper retries on the payment page.
  6. Payment succeeds. Stripe sends checkout.session.completed; the webhook marks the order paid and the receipt goes out.
  7. If the shopper leaves, the session expires without payment and the order stays unpaid.
What's in it
Stripe checkout and webhook: flow diagram of Shopper starts checkout, Create Checkout Session, Redirect shopper to Stripe, Payment succeeds?, Card declined or error and 5 more

How the parts connect

Related examples

OAuth login with PKCE: sequence diagram of Browser, React SPA, Authorization server and App API
OAuth login with PKCESequence · How a single-page app signs a user in with OAuth 2.0 authorization code and PKCE, from th…
Serverless API on AWS: deployment diagram of CloudFront, API Gateway, Lambda functions, Cognito user pool, CloudWatch Logs and 4 more
Serverless API on AWSDeployment · Where a serverless web API runs on AWS: CloudFront and S3 for the site, API Gateway and L…
Web app on Kubernetes: deployment diagram of Users, Ingress controller, Web deployment, Worker deployment, Cron job and 5 more
Web app on KubernetesDeployment · A typical web app deployed on Kubernetes: ingress, web and worker deployments, a managed…