- Posts: 252
- Thank you received: 1
paypal not working
-- Joomla version -- : 3.9
-- PHP version -- : 7.2
Hi,
We use paypal plugin, it used to work well, but recently we got this error message:
Connection failure - error code : 10004 , error message : Currency does not support decimal precision.
Could you tell me what is going wrong,
Thanks
Please Log in or Create an account to join the conversation.
Which currencies are you using on your shop ? And what was the currency of the order for which you had the issue ?
And could you provide a screenshot of the settings of that currency in the menu System>Currencies ?
Please Log in or Create an account to join the conversation.
Thanks for quick replay.
The product currency is in US$ or EU
but my site default have to set to NT$.
the system convert it correctly, but I guess the Thousand separator cause the problem, paypal may take it as decimal point.
Is there a way to set my hikashop not showing Thousand separator?
Best Regards
Please Log in or Create an account to join the conversation.
The problem is not with the currency settings.
Looking into it, it seems PayPal recently changed the way they handle some currencies to require no decimals for prices with them (without telling anyone of course):
developer.paypal.com/docs/reports/refere...upported-currencies/
So we need to adapt the code in the PayPal plugin to remove the decimals for the currencies listed on that page as not supporting decimals.
Here is a new version of the PayPal plugin. Install it via the Joomla installer and confirm it fixes the issue. That way, we can include the changes on our end for the next version of HikaShop.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
The plugin we were using is PaypalExpress
and the setting page is in attached_1
and the new plugin setting page is in attached_2
Could you send me this one
Thanks again
Please Log in or Create an account to join the conversation.
Indeed, that's a different plugin.
Here is the install zip modified to handle the rounding difference for PayPal Express:
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Thansk for you prompt replay, but I still have trouble setting my paypal.
Attached is the screenshot from after installing the new paypalExpress plug in.
That was when I click on add to cart.
Could you help to solve the trouble, thanks.
Please Log in or Create an account to join the conversation.
That's because you have an old version of HikaShop.
Update your HikaShop and you won't have that error.
I checked your website and it seems pretty standard so updating shouldn't be a problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I just installed the latest version of hikashop.
and reinstall the paypalExpress plugin.
but the error message is still there
please see the attached filed.
Best regards
Please Log in or Create an account to join the conversation.
Please activate the "debug" setting of the payment method and try again.
Then, please provide the content of the "payment log file" in the HikaShop configuration. it should provide information on what's wrong.
Please Log in or Create an account to join the conversation.
Good day.
The debug option is by default activated.
but I use payment as the keyword to search the site , just couldn't find anything looked like log file.
Could you tell me where I can find it.
Thanks
Please Log in or Create an account to join the conversation.
Just in cast, to be sure that everybody speak about the same payment log, read this documentation, here .
Now, in this log file you must find relative paypal plugin error message or at least elements to the plugin process.
Anyway, provide your log file in order to allow us to analyse it.
Use our Contact us to provide this file, and don't forget to add an Url link to this topic in order to keep the link.
Awaiting you to progress.
Regards
Please Log in or Create an account to join the conversation.
I checked and you have the default PayPal Express plugin of HikaShop 4.6.0.
Note that when you updated your HikaShop to the 4.6.0, it overwrote the PayPal Express plugin with the one pre installed in the 4.6.0.
So if you want to test the version of the plugin I provided in this thread, you need to install the plugin again.
That's why it still produced the same error with the currency and the prices not rounded properly in the debug data.
Please Log in or Create an account to join the conversation.
We reinstall the plugin but the error message was still there.
So we uninstall the two paypal plugins from joomla and reinstall the plugin.
but again we got the same error message.
I leave test site backend and FTP acc/pwd. unchange, would you login to my site and check what's wrong.
Thanks
Please Log in or Create an account to join the conversation.
I checked your FTP and you still had the default plugin of HikaShop 4.6.0.
So I'm not sure what you're doing.
I did for you: I installed the zip I gave in www.hikashop.com/forum/checkout/904605-p...-working.html#342632 on your website with the backend access you provided.
I then confirmed that the plugin files were updated via the FTP access.
Then, I made a test payment with PayPal express checkout and I was successfully redirected to PayPal on your website. So it seems to be working.
Please confirm.
Please Log in or Create an account to join the conversation.