A Stripe Checkout redirect proves the browser reached a page. It doesn't prove your app gave the right account access, handled a delayed payment or avoided granting access twice. For a one-time purchase, trace a test Checkout Session from the button through Stripe's events to the final order. Run every trial in test mode.

Name the purchase and the final result
Pick one product, such as a paid report. Write down the price, which signed-in customer owns the purchase, what they get, and what the app shows for success, failure and pending payment. Ask the agent to point out the session route, return page, webhook, fulfillment function and database record. Stripe says the landing page alone is unreliable, because a customer can pay and never reach it. Fulfillment must run from the webhook.
| Case | Expected Stripe state | Expected app result |
|---|---|---|
| Successful test card | Payment succeeds | One order or entitlement for the intended customer |
| Declined test card | Payment does not succeed | No paid access; clear recovery path |
| Delayed payment method | Payment stays pending, then succeeds or fails | No early fulfillment; update after final event |
| Return page never opens | Payment may still succeed | Webhook completes fulfillment |
| Same event is delivered again | Duplicate delivery | No duplicate fulfillment |
Run the real local chain in a sandbox
Use Stripe's sandbox or test mode and start the app and backend in the right checkout. Stripe's CLI listener forwards events to your local webhook; wire its printed signing secret to the handler and keep it out of commits. Pay with a documented test method, then check the Stripe event, listener output, server log and the order or entitlement. Repeat with a decline and, if available, a delayed success. Never use a real card.
- Record the branch, URL, event ID and app record ID.
- Confirm the app's visible state matches the server record.
Read the webhook and fulfillment code
The webhook must verify Stripe's signature against the raw request body before acting. Review which events it accepts, the session it retrieves, the payment state it checks, and how it maps the session to customer and product. Stripe requires fulfillment to be safe to call repeatedly, even concurrently, and says duplicate or out-of-order events happen. A database uniqueness rule beats an in-memory flag. If the return page also fulfills, both paths share one safe function.
- Send an invalid signature and confirm nothing is created.
- Replay one event and confirm one result.
- Confirm a delayed event can't grant access while unpaid.
Review failures and the production setup
Check what happens when your database write fails after a verified event: is it visible, retryable and safe from double fulfillment? Compare delivery status in Stripe Workbench with your app logs. Before launch, confirm the production endpoint uses HTTPS, the right events, and its own live signing secret and keys from the secret store; sandbox setup doesn't carry over. Subscriptions add renewals, failed invoices and entitlement changes, so review that flow separately.
- Name who reconciles a paid session with a missing entitlement.
- Have an experienced reviewer check code that grants paid access or moves money.
Close the PR with evidence from the latest commit
Ask a second agent for read-only findings on the changed files and test matrix, and reproduce the important ones. A green build, a nice success page and an agent's word are each incomplete. After any fix, rerun the affected sandbox cases on the head commit and record the event, app record and open risks. Approve only when someone owns what remains.
Copyable resources
Use test mode only, and redact account identifiers and secret values before sharing.
One-time product and expected price: [ ]
PR head commit / branch / local URL: [ ]
Stripe sandbox or test environment: [ ]
Checkout route / return page / webhook endpoint: [ ]
Customer-to-session mapping and fulfillment key: [ ]
Success: event [ ], app record [ ], access [ ]
Decline: event/result [ ], access stays blocked [ ]
Delayed payment: pending [ ], final success/failure [ ]
No return page: webhook still fulfills [ ]
Invalid signature: rejected, no fulfillment [ ]
Repeated event: one fulfillment [ ]
Database failure: recovery owner and retry path [ ]
Latest diff and checks reviewed by: [ ]
Production HTTPS endpoint and live secrets confirmed by: [ ]Frequently asked questions
The success page loaded. Is the payment integration finished?
No. Confirm the paid Stripe session, the verified webhook, and one correct order or entitlement in your app. A customer may never reach the return page.
Why test the same webhook twice?
Stripe can deliver duplicate events, and both the webhook and the return page may call fulfillment. One purchase must produce one fulfillment.
Can I use my own card for a small live test?
Use Stripe's sandbox or test mode and its documented test payment methods. Keep test keys and events separate from live configuration.
Does this cover subscriptions?
No, only one-time Checkout. Subscriptions add renewals, failed invoices, cancellation and entitlement states that need their own rules and tests.