# you should have a e.preventDefault() in the click handler I would say, that's probably the issue(the form is just submitting which reloads the page, before the code for actually calling your backend and redirecting to Stripe happens).