#jackson.bayor-checkout
1 messages · Page 1 of 1 (latest)
Hello! Can you share the exact error you're getting and also share what your redirect code looks like?
And how are you calling that endpoint client-side?
I call a create order endpoint and the response I expect is the rederict response
I basically call an endpoint to create an order and the server does all till the create seeion point I sent to you
But how specifically are you calling the endpoint client-side? If you using XMLHttpRequest or fetch() then that won't work with 303 server-side redirects
Yeah so that's the issue - axios uses XMLHttpRequest, which won't work for server-side requests. You need to a standard HTML form submit like we do here https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#redirect-customers
Okay thanks