Zen Cart Logo
Forums / PayPal Express Checkout support / 10413 error on paypal

10413 error on paypal

Locked

Views: 14,222

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
28 Mar 2008, 1:22 PM
#1
zubey avatar

zubey

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

10413 error on paypal

Hi,

I'm experiencing this error 10413 total mismatch, and have found plenty of people with the same error but no resolution to date. Is there one I havent found yet?

I've got it nailed down to anything to do with GST (tax), on either products or shipping. If I remove the tax from both it all works fine.

[ITEMAMT] => 0.20
[AMT] => 0.20
[SHIPPINGAMT] => 0.00 **** when this = 0
[TAXAMT] => 0.00 & this = 0, all works fine ****
[L_NUMBER0] =>
[L_QTY0] => 1
[L_NAME0] => TEST Product No.2 $0.20
[L_AMT0] => 0.20

Any help would be greatly appreciated.

Cheers

28 Mar 2008, 1:32 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: 10413 error on paypal

PayPal's internal calculations don't support taxing the shipping rate, thus we have to separate it out manually and include it elsewhere in the formula. Perhaps your tax rate is introducing a rounding problem?

What tax rate are you using?
And is your store setup to include tax in prices?

29 Mar 2008, 12:44 AM
#3
zubey avatar

zubey

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: 10413 error on paypal

Hello Dr Byte,

My tax rate is 10%, & store is setup to include tax in prices.

Example, Item = 0.10 ex gst, 0.11 inc gst, shipping = 0.30 ex, 0.33 inc

Zen cart displays:

Sub-Total: $0.11 Inc GST
Delivery (Australia Post - Flat Rate): $0.33 Inc GST
GST: $0.04 Inc GST
Total: $0.44 Inc GST

This is correct, Paypal states amount to be charged at $0.44, also correct.

Payplay error log is:

[ITEMAMT] => 0.11 *** item amount is correct in gst
[HANDLINGAMT] => 0.04 *** this is my total gst tax amount?
[SHIPPINGAMT] => 0.36 *** not sure what this is?
[TAXAMT] => 0.01 *** this is the products gst,not including shipping gst
[AMT] => 0.44 *** total amount is correct

I was unaware Paypal couldnt handle shipping tax, is there somewhere I could find out how to impliment this manually as you suggest?

Thanks for your help.

29 Mar 2008, 5:55 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: 10413 error on paypal

In Admin->Configuration->My Store, what do you have set for Basis of Product Tax and for Basis of Shipping Tax?
What happens if you change those both to "Store"?

29 Mar 2008, 6:53 AM
#5
zubey avatar

zubey

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: 10413 error on paypal

I had basis for product tax = billing & shipping tax = shipping.

Just changed both to store as requested, and return the same errors

[ITEMAMT] => 0.11
[HANDLINGAMT] => 0.04
[SHIPPINGAMT] => 0.36
[TAXAMT] => 0.01
[AMT] => 0.44

29 Mar 2008, 2:37 PM
#6
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

DrByte:

In Admin->Configuration->My Store, what do you have set for Basis of Product Tax and for Basis of Shipping Tax?
What happens if you change those both to "Store"?

Hi guys,

I have the same problem. I changed both product and shipping tax to store, and than PayPal works. However, no tax is displayed (even when set to to true for "display prices with tax") or calculated...

29 Mar 2008, 2:52 PM
#7
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

Hey, it works :0)

Basis of Product to Shipping
Basis of Shipping to Store

Which is how I want it.

I'm using zone rates for shipping, but I did not want to add TAX to shipping. So I did not set that. This might have been the problem, since I've now set it to a rate of 0%, and it works fine... only thing is, that there is now always a 0,00 amount in the order total, but you can probably alter the code to not display shipping tax. Is there a better way to go Dr. Byte? Or can I just comment some code out?

29 Mar 2008, 6:08 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: 10413 error on paypal

What tax-class did you set your shipping module to use?

29 Mar 2008, 6:57 PM
#9
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

I'd prefer not to have the tax shown for shipping, and just provide a single amount for shipping. Therefore, I've asigned my 0% class (which I'm using for customers outside the EU.

29 Mar 2008, 7:05 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: 10413 error on paypal

If you assign it to Tax Class of --none-- then you'll probably find that the line showing a 0 will disappear.

30 Mar 2008, 12:26 AM
#11
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

I seriously don't unerstand any more... All this time, I've had my tax set to -none- in my flat rate shipping module, and that did not work. Changed it to 0%, that worked, but the 0.00 was shown in the order total. Now I have set it back to -none- and all works fine...
:blink: but :clap:

Any ideas what could be the cause of this?

30 Mar 2008, 12:36 AM
#12
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

jurjenruben:

I seriously don't unerstand any more... All this time, I've had my tax set to -none- in my flat rate shipping module, and that did not work. Changed it to 0%, that worked, but the 0.00 was shown in the order total. Now I have set it back to -none- and all works fine...
:blink: but :clap:

Any ideas what could be the cause of this?

It worked once, so I cheered to early...
When set it to none, the 0.00 indead disapears, but I get the error again. When I set the shipping tax to 0%, it workes perfectly, but the 0.00 is show in the order total.

30 Mar 2008, 1:33 AM
#13
zubey avatar

zubey

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: 10413 error on paypal

Just an update on my struggle to get PayPal to work properly.

Paypal express - dumped.
PayPal website payments standard - working. This module all worked perfect from the start, not sure why its so confusing to get express working but I'm more than happy with WPS.

And just a thankyou to those who tried to help resolve my issues.

Cheers

31 Mar 2008, 2:42 PM
#14
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

Zubey:

Just an update on my struggle to get PayPal to work properly.

Paypal express - dumped.
PayPal website payments standard - working. This module all worked perfect from the start, not sure why its so confusing to get express working but I'm more than happy with WPS.

And just a thankyou to those who tried to help resolve my issues.

Cheers

Good for you. Cheers!

Dr. Byte, do you have other ideas, or can I comment some code out to prevent the 0.00 form showing?

Thanks,
Jurjen

1 Apr 2008, 12:09 PM
#15
jurjenruben avatar

jurjenruben

New Zenner

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

Re: 10413 error on paypal

Sales Tax Display Status
Please make any necessary changes

Sales Tax Display Status
Always show Sales Tax even when amount is $0.00?
0= Off
1= On

admin - configuration -my store : Sales Tax Display Status set to 0

11 Aug 2008, 8:18 AM
#16
edialedarb avatar

edialedarb

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: 10413 error on paypal

Did this problem ever get resolved for Paypal Express Checkout??

I will explain my issue, which is pretty much the same but here goes.

PEC is not parsing two things;

  1. gst (10%) on shipping, yet is has the gst on products no problem.
  2. low order fee.

I have read various posts on this type of problem, but the fixes do not seem to work for me.

I have played with the Basis of Product and Basis of Shipping settings without success. We only use flat rate shipping, but we need to separate the tax component from the shipping. We have the shipping value set to $18.1818 and then apply the tax rate to it, which as I stated is 10%. Comes out to $20, which all works fine on other payment methods except PEC.

I was thinking I might be able to just add 10% to the shipping value sent to paypal, but I do not know which file and variable to add that to. Could anyone please assist in showing me where to do this. As I said, all other payment modules work fine, so I do not want to go changing anything other than the PEC stuff.

thanks
Brad

14 Sep 2008, 8:13 PM
#17
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

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

Re: 10413 error on paypal

I really don't know the solution but I will post my settings and what I did throughout the course of trying to fix it and worked in the end.

  • I started as using Authorize.net AIM Payment Gateway.
  • Decided to integrate PayPal Express Checkout.
  • Tested in Sandbox (Test Mode for PayPal).
  • Returned error 10413: Something about the total on our site not matching the calculation for PayPal.
    • Deduced that PayPal is having trouble with the tax because it was made to be compatible but PayPal doesn't calculate tax so it does not know what to do with that information that Zen Cart sends it.
  • Messed with 3 settings mainly.
    - Display Prices with Tax
    - Basis of Product Tax
    - Basis of Shipping Tax
  • Switched them False to True True to False while placing an order each time.
  • One time it decided to randomly work.
    - Display Prices with Tax: false
    - Basis of Product Tax: Store
    - Basis of Shipping Tax: Store
  • Made a new Test account.
  • Switched it again.
    - Display Prices with Tax: false
    - Basis of Product Tax: Shipping
    - Basis of Shipping Tax: Store
  • Worked. Always test twice! So I tested again.
  • Failed. So I switched it again.
    - Display Prices with Tax: false
    - Basis of Product Tax: Store
    - Basis of Shipping Tax: Store
  • Failed. So I tested it again twice.
  • Failed, so I switched it.
    - Display Prices with Tax: false
    - Basis of Product Tax: Shipping
    - Basis of Shipping Tax: Store
  • Failed. Changed.
    - Display Prices with Tax: false
    - Basis of Product Tax: Store
    - Basis of Shipping Tax: Store

Notes: Only tested with a Sandbox account that was in same state, thus resulting in requirement for tax. Never tried an out of state test account because I don't know how to make one, lol.

Wow in the middle of typing this I did some more testing, and it just decided to not work at all...

I still think because Zen Cart and PayPal are made to be compatible, it actually created the problem of Zen Cart sending it's calculations and method for the total which differs from PayPal, resulting in PayPal denying the transaction.

I also searched the forums and I can't find a solid resolute fix / correction for this. Can someone PM me a link or guide or something if they found it but just won't post it?

  • Jason, Just my 2 cents.
23 Sep 2008, 11:56 PM
#18
klagreca avatar

klagreca

New Zenner

Join Date:
Jul 2008
Posts:
7
Plugin Contributions:
0

Re: 10413 error on paypal

jason -
Awesome detail in debugging. I'm having the same issue over here and of course, Paypal is pointing the finger at ZenCart. At least you saved me the trouble of doing the exact same level of testing.

At this point, I'm going to recc. to my client to drop PEC beacuse of these 10413 errors. I don't like that as a solution but the lack of possible solutions is moving me to dump Paypal. If I find anything out, I'll keep you all posted.

K

31 Oct 2008, 4:12 PM
#19
tropheus avatar

tropheus

New Zenner

Join Date:
Jun 2004
Posts:
25
Plugin Contributions:
0

Re: 10413 error on paypal

Hi,

Any updates on this 10413 problem, I have just switched to PayPal Express from Standard payments that worked fine!

Looks like I will have to revert back to it?

21 Nov 2008, 1:18 PM
#20
candleman avatar

candleman

Zen Follower

Join Date:
May 2008
Posts:
183
Plugin Contributions:
0

Re: 10413 error on paypal

It looks to me that ZC is adding Tax to the Handling amount if the amount is incorrect.
I have the same issue too btw