#mehmet-checkout
1 messages · Page 1 of 1 (latest)
@scarlet quail can you show the code on the frontend that calls that stripe_payment backend function?
but basically you can not return a 303 redirect to an XMLHttpRequest/fetch/AJAX
instead you either change the frontend to use a simple <form action instead of a XMLHttpRequest, or you change the backend to return the URL of the Session in e.g. JSON data and then the frontend pulls that URL and assigns to window.location to do the redirect
hmm that can't be right, since that is some other form that seems to collect raw card numbers, it's not Checkout(which is a redirect to a different page hosted on Stripe which does all the payment info collection).
either way the solution is what I said above here ^^