Zen Cart Logo
Forums / PayPal Express Checkout support / Transaction refused becaused invalid argument

Transaction refused becaused invalid argument

Locked

Views: 7,765

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
12 Aug 2007, 9:10 AM
#1
dcmall avatar

dcmall

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Transaction refused becaused invalid argument

Hi,

I have recently configured the PayPal express in my shopping cart.

The outlook of the store looks so nice and cool with this Paypal express options.

When diverted to the paypal website for the processing of payment, there isn't any option for me not to sign up as Paypal member, although I have set the Paypal Account Option to ON. No matter what I have tried, still the same outcome and thus I accepted the fate. Afterall, most importantly, is that the transaction can go through.

However, when I complete the transaction at paypal website and return to my shopping cart, the following message appears:

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

Looked through the log file but could not identified what went wrong. (Frankly speaking, I know nuts in php coding...)

Appreciate if anyone could assist...

12 Aug 2007, 5:24 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

What version of Zen Cart ? What patches have you applied?
What other addons are installed?
Did you have debug logging-to-file enabled when you encountered this? If so, please zip the logs and post a link where they can be reviewed.

13 Aug 2007, 3:06 PM
#3
dcmall avatar

dcmall

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: Transaction refused becaused invalid argument

My Zen Cart version is v1.3.7.1 [2007-07-13 23:30:27] (Fresh Installation)

Have not done any add on or apply any patches so far. Just install or I should say activated the original Paypal Express Checkout payment modules.

The attached is the log file containing the text file and the failure notice when return to my shopping cart.

Appreciate your assistance...

13 Aug 2007, 4:22 PM
#4
william_c avatar

william_c

New Zenner

Join Date:
Aug 2006
Posts:
31
Plugin Contributions:
0

Re: Transaction refused becaused invalid argument

dcmall:

My Zen Cart version is v1.3.7.1 [2007-07-13 23:30:27] (Fresh Installation)

Have not done any add on or apply any patches so far. Just install or I should say activated the original Paypal Express Checkout payment modules.

The attached is the log file containing the text file and the failure notice when return to my shopping cart.

Appreciate your assistance...

Today, my customers met the issue too. DrByte, please fix the issue. Thanks!

13 Aug 2007, 11:30 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

What are all your settings in Admin->Modules->Order Total ?

14 Aug 2007, 3:05 AM
#6
dcmall avatar

dcmall

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: Transaction refused becaused invalid argument

DrByte:

What are all your settings in Admin->Modules->Order Total ?

Is there any particular module in the Order Total Modules that I need close attention to?

Attached is a zipped pdf file containing all the settings in Admin->Modules-> Order Total

DrByte, looking forward to hearing good new from you soon.

thanks in advance...

14 Aug 2007, 3:28 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

Try this:

edit /includes/modules/payment/paypalwpp.php
around line 519 you have:

     number_format($order_amount, 2),

change it to: ```
number_format((isset($options['AMT']) ? $options['AMT'] : $order_amount), 2),


Then do another test transaction.


I'm stumped about why the order would calculate 0.04 for the details, but then send 0.01 as the final total.

Were you testing any coupons or gift certificates or group discounts in these tests?
14 Aug 2007, 5:55 AM
#8
dcmall avatar

dcmall

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: Transaction refused becaused invalid argument

DrByte:

Try this:

edit /includes/modules/payment/paypalwpp.php
around line 519 you have:

 number_format($order_amount, 2),


I noticed that there are couple of lines that contain number_format($order_amount, 2). Other lines include line 515, 579, 675,677,1674. Do I change all or just change the one in line 519 only?


> **DrByte:**
>
> Try this:
> I'm stumped about why the order would calculate 0.04 for the details, but then send 0.01 as the final total.

Well, the default currency in my shopping cart has been set to MYR. It is converted to USD when the amount is parsed to paypal.  Conversion rate: 0.278 . Would this cause the error?
14 Aug 2007, 6:48 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

dcmall:

I noticed that there are couple of lines that contain number_format($order_amount, 2). Other lines include line 515, 579, 675,677,1674. Do I change all or just change the one in line 519 only? Yes, I meant only the one line. Then retest.

dcmall:

Well, the default currency in my shopping cart has been set to MYR. It is converted to USD when the amount is parsed to paypal. Conversion rate: 0.278 . Would this cause the error?
Yes, that could cause it. What happens if you set the conversion rate to 1.0000 ?

14 Aug 2007, 9:07 AM
#10
dcmall avatar

dcmall

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: Transaction refused becaused invalid argument

Hi DrByte,

Thanks for your prompt response. Transaction successful.

Your first solution by changing just the line 519 works, but the charges that went through is USD0.04 as compared to if conversion were done on MYR0.04 = USD0.01 .

Although it has resolved and result in successful transaction, but another issue arise, i.e. instead of charging the client USD0.01, now the client is being charges USD0.04 . So is there anyway to resolve this new issue?

Can I have the following situation?

  1. My shopping cart to allow the client to choose among 3 currencies, i.e. MYR (primary), SGD and USD for payment.
  2. Check out using paypal. For SGD and USD, I believe Paypal has no problem as these two currencies are among those accepted. However for those that is not accepted, i.e. MYR, Paypal will default them to USD.
    Can you assist in handling this situation?
10 Oct 2007, 12:39 AM
#11
macclick avatar

macclick

New Zenner

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

Re: Transaction refused becaused invalid argument

dcmall:

Hi DrByte,

Thanks for your prompt response. Transaction successful.

Your first solution by changing just the line 519 works, but the charges that went through is USD0.04 as compared to if conversion were done on MYR0.04 = USD0.01 .

Although it has resolved and result in successful transaction, but another issue arise, i.e. instead of charging the client USD0.01, now the client is being charges USD0.04 . So is there anyway to resolve this new issue?

Can I have the following situation?

  1. My shopping cart to allow the client to choose among 3 currencies, i.e. MYR (primary), SGD and USD for payment.
  2. Check out using paypal. For SGD and USD, I believe Paypal has no problem as these two currencies are among those accepted. However for those that is not accepted, i.e. MYR, Paypal will default them to USD.
    Can you assist in handling this situation?

Ok this is an issue which I know can be fixed I dont know how yet seems what must happen
MYR sent to USD then sent to Paypal
USD sent back to Mysite converted USD to MYR and then received and process complete.

First Case Paypal users used funds in Paypal account

Yesterday User checked out Paypal using paypal funds available checked out fine posted to zen with out a single issue. The funds were in here account.

Today checkout for express Checkout is broke
User Tries to do this with express checkout and it gives
ALERT: PayPal Express Checkout Error (10413)
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 is the difference in the conversion stream from MYR to USD then payapl Process USD sends USD to site. Site converts the USD to MYR using the same formula and constant for conversion Posts it MYR and Completes Transaction

11 Oct 2007, 12:41 AM
#12
macclick avatar

macclick

New Zenner

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

Re: Transaction refused becaused invalid argument

Both were express check out one was with Paypal funds that worked second I think is a Credit card in any case why one day posts back ok and the next not on express check out this has been happening on and off for some time

11 Oct 2007, 6:24 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

Please turn on debug logging and post the logs of the transaction next time it happens.
http://www.zen-cart.com/forum/showthread.php?t=61199

8 Nov 2010, 8:47 AM
#14
spid3r1987 avatar

spid3r1987

Zen Follower

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

Re: Transaction refused becaused invalid argument

DrByte:

Please turn on debug logging and post the logs of the transaction next time it happens.
http://www.zen-cart.com/forum/showthread.php?t=61199

was this ever resolved as im having same problem?
a customer actually emailed last night to say he cannot purchase what he wanted...
gutted :(

8 Nov 2010, 9:07 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: Transaction refused becaused invalid argument

Significant changes were made for v1.3.9 to address 10413 errors. If you're using older than v1.3.9, then you need to upgrade. If you are using the very latest version of Zen Cart and still getting 10413 errors, please open a new thread for your new issue.

This present old thread is not the place for new issues in newer versions.