Forums / PayPal Express Checkout support / PayPal 10413 error

PayPal 10413 error

Locked

Started by jurjenruben on 15 Jan 2008, 4:06 PM · Views: 45,812

Results 21 to 40 of 93
This thread is locked. New replies are disabled.
13 Mar 2008, 7:38 PM
#21
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

PayPal 10413 error

HOPEFULLY a step closer to a solution:

I can display my prices with tax now, and get a proper paypal checkout. The problem seems to be related with the shipping on the invoice... I guess...

In Admin - Order Total, I've disabled the shipping (ot_shipping), after which paypal checkout works. However, now the shipping costs are not displayed on the invoice/checkout, and I would like that.

Hope this info can help someone else helping us out :blink:

Thanks!
Jurjen

13 Mar 2008, 8:30 PM
#22
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

MORE INFORMATION:

I did some more testing:
I've disabled the ot-shipping (as described above), and choose 1 product to purchase from my shop. When this product costs 10euro's, including VAT, everything is ok and the Paypal checkout works. When the same product is 50 euro's, Paypal checkout fails (with the error 10413). I have narrowed the amount to: Paypal works at prices <EUR22. The added shipping costs don't have an effect on the checkout procedure.
However, with the ot_shipping enabled, paypal fails with any amount.

Something I noticed, (perhaps totally unrelated) is the following. When I receive an e-mail from paypal, with the transaction details, the shipping costs and VAT are "mixed". For instance:

Prijs object: 11,90 EUR (10 eur product + 19% VAT)
BTW: 1,90 EUR (19% of 10 eur)
Totaal verwerking: €1,60 EUR (Shipping costs set to 3.5eur --> Paypal makes it 3.5 - 1.9 - 1.6. Perhaps that is why ot_shipping can't be enabled?)
Totaal: €15,40 EUR (11.9 + 3.5)

Hope somebody can help us out.
Thanks!

22 Aug 2008, 3:11 PM
#25
mlvbs avatar

mlvbs

New Zenner

Join Date:
Feb 2008
Posts:
15
Plugin Contributions:
0

Re: PayPal 10413 error

Paypal is no longer working at my site - I always get the 10413 error. I've lost several sales because of this.

None of my products that have failed have anything unique like discounts or free shipping. I've read through several of the 10413 posts, and I've changed the Product and Shipping Basis for tax to both equal Store, or Shipping, or combinations of each, with no success. Is there another step I can take? Credit card processing still works fine.

22 Aug 2008, 5:00 PM
#26
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: PayPal 10413 error

have you uninstalled and re-installed paypal since the server move?

Zen cart PCI compliant Hosting

27 Aug 2008, 10:12 PM
#27
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I have been trying to persuade paypal to sort it out. Eventually they referred me to their .
Merchant Technical Support ( https://www.paypal.com/mts )
They have pointed out that it is upto zencart to sort it out.

If enough people highlight the issue they may deem it worthwhile sorting out a fix. They are aware of the issue.

they directed me to https://www.paypal.com/IntegrationCenter/ic_api-errors.html

where it quotes:

10413 Invalid argument The totals of the cart item amounts do not match order amounts. If you include any of the following element values with DoExpress Checkout Payment , the sum of their values must equal the value of OrderTotal .

* ItemTotal
* ShippingTotal
* HandlingTotal
* TaxTotal

If you get this error, research why it might have occurred and modify your implementation of Express Checkout to ensure proper addition of the values. For the rules of this calculation, see the PayPal Express Checkout Integration Guide.

So can anyone tell me how to make the sum of the parts equal the order total so the software will work or as it seems to have been going on for ages now according to th threads should I just give up and stick with protx.:frusty: :wacko:

27 Aug 2008, 10:34 PM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: PayPal 10413 error

mlvbs:

Paypal is no longer working at my siteWhen did it start having problems? How does that compare with any changes you made to your site? and changes your hosting company made to your server?
Which version of Zen Cart are you using? Which addons do you have installed? What kinds of customizations have you made?
How many orders does this affect?
What's different about the orders where this happens vs all the orders that don't encounter the problem?
What patterns exist?
What version of PHP and MySQL are you using?
Have you turned on debug logging and recorded the logs of the transactions, good and bad? Please post a zip of all those logs.

It's very hard to guess what's causing it in your case without seeing the details of a particular transaction in order to do the math on it. Perhaps you could share those details. Products, quantities, prices, attributes, taxes (rates and amounts), shipping, all other order total values, currency used vs default currency, etc. Everything that would allow reproduction of the order ... since it has to be simulated in order to recreate the actual problem before one can know whether it's fixed or not.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Sep 2008, 11:22 PM
#29
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

Sorry for not getting back I was waiting for Paypal to get back in touch.
I am on 1.38a.

I have only just started to use Paypal and have never had a successful transaction. I now have sandbox working and can try out combinations. The only ones that work are the ones where there is no tax collected. As everything is taxed the rest get rejected.
PHP Version 5.2.5
MySQL 5.0.51a

Here is a debug message from a failed transaction.

2008-08-13 03:57:36 ------------------- (live transaction) --> https://api-3t.paypal.com/nvp Request Headers: Array ( [0] => Content-Type: text/namevalue [1] => X-VPS-Timeout: 45 [2] => X-VPS-VIT-Client-Type: PHP/cURL [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart - WPP-NVP [4] => X-VPS-VIT-Integration-Version: 1.3.8a ) Request Parameters: {DoExpressCheckoutPayment} Array ( [ITEMAMT] => 0.49 [HANDLINGAMT] => 0.07 [SHIPPINGAMT] => 0.00 [TAXAMT] => 0.07 [AMT] => 0.49 [SHIPTONAME] => will xxxx [SHIPTOSTREET] => 19 xxxxxxxx close [SHIPTOCITY] => ipswich [SHIPTOSTATE] => suffolk [SHIPTOZIP] => ipx xxx [SHIPTOCOUNTRYCODE] => GB [ADDROVERRIDE] => 1 [BUTTONSOURCE] => ZenCart-EC_us [TOKEN] => EC-9CK94554VY509563V [PAYERID] => JSGXDE7UUNAKW [PAYMENTACTION] => Sale [NOTIFYURL] => https://www.designerspecsbypost.co.uk/ipn_main_handler.php [METHOD] => DoExpressCheckoutPayment [CURRENCYCODE] => GBP [USER] => willkiel_api1.doctors.org.uk [PWD] => **************** [VERSION] => 3.2 [SIGNATURE] => ****************************************************5WxZ ) Response: Array ( [TIMESTAMP] => 2008-08-13T20:57:42Z [CORRELATIONID] => 26d10e01926c2 [ACK] => Failure [VERSION] => 3.2 [BUILD] => 657865 [L_ERRORCODE0] => 10413 [L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details. [L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts. [L_SEVERITYCODE0] => Error [CURL_ERRORS] => )

add ons
• Fual Slimbox
• Super Orders
Sale Maker
Protx
paypal Express Checkout

Product and shipping tax based on shipping.

My delivery options are as below

Recorded Delivery

Enable Flat Shipping
True

Shipping Cost
5.52

Tax Class
Taxable Goods

Tax Basis
Store

Shipping Zone
--none--

Sort Order
2

My Tax rate is EEC Zone 17.5%

Sorry about this but I could not work out how to Zip files up.

Thanks

Will

3 Sep 2008, 5:37 AM
#30
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: PayPal 10413 error

eye will:

[ITEMAMT] => 0.49 [HANDLINGAMT] => 0.07 [SHIPPINGAMT] => 0.00 [TAXAMT] => 0.07 [AMT] => 0.49It seems that your taxes aren't being added into the final amount.
What Order Total modules do you have enabled, and what are their sort orders? If you disabled any, why?

Are any discounts being applied to any of these orders? Or is it just the tax factor that's unique to the transactions you're having problems with?

How many tax zones have you created?

What are your settings on the ot_tax Order Total module?

If you enable the Money Order payment module and do a transaction that's supposed to include tax, does it actually charge the tax in the final total?

If you change the "Display Tax In Prices" setting in Admin->Configuration->My Store to false, do your PayPal transactions work properly?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Sep 2008, 8:24 AM
#31
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I will look into that.

At the moment it works correctly for Protx so I assumed everything else would work.

I have tried all the things in the other threads and no luck.

I changed all the settings including basis of product tax and basis of shipping tax shipping.

The order total are as original as I don't think I changed any of them.

Most of the products are discounted, but I think my test one was not.
The tax zones are.

Zone Definitions - Taxes, Payment and Shipping
LEGEND: : Taxes & Zones Defined : Zones Defined but not Taxes : Not Configured
Zone Name Zone Description Status Action
Folder EEC VAT Zone EEC Countries Zone for VAT
Folder UK UK Tax Zone Info
Displaying 1 to 2 (of 2 tax zones) Page 1 of 1
Insert

EEC VAT Zone
Edit Delete Details
Tax Rate

Number of Zones: 1

Number of Tax Rates: 1

Date Added: 11/15/2007

Description:
EEC Countries Zone for VAT

;
The ot_tax Order Total module settings are

Order Total Modules
Modules Sort Order Action
COD Fee ot_cod_fee Info
Discount Coupon ot_coupon Info
Group Discount ot_group_pricing 290 Info
Gift Certificates ot_gv Info
Low Order Fee ot_loworderfee 400 Info
Payment Surcharges/Discounts ot_payment_surcharges_discounts 910 Info
Shipping ot_shipping 200 Info
Sub-Total ot_subtotal 100 Info
Tax ot_tax 300
Total ot_total 999 Info
Module Directory: /home/designer/public_html/includes/modules/order_total/

Tax
Remove Module Edit

Order Tax

This module is installed
true

Sort Order
300

I will try the suggestions you have given and let you know how it goes.

Thanks Will

3 Sep 2008, 10:07 PM
#32
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I have changed the display tax in prices to false and it still removes the tax from the price. This only happens if I try to buy with paypal

If I use protx everything is fine and I get the correct money I am owed and the tax is included in the price.

Tax Price (ex) Price (inc) Total (ex) Total (inc)
0.00% £170.17 £170.17 £170.17 £170.17

Sub-Total: £170.17
Recorded Delivery (Any number of items (insured up to £28).): £5.52
Sales Tax: £0.00
Total: £175.69

These frames should be £199 inc tax.

It appears when I go via protx it either rejects the payment or does not add the tax.

Hopefully this helps you help me.

Thanks Will

4 Sep 2008, 2:34 AM
#33
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: PayPal 10413 error

I can't fix the problem if I can't duplicate it exactly.

What do I need to do to a brand new fresh uncustomized install of Zen Cart in order to get it to operate exactly the way yours does ... in order to produce this exact same transaction problem?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Sep 2008, 10:16 AM
#34
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I have another demo cart on another site that you could use. I will see if this one gives the problem if I try to use paypal on it and if it does I will give you the password etc for that via the private messages.

It is reassuring that other people have it working. I thought it was a glirch with all the paypal sites.
Thanks Will

6 Sep 2008, 12:07 PM
#35
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I have the details of the other demo site if you want me to send them to you. It is set up similar to the one I use.

Will

11 Sep 2008, 11:06 PM
#36
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

DrByte

Are you still there, I cannot remember what modules I have loaded exactly as I have been developing this site for ages. I can give yoy access to the site to see if you can see what I need to change or can you tell me how I can get my site to be like yours if it functions with paypal express. I can always try from scratch again.

I installed a new zencart 1.37 and it would not work with paypal even with the site unchanged and with no added modules. When I get time I can try and load 1.38a and see if that works.

If not I will have to just stay with Protx.

Hopefully you can help.

Will

12 Sep 2008, 7:48 AM
#37
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: PayPal 10413 error

I wouldn't recommend testing with 1.3.7 if you didn't apply the PayPal Patch for 1.3.7 to it ... there were many bugs fixed in the patch (included in 1.3.7.1). Better to use 1.3.8a directly, which includes still more improvements.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Sep 2008, 7:44 PM
#38
eye_will avatar

eye_will

New Zenner

Join Date:
Sep 2007
Posts:
51
Plugin Contributions:
0

Re: PayPal 10413 error

I will load up 1.38a and try that out.

Will

21 Sep 2008, 4:09 AM
#39
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: PayPal 10413 error

I still get the same error. It worked twice randomly but will fail upon any further testing. I did everything other people have tried. Dr.Byte, do you have a definite solution or do you need more details? Please feel free to e-mail, PM, or contact me via MSN, [email protected].

Please HELP!

Also, can we use PayPal Website Standard but only enable the PayPal Express?

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

21 Sep 2008, 4:35 AM
#40
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: PayPal 10413 error

Hey guys,

I still get the same error. I messed with my settings and it randomly worked twice but if I test it again, it would fail. Any combination doesn't work.

I can also be contacted via e-mail, [email protected], and MSN, [email protected].

Please help!

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata