Skip to main content
After Stripe redirects back to the storefront, recover the cart session and the original submission attempt ID from tab-scoped storage. Poll that attempt rather than creating another order.

Outcome states

Do not treat a redirect, cart lock, timeout, provider response, or paid settlement projection as success by itself. The order-first attempt must report its authoritative outcome. Keep the capability until terminal handling finishes, then clear it from persisted storage. Guest receipt links place a receipt capability in the URL fragment so browsers do not send it to servers as part of the request URL. Capture it in the browser, immediately remove it with history.replaceState, store it in versioned, tab-scoped sessionStorage keyed by API environment, merchant, and receipt ID, and send it as X-Receipt-Token:
A signed-in customer can access their own order through the customer JWT instead. Receipt identifiers alone never authorize access.

Ratings

Submit a rating while the completed cart capability is still available in memory:

Error Codes

Handle terminal and retryable failures.

SDK Reference

Review all checkout and receipt methods.