[Skip to main content](#vessel-content)

#   Payment Amount Display not Passing to PayPal Properly

##

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 8 months ago [\#265283](#265283) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")* was created by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")*

-- url of the page with the problem -- : [ shop.justducks.co.uk](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago [\#265290](#265290) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#265290 "-- 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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 8 months ago [\#265491](#265491) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  Replied by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")* on topic *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#265491 "-- 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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago [\#265496](#265496) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#265496 "-- 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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 8 months ago [\#266009](#266009) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  Replied by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")* on topic *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#266009 "-- 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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#266015](#266015) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Payment Amount Display not Passing to PayPal Properly](/forum/29-payment-methods/889409-payment-amount-display-not-passing-to-paypal-properly#266015 "-- 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 &quot;0&quot; 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 &quot;0&quot; at the end.  Thank you.")*

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 : Code:

4.1 = 4.10 = 4.10000000000

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk0MDktcGF5bWVudC1hbW91bnQtZGlzcGxheS1ub3QtcGFzc2luZy10by1wYXlwYWwtcHJvcGVybHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.093 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
