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 21 to 36 of 36
This thread is locked. New replies are disabled.
14 Jul 2010, 4:02 PM
#21
enzo_ita avatar

enzo_ita

Zen Follower

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

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

Hi Dr Byte.
Thanks for the prompt answer but it is "Bad news"!!!
I tryed on a test site the new version just for the sake of it and had problems with the db that I have never been able to fix.
However, it was working before....how comes?
thanks
enzo

19 Feb 2011, 8:42 AM
#22
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

I have been through a number of threads and can not find a solution to this problem.

The totals of the cart item amounts do not match order amounts.

Below is a copy of the paypal debug, please help.

2011-02-19 01:58:19

(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(tm) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.9f
)

Request Parameters: {SetExpressCheckout}
Array
(
[AMT] => 332.32
[ITEMAMT] => 315.02
[SHIPPINGAMT] => 17.30
[L_NUMBER0] =>
[L_NAME0] => Aleppo soap (4x220g) 50* virgin Olive oil and 50* Laurel
oil
[L_AMT0] => 29.70
[L_QTY0] => 3
[L_NUMBER1] =>
[L_NAME1] => 4 x Alum Stone natural deodorant 35g/45g
[L_AMT1] => 11.71
[L_QTY1] => 3
[L_NUMBER2] =>
[L_NAME2] => 3x100ml Cosmetic Argan Oil
[L_AMT2] => 39.90
[L_QTY2] => 3
[L_NUMBER3] =>
[L_NAME3] => Savon Noir, Moroccan Beldi black soap 4x200g
[L_AMT3] => 23.71
[L_QTY3] => 3
[LOCALECODE] => IT
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[EMAIL] => [email protected]
[PHONENUM] => xxxxxxxxxxx
[RETURNURL] =>
https://www.c u t e l u x . com/ipn_main_handler.php?type=ec&zenid=3d4ac409bb76ccae3ba1456163f29a39
[CANCELURL] =>
https://www.cutelux.com/index.php?main_page=checkout_shipping&ec_cancel=1&zenid=3d4ac409bb76ccae3ba1456163f29a39
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => EUR
[USER] => info_api1. c u t e l u x . com
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************A96A
)

Response:
Array
(
[TIMESTAMP] => 2011-02-19T07:58:19Z
[CORRELATIONID] => 8df2f39ec938c
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1741654
[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] =>
)

19 Feb 2011, 12:58 PM
#23
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

Well it looks like this thread is dead and so is our shop :cry:

21 Feb 2011, 6:14 AM
#24
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]

Is there a reason why you're using v1.3.9f and not v1.3.9h?

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

21 Feb 2011, 6:30 PM
#25
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

Thankyou for your reply, I will upgrade to v1.3.9h, hopefully this will solve the issue.

22 Feb 2011, 6:46 PM
#26
miffy22 avatar

miffy22

New Zenner

Join Date:
Feb 2010
Location:
Toronto, Canada
Posts:
23
Plugin Contributions:
0

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

Dear Dr. Byte,

Just wondering if you would be able to help us with this problem that we are experiencing.

We also received an error message from Paypal as a customer was unable to make her purchase on our website, below is the error message that we received from Paypal.

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

Prior to receiving this error alert, we had many smooth and successful orders, so this is not our first order. However, as this customer was trying to make a larger purchase, the transaction becomes unsuccessful. It is strange to us that the total amount shown on our website would change once it is carried over to Paypal to complete the transaction.

After discussing this matter with Paypal, Paypal told us:

"The 10413 error is because the sum total of item, tax and shipping amounts is not equal to the total amount in the Express Checkout requests your shopping cart is sending to Paypal. It is usually off by only 0.01 CAD in the API requests. The difference is probably due to a rounding error in the tax calculation. And, we (Paypal) recommends that you review the way the tax value is calculated and added to the total amount, and make any necessary corrections in the coding logic.

As for the difference between the order amount displayed in your checkout and what is displayed on PayPal, we (Paypal) are displaying the amount passed to us by your shopping cart. We suggest that you review the code that creates the API request to determine why a value other than what is displayed as the total on your site is being passed to Paypal as the order amount."

Is it possible for you to help us identify where the problem might be? We have checked all our zen cart settings, and could not find any possible errors.

We are using zen cart version v1.3.9b. Is it possible that this error is due to a bug in the code? Would upgrading to v1.3.9h make any difference?

Thank you so much for your help!!

Regards,

Miffy22

22 Feb 2011, 6:49 PM
#27
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]

miffy22:

We are using zen cart version v1.3.9b. Is it possible that this error is due to a bug in the code? Would upgrading to v1.3.9h make any difference?
That would be a good start.

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

22 Feb 2011, 7:26 PM
#28
miffy22 avatar

miffy22

New Zenner

Join Date:
Feb 2010
Location:
Toronto, Canada
Posts:
23
Plugin Contributions:
0

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

gino:

Thankyou for your reply, I will upgrade to v1.3.9h, hopefully this will solve the issue.

Hi Gino, just wondering if you have solved your issue by upgrading your zen cart version to v1.3.9h? I'm also experiencing the same problem on my site, and would like to know if this is indeed due to a code logic error in previous versions.

Thanks!

22 Feb 2011, 8:18 PM
#29
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

Its going to be my first upgrade which I will do tomorrow, as soon as I have complete the process i will post the results.

23 Feb 2011, 2:48 PM
#30
miffy22 avatar

miffy22

New Zenner

Join Date:
Feb 2010
Location:
Toronto, Canada
Posts:
23
Plugin Contributions:
0

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

Great! Hoping to hear a positive result from you!!

23 Feb 2011, 10:50 PM
#31
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]

miffy22:

Great! Hoping to hear a positive result from you!!
There are IMPORTANT reasons to upgrade to the latest version.

Why are you so reluctant to get the benefits of ALL the known bugfixes so that you and your customers can enjoy more reliable operation of your store?

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

24 Feb 2011, 2:57 AM
#32
miffy22 avatar

miffy22

New Zenner

Join Date:
Feb 2010
Location:
Toronto, Canada
Posts:
23
Plugin Contributions:
0

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

I had never done an upgrade before, so, just a little scared of doing it on a live store.

Would the new upgrade cause any conflict to many contributions that I have already installed?

24 Feb 2011, 6:18 AM
#33
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]

Maybe. But only if the files that have changed have been altered by any of those contributions.

Either way, waiting for someone else to do an upgrade doesn't solve that problem for you.

If you're scared of doing it on a live store, do it on a test copy of your store. The official upgrade instructions walk you through all of that. Those are in your /docs/ folder too, as well as in the Tutorials/FAQs section of this site.

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

24 Feb 2011, 8:24 AM
#34
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

All I can say about my upgrade is, its not an easy task:censored:

28 Feb 2011, 7:05 AM
#35
gino avatar

gino

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

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

I have done upgade and tested the site, everything is working fine.:D

28 Feb 2011, 8:21 AM
#36
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]

gino:

I have done upgade and tested the site, everything is working fine.:D
Thanks for confirming that upgrading to the latest version resolved your symptoms.

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