Jump to content

[Stripe] Error 404 - Not Found after payment


Recommended Posts

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&amp%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

  • 8 months later...

I had similar issue

The problem is that prestashop encode the simple  &  character with  &amp%3B

You can use javascript to fix that

stripeUrl = stripeUrl.replace(/&amp%3B/g, '&')

I used it in payment.tpl file in stripe_official/views/templates/hook/payment.tpl

Link to comment
Share on other sites

  • 2 weeks later...
On 11/7/2018 at 11:57 AM, wdv94 said:

I had similar issue

The problem is that prestashop encode the simple  &  character with  &amp%3B

You can use javascript to fix that


stripeUrl = stripeUrl.replace(/&amp%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

  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...