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

#   paypal sandbox error

##

- **[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: 86541
- Thank you received: 14304
-
-

14 years 9 months ago [\#38502](#38502) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38502 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

That's correct. Make sure that the "send order details" of the paypal plugin is turned on and try again, it should work.

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

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

Less More

- Posts: 92
- Thank you received: 0
-
-

14 years 9 months ago [\#38540](#38540) by [jade](/forum/user/4259-jade "View jade's Profile")  Replied by *[jade](/forum/user/4259-jade "View jade's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38540 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

Good Morning!
Any result?
Regs.,
Jade

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

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

Less More

- Posts: 92
- Thank you received: 0
-
-

14 years 9 months ago [\#38541](#38541) by [jade](/forum/user/4259-jade "View jade's Profile")  Replied by *[jade](/forum/user/4259-jade "View jade's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38541 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

OK
I'll try it asap.

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

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

Less More

- Posts: 92
- Thank you received: 0
-
-

14 years 9 months ago [\#38577](#38577) by [jade](/forum/user/4259-jade "View jade's Profile")  Replied by *[jade](/forum/user/4259-jade "View jade's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38577 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

Hi,
It still have problem for the decimal place.
(set TAX is disable)

May be the problem is during input the Unit Price then the TAX will AUTO filling in.
For example:
1. when input unit price: 1.90 then the TAX will auto input as 1.899999999~
2. when input unit price: 1.01 then the TAX will auto input as 1.010000000~

3. when input unit price: 1.00 then the TAX will auto input as 1
4. when input unit price: 1 then the TAX will auto input as 1

There for if without any decimal can work correctly.

Please advise.
Thanks!
Jade

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

14 years 9 months ago [\#38705](#38705) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38705 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

The input is not a problem.

Let's do it differently then. Everywhere you have:
(int)$currency-&gt;currency_locale

in the plugins/hikashoppayment/paypal.php file, please replace that piece by:
2

That way, we'll be sure that all the prices sent to paypal are rounded properly.

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

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

Less More

- Posts: 92
- Thank you received: 0
-
-

14 years 9 months ago [\#38715](#38715) by [jade](/forum/user/4259-jade "View jade's Profile")  Replied by *[jade](/forum/user/4259-jade "View jade's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38715 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

Morning!

RE: modify the paypal.php file

To avoid my mistake, please advise is the step as following??

Step 1) add the line:
$currency-&gt;currency_locale = 2;

after the lines:
$currency=$currencies[$order-&gt;order_currency_id];

Step 2) instead of :
$vars["amount_".$i]=round($product-&gt;order_product_price,(int)$currency-&gt;currency_locale);

change it to:

$vars["amount_".$i]=round($product-&gt;order_product_price,2);

in that file.

Step 3)Make sure that the "send order details" of the paypal plugin is turned on

Step 4)
Let's do it differently then. Everywhere you have:
(int)$currency-&gt;currency_locale

in the plugins/hikashoppayment/paypal.php file, please replace that piece by:
2

======================================================================================
Thanks in advance!
Jade

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

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

Less More

- Posts: 92
- Thank you received: 0
-
-

14 years 9 months ago [\#38757](#38757) by [jade](/forum/user/4259-jade "View jade's Profile")  Replied by *[jade](/forum/user/4259-jade "View jade's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38757 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

Hi Nicolas,

RE : Step 4)
Let's do it differently then. Everywhere you have:
(int)$currency-&gt;currency_locale

in the plugins/hikashoppayment/paypal.php file, please replace that piece by:
2

Did you mean like this?

$vars["amount_1"]=round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,(int)$currency-&gt;currency_locale);

change it to:
$vars["amount_1"]=round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,(int)$currency-&gt;currency_locale=2);

=============================================================================================================

$tax+=round($product-&gt;order_product_tax,(int)$currency-&gt;currency_locale)*$product-&gt;order_product_quantity;
$i++;

change it to:
$tax+=round($product-&gt;order_product_tax,(int)$currency-&gt;currency_locale=2)*$product-&gt;order_product_quantity;
$i++;

=============================================================================================================

$vars["amount_".$i]=round($order-&gt;order_shipping_price,(int)$currency-&gt;currency_locale);

change it to:
$vars["amount_".$i]=round($order-&gt;order_shipping_price,(int)$currency-&gt;currency_locale=2);

===============================================================================================================

$vars["discount_amount_cart"]=round($order-&gt;order_discount_price,(int)$currency-&gt;currency_locale);

change it to:
$vars["discount_amount_cart"]=round($order-&gt;order_discount_price,(int)$currency-&gt;currency_locale=2);

================================================================================================================

$price_check = round($dbOrder-&gt;order_full_price, (int)$currency-&gt;currency_locale );

change it to:

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

================================================================================================================

Total 4 of above right?

Thanks!
Jade

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

14 years 9 months ago [\#38921](#38921) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: paypal sandbox error](/forum/2-general-talk-about-hikashop/36747-paypal-sandbox-error?start=20#38921 "Hi, Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:  Error Detected Error Message  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  Thanks in advance! Jade")*

Almost but yes.

I said to replace one by the other, not to have both.

So, for example:
$vars["amount_1"]=round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,(int)$currency-&gt;currency_locale);

should become:
$vars["amount_1"]=round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,2);

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

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