Stripe External Redirect Navigation

Fix back button navigating to Stripe checkout after payment completion. Use when: (1) User completes Stripe payment and clicks back button, but returns to Stripe instead of the app, (2) document.referrer check for external sites doesn't work with Stripe, (3) router.back() goes to payment provider instead of previous app page. Covers Next.js, React Router, and any SPA with external payment redirects. Solution uses sessionStorage to track external returns reliably.

hubeiqiao Updated

File contents

hubeiqiao/skills/tree/main/stripe-external-redirect-navigation commit e9a44ad21e

Frequently asked questions

npx skillmds@latest add hubeiqiao/stripe-external-redirect-navigation