#mehmet-checkout

1 messages · Page 1 of 1 (latest)

toxic ember
#

@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

scarlet quail
toxic ember
#

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

toxic ember
#

where's the frontend JavaScript?

scarlet quail
#

for the html/php

#

i'm looking for the js, 2 sec

toxic ember
#

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).

toxic ember