Payment Amount Display not Passing to PayPal Properly

  • Posts: 81
  • Thank you received: 0
7 years 8 months ago #265283

-- url of the page with the problem -- : shop.justducks.co.uk
-- HikaShop version -- : 3.0.0 BUSINESS
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : All

On the PayPal Hosted Checkout Page, the amount: £4.10 is passing to PayPal as: £4.1, dropping the "0" which can create an issue with payment amounts. Please advise as to correction required to pass the full value to PayPal and not truncate the "0" at the end.

Thank you.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 8 months ago #265290

Hi,

We do not truncate the total but round it to 2 decimals. So if there is a 0 or two, they are removed as not needed. But we don't remove the digits. If you have £4.11, you'll get that in PayPal.
This has always worked and the PayPal plugin is used by tens of thousands of online shops and it has never been an issue.
So I don't see why you'd want to change that ?

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

  • Posts: 81
  • Thank you received: 0
7 years 8 months ago #265491

The issue we are referring to is a trailing "0" being removed.

If the ending price is £4.10 (and you said you remove the "0") - then what is being passed to PayPal is £4.1.

This is not correct. The entire number should parse as £4.10 - to include the zero.

Please advise.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 8 months ago #265496

Hi,

You say "This is not correct" but you don't explain why.
4.1 is equal to 4.10 so we won't change that if we don't have a valid explanation to change that.
As I asked previously, I don't see why you'd want to change that ?
Did you get an error somewhere ?

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

  • Posts: 81
  • Thank you received: 0
7 years 7 months ago #266009

The client is making this request.
If in Amercian $$$, the amount $4.1 would be totally incorrect. It should be $4.10.
Client is in the UK and wants the ".10" to appear as such.
If you can't do it, you can't, without an argument on "why" a client would want it that way.
If we had shop this in the US, the "0" darn sure should appear.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #266015

Hello,

The amount is not incorrect but the display is not perform like you want.
Now it is not possible for us to understand what you're talking about and where that information is displayed.
So I'm afraid that the only thing we can tell you is an absolute mathematical answer :

4.1 = 4.10 = 4.10000000000

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum