Stripe redirect URLs not always working right
For first-time subscriptions, the checkout page opens correctly and the successUrl and cancelUrl work as expected. However, for subsequent subscription upgrades or downgrades, only the returnUrl is triggered, while successUrl and cancelUrl are ignored. If returnUrl is not passed it just redirects to home.
This causes issues because users clicking “go back” on the checkout page are redirected to the same URL, which is not the desired behaviour.
This causes issues because users clicking “go back” on the checkout page are redirected to the same URL, which is not the desired behaviour.