I use the Bottle microframe (but I doubt my problem comes from it)
First, if I define a simple redirect from / test _redirect to / x, it works. So, Redirect redirects () to simple jobs.
Now I have a page / purchase that uses Stripe Checkout (user form) pointing to my server / stripe _process
Basically Stripe Checkout checks the credit card transaction, creates a token and POST it in my / stripe _process.
/ stripe_process does its own thing (calling Stripe to pay for the card), then when the transaction is successful, I use the Bottle statement to:
redirect('/transaction_summary')
My web server logs show that indeed / transaction _summary is called and the server side of the script is being processed (I put flags in my script to check this) and its template is returned (analysis of the Network browser gives 303 then 200 in / transaction _summary, I even get the correct response data: it seems 100% normal), but nothing happens on the browser page (I still have my start page / purchase in the url field, instead of being redirected to / transaction _summary): the browser received response / transaction _summary, preview available in Chrome devtools preview but not displaying it!
Also, if in / stripe_process changes redirect () with a simple return pattern (), then the problem is: the data is not processed by the browser.
? 100% :
- Firefox/Windows
- Chrome/iOS 9 (iPad)
- Chrome/linux
- Iceweasel/linux
- Chrome/Android
- Chrome/OSX
, , Stripe Checkout - ( redirect() ), .
Chrome-devtools-network (../transaction_summary download) /transaction _summary , .
, -. / Stripe
$(window).on('popstate', function() {handler.close();}); , stripe_handler ( handler.closed...)
EDIT:
redirect() (), : html- , , .
EDIT2:
href to/test_redirect /x, .
, Stripe. Stripe - ('click' on href), - , .