paypal not working

  • Posts: 252
  • Thank you received: 1
2 years 5 months ago #342576

-- HikaShop version -- : 3.4
-- 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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 5 months ago #342581

Hi,

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.

  • Posts: 252
  • Thank you received: 1
2 years 5 months ago #342615

Hi Nicolas,
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 5 months ago #342619

Hi,

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.

File Attachment:

File Name: paypal_2022-06-22.zip
File Size:10 KB

Attachments:
Last edit: 2 years 5 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 252
  • Thank you received: 1
2 years 5 months ago #342623

I just installed the new plugin, but I found a big problem that is the setting is different from my original one.
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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 5 months ago #342632

Hi,

Indeed, that's a different plugin.
Here is the install zip modified to handle the rounding difference for PayPal Express:

File Attachment:

File Name: paypalexpr...6-22.zip
File Size:10 KB

Attachments:
Last edit: 2 years 5 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 252
  • Thank you received: 1
2 years 4 months ago #342682

Hi,
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.

Attachments:
Last edit: 2 years 4 months ago by twscott.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342685

Hi,

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.

  • Posts: 252
  • Thank you received: 1
2 years 4 months ago #342689

Got it, Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 252
  • Thank you received: 1
2 years 4 months ago #342736

Hi,
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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342748

Hi,

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.

  • Posts: 252
  • Thank you received: 1
2 years 4 months ago #342749

Hi Nicolas,
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.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
2 years 4 months ago #342751

Hello,

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

Last edit: 2 years 4 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342855

Hi,

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.

  • Posts: 252
  • Thank you received: 1
2 years 4 months ago #342886

Hi,
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342888

Hi,

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.

Time to create page: 0.081 seconds
Powered by Kunena Forum