Jump to content

Payment says error, but Stripe, PayPal and MercadoPago do get the money correctly


Recommended Posts

Every time an order total is more than MXN 1,000 (about USD 50), the orders list in backoffice says "payment error". But the payment DOES get through. I can see the payments are done correctly on Stripe, PayPal and MercadoPago.

It happens all the time the amount gets over MXN 1,000. All the plugins are up to date.

The main problem is that my clients get an error notice, saying their payment wanst processed. Then they check their bank accounts and see that the money IS payed. Then they get angry.

I don't know what to do. Do anyone know how I can fix this issue?

Thanks in advance.

 

 

order-error.jpg

Share this post


Link to post
Share on other sites

Hi, 

Most probably it is a bug of the mercado pago payment module when the module passes back the paid sum to prestashop, and the error appears then. 

Please contact the module developwr and ask him to pass over the payment sum without the thousand separator as prpbably there is the bug of the module. 

Kind regards, Leo. 

  • Like 1

Share this post


Link to post
Share on other sites

1 hour ago, Prestachamps said:

Hi, 

Most probably it is a bug of the mercado pago payment module when the module passes back the paid sum to prestashop, and the error appears then. 

Please contact the module developwr and ask him to pass over the payment sum without the thousand separator as prpbably there is the bug of the module. 

Kind regards, Leo. 

It could be. But the same thing happens with Stripe and PayPal payments. Which makes me think that it could be something more like a global configuration of PrestaShop...

Share this post


Link to post
Share on other sites

Hi,

then most probably by disabling the thousand separator globally on shop could help with this issue:

1:look for the following folder: /localization/CLDR/core/common/main/

2:Inside this folder you will find a lot of XML files. Each corresponds to a variation of available language. Let's find the one that corresponds to the language of our shop to which we want to change the currency format. For example, if we look for US English, the file that needs to be modified is en_US.xml.

3:Find the XML tag called currencyFormats. There are 2 variants: standard and accounting. The one that directly affects the FrontOffice is "standard" but it is recommended to change both to maintain uniformity in the shop:
Change currency symbol in PrestaShop from "<pattern>¤#,##0.00</pattern>"  to "<pattern>¤#0.00</pattern>"   (remove the thousand separator and leave only one # for the number.
 The parameter ¤ corresponds to the currency symbol that is previously configured, but which we can also change.

4: IMPORTANT: Do not forget to clear the cache (Advanced Parameters -> Performance -> Clear cache) after applying the changes to the file in order to view the settings in the FrontOffice of your shop.

Kind regards, Leo.

  • Like 1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More