Salar Saeedi

Product management · Analysis

The checkout can succeed after the tab closes

Test fulfillment with a closed tab, a delayed payment and a replayed event before shipping a checkout flow.

Salar Saeedi2 min read
Three-stage illustration — The checkout can succeed after the tab closes

In a checkout rehearsal, ask someone to pay and immediately close the browser. Then check whether the order can reach fulfillment without a thank-you page ever loading. This is a useful gap in a demo that always follows the happy path.

Treat the return page as a view

A redirect helps the buyer see what happened. Stripe’s fulfillment guide describes webhooks as the reliable path because the buyer can lose their connection before returning. A return page can still request the latest order state and present a receipt.

Source · Stripe · Fulfill orders

Make duplicate deliveries harmless

Stripe documents retry and possible duplicate webhook events. The event handler can record receipt and let a durable order transition decide whether fulfillment is still due. Replaying an event should leave the original shipment or entitlement in place.

Source · Stripe · Webhook events

Rehearse the longer path

Use one delayed method, close the tab before the callback and replay the notification. Check the receipt, order timeline and fulfillment count. Also run a failed delayed payment. The last case should leave the order in a state where a customer can make a new attempt.

What to take away

The demo passes when each successful purchase is delivered once, including purchases whose browsers never return.

References

Related work in the portfolio