If this is your first visit, check our documentation. To post, register or login.
Forums / PayPal Express Checkout support / 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Locked

Started by juniper on 3 Feb 2009, 1:51 AM · Views: 11,434

Results 1 to 20 of 36
This thread is locked. New replies are disabled.
3 Feb 2009, 1:51 AM
#1
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

After 2 hours of making sure I am not duplicating this question, I am going to post it. Please forgive me if this is something that has been answered a million times.

Zen Cart: 1.3.8
No upgrades.
Addons: Shipping Exporter (for MS Excel)
Customizations?: Where do I begin?

I've seen my problem posted here, but there were no answers that helped me.

I do not have gift certificates enabled.

Checkout - works fine.
I am using strictly PayPal Express. API checks out. I press the "confirm the order" button and am taken to PayPal. I have a PayPal account, so I log in. All that shows is this (think of it in PayPal formatting) in the top part of the order section:

Payment Method:Enter gift certificate, reward, or discount
Gift Certificate Number
Enter redemption code.

Or select from this list

Payment Method
PayPal BalanceChange

rather than the typical default checking account number, etc. I press the continue button and am taken back to my shopping cart. I could do this all night.

When attempting to pay without a PayPal account, my payment almost feels like it is going to go through, I am taken back to the shopping cart press the continue checkout button and get:
"10413 Transaction refused because of an invalid argument. See additional error messages for details. - The totals of the cart item amounts do not match order amounts."

http://wbwg.org/registration

Thanks...

3 Feb 2009, 2:11 AM
#2
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

None of the products have shipping or tax.

3 Feb 2009, 3:09 AM
#3
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

ran the ipn_test_return in the extras folder; got this:

Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/wbwgorg/public_html/registration/extras/ipn_test_return.php on line 27

Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wbwgorg/public_html/registration/extras/ipn_test_return.php on line 27

ipn_test.php:

Illegal Access

grasping at straws...

3 Feb 2009, 3:50 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

You have to take that file out of the extras folder to run it

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

3 Feb 2009, 3:59 AM
#5
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Same results.

3 Feb 2009, 5:29 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

juniper:

"10413 Transaction refused because of an invalid argument. See additional error messages for details. - The totals of the cart item amounts do not match order amounts."
What do your PayPal debug logs show?
http://www.zen-cart.com/forum/showthread.php?t=61199

.
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 Feb 2009, 5:40 AM
#7
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

http://wbwg.org/logs.zip

Appreciate all the help I can get...Thank you!

3 Feb 2009, 5:54 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

In the "Similar Threads" section below there are some discussions of this matter.
One of the things common to other reports of this topic is tax, currency, shipping, etc settings altered from defaults.
How exactly is your site different from a clean new Zen Cart install with no settings customized?

.
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 Feb 2009, 6:02 AM
#9
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

The shopping cart is for a conference registration, therefore, no taxes or shipping. are not required to be collected. I've turned them all off. I set the state for shipping. Anyways, what then are the absolute basics that need to be enabled to ensure the pass thru is successful?

3 Feb 2009, 6:49 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

juniper:

... no taxes or shipping. are not required to be collected. I've turned them all off.
What exactly do you mean by "I've turned them all off."?

.
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 Feb 2009, 6:58 AM
#11
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

I've tried several different options to try and get this to work.

First, in config>mystore

Tax Decimal Places 1
Display Prices with Tax true
Display Prices with Tax in Admin true
Basis of Product Tax Shipping
Basis of Shipping Tax Shipping
Sales Tax Display Status 1

I've had those six options as:
Tax Decimal Places 0
Display Prices with Tax false
Display Prices with Tax in Admin false
Basis of Product Tax Store
Basis of Shipping Tax Store
Sales Tax Display Status 0

It is so difficult for me to list all the combinations I have tried. At first, whatever the option was for shipping and tax, the intended result was to have $0 for shipping and no tax applied.
Now I have them all, what ever false, 1, etc. are 'enabled'

What should the config & module settings be to ensure that there is no charge for tax or shipping yet still be accepted by PayPal?

I've deleted all the currencies except for the US dollar. Right now I have a South Dakota tax set for 0%. I am absolutely lost.

3 Feb 2009, 8:08 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

If you don't want to charge tax on your products, you would set those products to have a tax class of --none--.

If you do not require shipping for your products, you can mark them as Virtual so that shipping is set to free. And then you need the freeshipper shipping module enabled.

You would use those settings regardless of which payment module you're using.

.
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 Feb 2009, 2:10 PM
#13
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Feb-02-2009 04:12:27
before_process - EC-4
info being submitted:
EC-8B1831199X381383C GDJ648RBLXJGQ 5.00
Array
(
[AMT] => 5.00
[HANDLINGAMT] => 5.00
[ITEMAMT] => 0.00
[BUTTONSOURCE] => ZenCart-EC_us
[CURRENCY] => USD
)

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

Feb-02-2009 04:12:28
before_process - EC-5
resultset:
Array
(
[TIMESTAMP] => 2009-02-02T23:12:28Z
[CORRELATIONID] => 98e04fd22f2e5
[ACK] => Failure
[VERSION] => 3.2
[BUILD] => 801690
[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] =>

3 Feb 2009, 3:00 PM
#14
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

All I can say is....attribute pricing. All of my products have attribute pricing...

I think it is working now. Thank you.

3 Feb 2009, 6:48 PM
#15
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

I take that back...I'm still in the loop. Can anyone help???

3 Feb 2009, 7:23 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

So, if you create a product that has no attributes, does it go thru checkout fine?

.
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 Feb 2009, 2:45 AM
#17
juniper avatar

juniper

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Once I changed the attributes so that they were 'right', when I got to PayPal and logged in it showed my checking account, rather than the gift card thing I had before. I thought I was good, but it wasn't until I went 'live' that the PayPal 10413 errors arrived in my mailbox.

The looping began...

I've closed the PayPal gateway and am sending payment requests for now. Not so good, but at least there is a Plan B. :unsure:

You want a peek into my store? :yes: It's a very simple cart...less than 10 items.

Thank you so much for your help. I'm sorry that I can't talk the lingo just yet. It has been a lovely experience, and I'm sure it is just an I-D-10-T error :smile:

9 Feb 2010, 3:52 AM
#18
abstore avatar

abstore

New Zenner

Join Date:
Feb 2010
Posts:
1
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Hello,

I had the same issue

I sell services on my site so I had everything disabled, shipping, taxes etc...
I had also turned off everything except "Total" in the order total module.
After I enabled the 'Subtotal' everything was 'fixed'. Not sure why this should even happen - I'm a new to zencart.

14 Jul 2010, 3:51 PM
#19
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

Same problem here. Cart amount different from total amount.
Below you can find a log of the transaction.
I have tested both with shipping charge and not but the result is the same.
What sound strange to me is the [HANDLINGAMT] => 12.00
I have no handling charge set or charge for minimum order set and this handling amount is exactly equal to the TAXAMT.

The taxamt is 20% and it is correct because the total order is 60 + taxes = 72.

In another log with lower product quantiy and with shipping charge (because the shipping charge is related to the total order amonut) thare is exactly the same HANDLINGAMT thing with the tax value.

The cart total and the [AMT] values are correct in both logs.

I have made no mod to the zen cart installation and in the past pay pal worked correctly.

I do not understand why this happens and I think it is a PayPal problem and not a zen cart problem, but if someone have a solution please wave me a hand.
Thanks
enzo

[ITEMAMT] => 72.00
[HANDLINGAMT] => 12.00
[TAXAMT] => 12.00
[SHIPPINGAMT] => 0.00
[AMT] => 72.00
[SHIPTONAME] => **********
[SHIPTOSTREET] => ***********
[SHIPTOCITY] => **********
[SHIPTOSTATE] => ***********
[SHIPTOZIP] => **************
[SHIPTOCOUNTRYCODE] => IT
[BUTTONSOURCE] => IT_ZenCart-EC
[TOKEN] => EC-34R83376LH785274H
[PAYERID] => WUBZXKHEQG6C2
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://www.************ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => EUR
[USER] => info_api1.**************
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************jR1b
14 Jul 2010, 3:53 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: 10413 Transaction refused because of an invalid argument. [Fixed v1.3.9]

That problem is fixed in the official English Zen Cart v1.3.9
Your older IT-branded version is broken. You will need to upgrade to the official version released at https://www.zen-cart.com

.
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.