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

#   PayPal Pro Problem

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-
- [](http://www.mayfaireren.com)
-

12 years 6 months ago [\#157587](#157587) by [eabuel](/forum/user/4891-eabuel "View eabuel's Profile")  *[PayPal Pro Problem](/forum/29-payment-methods/868531-paypal-pro-problem#157587 "-- url of the page with the problem -- :   www.southernempress.com  -- HikaShop version -- : HikaShop Business: 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- :5.4.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I've having a problem with PayPal Pro plugin, and I got this back from PayPal Subject getting error 10426 in PayPal Pro  Discussion Thread Response Via Email (Orcun) 05/26/2014 06:31 AM Dear Everett Buel,  Thank you for contacting PayPal Merchant Technical Services.  I have checked your logs in our system and can see the error code 10426 &quot;Item total is invalid&quot;. This caused by your &quot;itemamt&quot; variable. Please note that the item amounts should be a positive number. You are passing a negative number. This is one of your DoDirectPayment API requests:  DoDirectPaymentRequest  method &quot;DoDirectPayment&quot; version &quot;51.0&quot; paymentaction &quot;Sale&quot; currencycode &quot;USD&quot; amt &quot;27.87&quot; itemamt &quot;-4.65&quot; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this should be a positive number taxamt &quot;32.52&quot; name &quot;&quot; &quot;June 7 Dinner Cruise&quot; &quot;Coupon&quot; number &quot;&quot; &quot;6-7-dinner-cruise&quot; &quot;coupon&quot; qty &quot;&quot; &quot;2&quot; &quot;1&quot; city &quot;Kalamazoo&quot; state &quot;Michigan&quot; countrycode &quot;US&quot; shiptocountry &quot;US&quot;  The only discount variable you can use with DoDirectPayment API requests is &quot;SHIPDISCAMT&quot;. You can pass a negative value with SHIPDISCAMT variable.  I would suggest checking our DoDirectPayment API operation guide on:   developer.paypal.com/docs/classic/api/me...t&#95;API&#95;Operation&#95;NVP/  I hope that I have been able to assist you and the information I have provided to you has been of use.  Kind Regards, Orcun PayPal MTS  If you need more information please let me know.    www.southernempress.com/administrator  UN: guesttech PW: guesttech  thanks for your help.")* was created by *[eabuel](/forum/user/4891-eabuel "View eabuel's Profile")*

-- url of the page with the problem -- : [ www.southernempress.com](http://www.southernempress.com)
-- HikaShop version -- : HikaShop Business: 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- :5.4.3
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I've having a problem with PayPal Pro plugin, and I got this back from PayPal
Subject
getting error 10426 in PayPal Pro

Discussion Thread
Response Via Email (Orcun) 05/26/2014 06:31 AM
Dear Everett Buel,

Thank you for contacting PayPal Merchant Technical Services.

I have checked your logs in our system and can see the error code 10426 "Item total is invalid". This caused by your "itemamt" variable. Please note that the item amounts should be a positive number. You are passing a negative number. This is one of your DoDirectPayment API requests:

DoDirectPaymentRequest

method "DoDirectPayment"
version "51.0"
paymentaction "Sale"
currencycode "USD"
amt "27.87"
itemamt "-4.65" &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this should be a positive number
taxamt "32.52"
name "" "June 7 Dinner Cruise" "Coupon"
number "" "6-7-dinner-cruise" "coupon"
qty "" "2" "1"
city "Kalamazoo"
state "Michigan"
countrycode "US"
shiptocountry "US"

The only discount variable you can use with DoDirectPayment API requests is "SHIPDISCAMT". You can pass a negative value with SHIPDISCAMT variable.

I would suggest checking our DoDirectPayment API operation guide on: [ developer.paypal.com/docs/classic/api/me...t\_API\_Operation\_NVP/](https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/)

I hope that I have been able to assist you and the information I have provided to you has been of use.

Kind Regards,
Orcun
PayPal MTS

If you need more information please let me know.

[ www.southernempress.com/administrator](http://www.southernempress.com/administrator)
UN: guesttech
PW: guesttech

thanks for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Njg1MzEtcGF5cGFsLXByby1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#157595](#157595) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Pro Problem](/forum/29-payment-methods/868531-paypal-pro-problem#157595 "-- url of the page with the problem -- :   www.southernempress.com  -- HikaShop version -- : HikaShop Business: 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- :5.4.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I've having a problem with PayPal Pro plugin, and I got this back from PayPal Subject getting error 10426 in PayPal Pro  Discussion Thread Response Via Email (Orcun) 05/26/2014 06:31 AM Dear Everett Buel,  Thank you for contacting PayPal Merchant Technical Services.  I have checked your logs in our system and can see the error code 10426 &quot;Item total is invalid&quot;. This caused by your &quot;itemamt&quot; variable. Please note that the item amounts should be a positive number. You are passing a negative number. This is one of your DoDirectPayment API requests:  DoDirectPaymentRequest  method &quot;DoDirectPayment&quot; version &quot;51.0&quot; paymentaction &quot;Sale&quot; currencycode &quot;USD&quot; amt &quot;27.87&quot; itemamt &quot;-4.65&quot; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this should be a positive number taxamt &quot;32.52&quot; name &quot;&quot; &quot;June 7 Dinner Cruise&quot; &quot;Coupon&quot; number &quot;&quot; &quot;6-7-dinner-cruise&quot; &quot;coupon&quot; qty &quot;&quot; &quot;2&quot; &quot;1&quot; city &quot;Kalamazoo&quot; state &quot;Michigan&quot; countrycode &quot;US&quot; shiptocountry &quot;US&quot;  The only discount variable you can use with DoDirectPayment API requests is &quot;SHIPDISCAMT&quot;. You can pass a negative value with SHIPDISCAMT variable.  I would suggest checking our DoDirectPayment API operation guide on:   developer.paypal.com/docs/classic/api/me...t&#95;API&#95;Operation&#95;NVP/  I hope that I have been able to assist you and the information I have provided to you has been of use.  Kind Regards, Orcun PayPal MTS  If you need more information please let me know.    www.southernempress.com/administrator  UN: guesttech PW: guesttech  thanks for your help.")*

Hi,

Change the code: Code:

$vars["L_NAME".$i]=JText::_('HIKASHOP_COUPON'); $vars["L_NUMBER".$i]='coupon'; $vars["L_AMT".$i]=-1*round($order-&gt;order_discount_price,(int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $vars["L_QTY".$i]=1; $vars["L_TAXAMT".$i]=0; $i++;

to: Code:

$vars["SHIPDISCAMT"]==round($order-&gt;order_discount_price,(int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']);

in the file plugins/hikashoppayment/paypalpro/paypalpro.php and that should avoid the problem.

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

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

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 5 months ago [\#161274](#161274) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[PayPal Pro Problem](/forum/29-payment-methods/868531-paypal-pro-problem#161274 "-- url of the page with the problem -- :   www.southernempress.com  -- HikaShop version -- : HikaShop Business: 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- :5.4.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I've having a problem with PayPal Pro plugin, and I got this back from PayPal Subject getting error 10426 in PayPal Pro  Discussion Thread Response Via Email (Orcun) 05/26/2014 06:31 AM Dear Everett Buel,  Thank you for contacting PayPal Merchant Technical Services.  I have checked your logs in our system and can see the error code 10426 &quot;Item total is invalid&quot;. This caused by your &quot;itemamt&quot; variable. Please note that the item amounts should be a positive number. You are passing a negative number. This is one of your DoDirectPayment API requests:  DoDirectPaymentRequest  method &quot;DoDirectPayment&quot; version &quot;51.0&quot; paymentaction &quot;Sale&quot; currencycode &quot;USD&quot; amt &quot;27.87&quot; itemamt &quot;-4.65&quot; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this should be a positive number taxamt &quot;32.52&quot; name &quot;&quot; &quot;June 7 Dinner Cruise&quot; &quot;Coupon&quot; number &quot;&quot; &quot;6-7-dinner-cruise&quot; &quot;coupon&quot; qty &quot;&quot; &quot;2&quot; &quot;1&quot; city &quot;Kalamazoo&quot; state &quot;Michigan&quot; countrycode &quot;US&quot; shiptocountry &quot;US&quot;  The only discount variable you can use with DoDirectPayment API requests is &quot;SHIPDISCAMT&quot;. You can pass a negative value with SHIPDISCAMT variable.  I would suggest checking our DoDirectPayment API operation guide on:   developer.paypal.com/docs/classic/api/me...t&#95;API&#95;Operation&#95;NVP/  I hope that I have been able to assist you and the information I have provided to you has been of use.  Kind Regards, Orcun PayPal MTS  If you need more information please let me know.    www.southernempress.com/administrator  UN: guesttech PW: guesttech  thanks for your help.")*

I am having the same error 10426 but with the Paypal Express checkout plugin from Hikashop 2.3.1
Is there a similar modification for that plugin?
Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Njg1MzEtcGF5cGFsLXByby1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#161337](#161337) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Pro Problem](/forum/29-payment-methods/868531-paypal-pro-problem#161337 "-- url of the page with the problem -- :   www.southernempress.com  -- HikaShop version -- : HikaShop Business: 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- :5.4.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I've having a problem with PayPal Pro plugin, and I got this back from PayPal Subject getting error 10426 in PayPal Pro  Discussion Thread Response Via Email (Orcun) 05/26/2014 06:31 AM Dear Everett Buel,  Thank you for contacting PayPal Merchant Technical Services.  I have checked your logs in our system and can see the error code 10426 &quot;Item total is invalid&quot;. This caused by your &quot;itemamt&quot; variable. Please note that the item amounts should be a positive number. You are passing a negative number. This is one of your DoDirectPayment API requests:  DoDirectPaymentRequest  method &quot;DoDirectPayment&quot; version &quot;51.0&quot; paymentaction &quot;Sale&quot; currencycode &quot;USD&quot; amt &quot;27.87&quot; itemamt &quot;-4.65&quot; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this should be a positive number taxamt &quot;32.52&quot; name &quot;&quot; &quot;June 7 Dinner Cruise&quot; &quot;Coupon&quot; number &quot;&quot; &quot;6-7-dinner-cruise&quot; &quot;coupon&quot; qty &quot;&quot; &quot;2&quot; &quot;1&quot; city &quot;Kalamazoo&quot; state &quot;Michigan&quot; countrycode &quot;US&quot; shiptocountry &quot;US&quot;  The only discount variable you can use with DoDirectPayment API requests is &quot;SHIPDISCAMT&quot;. You can pass a negative value with SHIPDISCAMT variable.  I would suggest checking our DoDirectPayment API operation guide on:   developer.paypal.com/docs/classic/api/me...t&#95;API&#95;Operation&#95;NVP/  I hope that I have been able to assist you and the information I have provided to you has been of use.  Kind Regards, Orcun PayPal MTS  If you need more information please let me know.    www.southernempress.com/administrator  UN: guesttech PW: guesttech  thanks for your help.")*

Hi,

It is not the same cause. Only the error code from PayPal is the same because the total doesn't add up.
We would need to get the details of the cart to be able to see what's going on.
If you can do like @eabuel and contact PayPal so that they can tell you what variable of the request is not correct, we should be able to provide a solution.

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

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