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

#   Error 10426: Item total is invalid, UPS/PayPal Pro

##

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

Less More

- Posts: 22
- Thank you received: 2
-
-

14 years 2 months ago [\#61291](#61291) by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile")  *[Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61291 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")* was created by *[sammsui](/forum/user/7898-sammsui "View sammsui's Profile")*

I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message "Error 10426: Item total is invalid" during the checkout process and were unable to submit their orders.

I tried out several things and located the root of the problem. When an amount is added to the "handling fees %" of the UPS configuration, this causes the error.

Is there an update to the UPS or PayPal plugin that fixes this bug? My customer is very adamant about using the "handling fees %" feature.

Thanks,

HikaShop Essential user

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTI5MS1lcnJvci0xMDQyNi1pdGVtLXRvdGFsLWlzLWludmFsaWQtdXBzLXBheXBhbC1wcm8/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 2 months ago [\#61300](#61300) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61300 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

That's a PayPal error.

I've never seen such error with PayPal Pro but it can happen in some rare cases with PayPal standard.

I don't think that UPS settings are related to that, but maybe a calculation rounding in the PayPal Pro plugin because of the shipping price.
Could you give more information ?
Could you try to turn on the debug option of the payment plugin and see if you get additional information on the error or some traces ?

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

14 years 2 months ago [\#61304](#61304) by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile")  Replied by *[sammsui](/forum/user/7898-sammsui "View sammsui's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61304 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

Nicolas,
I don't doubt that it's more related to Paypal than UPS. However, I do want to emphasize that the system works flawlessly when the "handling fees percent" field is left blank on the UPS plugin.

If I enable the debugging option of the PayPal plugin, will this affect the checkout process / customer experience in any way? How can I access the payment log file? Is this part of the Cron tab in the configuration?

Thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTI5MS1lcnJvci0xMDQyNi1pdGVtLXRvdGFsLWlzLWludmFsaWQtdXBzLXBheXBhbC1wcm8/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 2 months ago [\#61383](#61383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61383 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

Hi,

It won't affect the process. The payment log file is available in the Files tab of the configuration. It's not related to the cron.

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

14 years 2 months ago -  14 years 2 months ago [\#61419](#61419) by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile")  Replied by *[sammsui](/forum/user/7898-sammsui "View sammsui's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61419 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

Thanks Nicholas,
I'll try this out and let you know if I get any feedback.
I was able to output some data on the checkout screen:

- shipping\_price: 16.7675 (with 5% handling fee)
- shipping\_price: 16.34 (without handling fee %)

So, looks like it could definitely be a rounding issue.

Thanks,

Last edit: 14 years 2 months ago by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTI5MS1lcnJvci0xMDQyNi1pdGVtLXRvdGFsLWlzLWludmFsaWQtdXBzLXBheXBhbC1wcm8/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 2 months ago [\#61421](#61421) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61421 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

Thanks for the feedback.

Please change the line:
$rates[$i]-&gt;shipping_price+=$method+$handlingFees;

to:
$rates[$i]-&gt;shipping_price+=round($method+$handlingFees,2);

in the file plugins/hikashopshipping/ups/ups.php and that should fix the problem I think.

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

14 years 2 months ago -  14 years 2 months ago [\#61572](#61572) by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile")  Replied by *[sammsui](/forum/user/7898-sammsui "View sammsui's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61572 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

I tried replacing the code, but it had no affect.

However, I changed:
$rates[$i]-&gt;shipping_price+=$order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax*($rate-&gt;shipping_params-&gt;handling_fees_percent/100);

to:
$rates[$i]-&gt;shipping_price+=round($order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax*($rate-&gt;shipping_params-&gt;handling_fees_percent/100),2);

and it is now providing a figure with two decimals whenever using the "handling fees percent" option. I won't know for sure if this is the solution until I can test later on my live site.

Question. Will the UPS plugin be replaced if I ever update HikaShop or will my changes persist?

Thanks,

Last edit: 14 years 2 months ago by [sammsui](/forum/user/7898-sammsui "View sammsui's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MTI5MS1lcnJvci0xMDQyNi1pdGVtLXRvdGFsLWlzLWludmFsaWQtdXBzLXBheXBhbC1wcm8/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 2 months ago [\#61705](#61705) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error 10426: Item total is invalid, UPS/PayPal Pro](/forum/3-bug-report/61291-error-10426-item-total-is-invalid-ups-paypal-pro#61705 "I think I may have discovered an incompatibility between the UPS shipping plugin and the Paypal plugin. My client notified me that their customers were getting the following message &quot;Error 10426: Item...")*

Ah yes. Both modifications are recommended.
You won't have problems updating. We'll include the modifications in the next release too.

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

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

[](#top)
