#JL102
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
๐ thanks!
could you please elaborate more?
When I try to onboard a customer and redirect to the acountLinks.create this is what happens. If I reload the url, I am then able to continue to onboard.
I am trying to understand how to prevent this error from happening.
this happens if you try to do the redirect from a HTTP POST action
e.g. if your frontend posts to the backend server to create the AccountLink, and the backend server returns a 3xx redirect. If you show me the code you use I could say more
but overall the usual approach is that you either change your pages so that you have e.g. a button that links to the backend route (like we do in our example app https://github.com/stripe/stripe-connect-rocketrides/blob/f38e8595b39dfb713ace40482342852b304fb1d3/server/views/signup.pug#L105) or you can have the frontend POST to the backend, but have the backend return a 200 status with e.g. some JSON containing the URL, and do the redirect in Javascript when handling the response.
yep, that code will cause that error
Ok thank you
we should document this much better, but I'd try one of the solutions I posted above. For example just having a <a href="/create_account">Create your Stripe Account</a> somewhere on the page works
Starting on it right now. Thank you again for your time!
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Nope problem solved. Thank you
would you mind me closing the thread then?