GH05TF4C3 Posted February 16, 2018 Share Posted February 16, 2018 Hello! I have been testing the official Stripe module and after "paying" with the test environment it redirects to the correct URL which is encoded completly wrong: https://[SHOP_URL]/index.php?amp%3Bcontroller=validation&%3Bmodule=stripe_official&client_secret=[REDACTED]&fc=module&livemode=false&source=[REDACTED] Notice the bold text which is leading to the error. When I remove these strings the callback marks the payment as complete. I haven't touched any file and the permissions are correct. Anyone have any ideas? Thanks! Link to comment Share on other sites More sharing options...
bellini13 Posted February 23, 2018 Share Posted February 23, 2018 Why not seek the module authors support? Link to comment Share on other sites More sharing options...
wdv94 Posted November 7, 2018 Share Posted November 7, 2018 I had similar issue The problem is that prestashop encode the simple & character with &%3B You can use javascript to fix that stripeUrl = stripeUrl.replace(/&%3B/g, '&') I used it in payment.tpl file in stripe_official/views/templates/hook/payment.tpl Link to comment Share on other sites More sharing options...
kjetil Posted November 22, 2018 Share Posted November 22, 2018 On 11/7/2018 at 11:57 AM, wdv94 said: I had similar issue The problem is that prestashop encode the simple & character with &%3B You can use javascript to fix that stripeUrl = stripeUrl.replace(/&%3B/g, '&') I used it in payment.tpl file in stripe_official/views/templates/hook/payment.tpl Put it in line number? Link to comment Share on other sites More sharing options...
MojoSwift Posted March 7, 2020 Share Posted March 7, 2020 Turning on 'friendly URLs' under BO > Traffic & SEO > SEO & URLs should give you a URL that will be accepted by Stripe. And thus redirect correctly. But, there are other reasons why you may not want to turn on friendly URLs.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now