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 0 repo stars

File contents

hubeiqiao/skills commit e9a44ad21e

Frequently asked questions

npx get-skill add hubeiqiao/stripe-external-redirect-navigation