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

#   Issue with PayPal payments

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 2 months ago [\#61545](#61545) by [zvone](/forum/user/4509-zvone "View zvone's Profile")  *[Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#61545 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")* was created by *[zvone](/forum/user/4509-zvone "View zvone's Profile")*

Hi,

Here is the thing.

For some products I have the price

netto: 3.95833 Euros
brutto: 4.75 Euros (20% VAT included)

So in Currencies I set

"International fractional digits" to 5, and
"Local fractional digits" to 2

If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal "The link you have used to enter the PayPal system contains an incorrectly formatted item amount." I think it's because of these additional decimal spaces. I have found simmilar post here [ www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html](http://www.hikashop.com/ja/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error.html) but it was 6months ago, I don't know how much has change since then.

Help appreciated ![:)](/media/kunena/emoticons/3.png ":)")

Thank you very much.

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 2 months ago [\#61551](#61551) by [zvone](/forum/user/4509-zvone "View zvone's Profile")  Replied by *[zvone](/forum/user/4509-zvone "View zvone's Profile")* on topic *[Re: Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#61551 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")*

Problem solved! ![:)](/media/kunena/emoticons/3.png ":)")

added in paypal plugin.

$currency-&gt;currency_locale = 2;

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 2 months ago [\#62307](#62307) by [zvone](/forum/user/4509-zvone "View zvone's Profile")  Replied by *[zvone](/forum/user/4509-zvone "View zvone's Profile")* on topic *[Re: Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#62307 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")*

Hmmm, kinda doesn't work ![:)](/media/kunena/emoticons/3.png ":)").. I it is possible to get on Paypal screen but it reject the payment if one tries to pay.

I get this message on email -

"Paypal notification was rejected because of the amount received (155.68EUR) from the amount of the order (155.67983EUR) deviates." If you look this whole post you will see what I'm trying to achieve.

Can you please help me with this. Thanks.

Regards,
Zvonimir

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTU0NS1pc3N1ZS13aXRoLXBheXBhbC1wYXltZW50cz90bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14305
-
-

14 years 2 months ago [\#62354](#62354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#62354 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")*

There are two places in the plugin where you need to add the line you added. Apparently, you added it only once when the order information is sent to paypal, and not when the payment notification from paypal is sent to HikaShop.

You should add it before:
$price_check = round($dbOrder-&gt;order_full_price, (int)$currency-&gt;currency_locale );

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 2 months ago [\#62360](#62360) by [zvone](/forum/user/4509-zvone "View zvone's Profile")  Replied by *[zvone](/forum/user/4509-zvone "View zvone's Profile")* on topic *[Re: Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#62360 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")*

I added this sometimes before your post

$price_check = round($dbOrder-&gt;order_full_price, 2 );

Is this also ok?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTU0NS1pc3N1ZS13aXRoLXBheXBhbC1wYXltZW50cz90bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14305
-
-

14 years 2 months ago [\#62472](#62472) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Issue with PayPal payments](/forum/3-bug-report/61545-issue-with-paypal-payments#62472 "Hi,  Here is the thing.  For some products I have the price  netto: 3.95833 Euros brutto: 4.75 Euros (20% VAT included)  So in Currencies I set  &quot;International fractional digits&quot; to 5, and &quot;Local fractional digits&quot; to 2  If I don't do this I have incorrect orders amount, if customer buys lots of those products with that price. But, If customer buys only one and wish to buy via PayPal I get error message on PayPal &quot;The link you have used to enter the PayPal system contains an incorrectly formatted item amount.&quot; I think it's because of these additional decimal spaces. I have found simmilar post here   www.hikashop.com/ja/forum/2-general-talk...l-sandbox-error.html  but it was 6months ago, I don't know how much has change since then.  Help appreciated :)  Thank you very much.")*

sure that's ok too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTU0NS1pc3N1ZS13aXRoLXBheXBhbC1wYXltZW50cz90bXBsPW1hcmtkb3du) 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.070 seconds

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