Background of the issue:
I turned on the multicurrency option in WPML, but it is not working correctly with the PayU payment gateway. I turned off this function, but it is causing an error when I'm doing a backup of the site. FX rates are automatically updated with currencylayer.
Symptoms:
Upload failed. Nie mógł authenicate z przewidzianym login i hasło. Technical Error: Implicit conversion from float 4.266666666666667 to int loses precision.
Questions:
Why does turning off the multicurrency option cause an error during site backup?
Hi There!
Thanks for reaching out to WPML Support.
Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.
Please note that the Multi-currency feature of WooCommerce Multilingual is currently compatible with a few payment gateways, such as WooCommerce PayPal Payments, Stripe, and Direct Bank Transfers. For more details, you can refer to the link below:
As you mentioned that you’re using the PayU payment gateway, it is not listed as compatible, which could be the reason why the multi-currency feature is not working as expected.
However, after reviewing the translated error message, I noticed two key points:
1. There is an error with the PayU access credentials—they appear to be incorrect.
2. There is a loss of precision caused by removing the fractional part from the number.
To resolve this:
- Please verify that your PayU access credentials are correct.
- Edit the currency settings you’ve added and ensure the rounding option is set to disabled. You can refer to this screenshot for guidance: hidden link.
But, if the issue persists, please try with a compatible payment gateway. I hope it will help.
Feel free to let us know if you need further assistance or clarification. We'll be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] multicurrency’ is closed to new replies.