If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Website Payments Pro support / ALERT: PayPal Direct Payment Error (10413 <!-- -->)

ALERT: PayPal Direct Payment Error (10413 <!-- -->)

Locked

Started by terytubby on 6 Mar 2009, 7:52 AM · Views: 9,682

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
6 Mar 2009, 7:52 AM
#1
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #1 by terytubby

Hi everyone, Hope you guys can help me.

I've searched the FAQ area but it does not work for me. I am unable to checkout using PayPal Website Payments Pro. It gives me an error:

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.

However PayPal Express Checkout works fine for me.

I am using:
Zen Cart 1.3.8.
No add-ons
Tax: nil

Can anyone help me? Please. I've tried to edit some codes into the paypaldp.php but nothing happens.

Any help is greatly appreciated. :hug:

6 Mar 2009, 8:12 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Check the similar threads posted at the bottom of this posting

Zen-Venom Get Bitten

6 Mar 2009, 9:01 AM
#3
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #3 by terytubby

Hi kobra,

Nothing is helpful below. THanks for the help anyway.

ANyone else can help?

9 Mar 2009, 3:01 AM
#4
seventhwhiskey avatar

seventhwhiskey

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Post #4 by seventhwhiskey

I just spent the last 6 hours dealing with this issue, and after 3 re-installs I finally narrowed it down. On my site, brand new install 1.38a with no new add-ons this was the problem:

Under Modules > Order Total, if the subtotal is disabled I get the error. I can disable all the others, but I have to have subtotal turned on.

Hope that helps. Mess with the other 'Order Total' options as well if that one doesn't work.

9 Mar 2009, 6:21 AM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

Glad you found the solution to your problem.

Subtotals are rather important information when explaining pricing details to your customers, including receipts. Why people think they should turn that off and leave their customers without important information always puzzles me.

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

9 Mar 2009, 7:06 AM
#6
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #6 by terytubby

Hi guys,

Thanks for the reply. But I am using version 1.3.8

Under my modules> Order total>, Everything is activated. Meaning all is green.

If I click on Order Sub-Total I see this on the right side:

Order Sub-Total
This module is installed
true

Sort Order
100

I still cannot get it work... anything else?

9 Mar 2009, 7:24 AM
#7
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #7 by terytubby

Could it also be that I set my currency to SGD (Singapore dollars) while they are sending USD to paypal instead? The thing is I've set everything to SGD..anything I missed?

Because I get this under my log:

paypaldp
optionsAll: Array
(
[ITEMAMT] => 101.00
[SHIPPINGAMT] => 0.00
[AMT] => 101.00
[L_NUMBER0] => TBBand
[L_QTY0] => 1
[L_NAME0] => Wristband
[L_AMT0] => 1.00
[L_TAXAMT0] => 0.00
[L_NUMBER1] => EW61
[L_QTY1] => 1
[L_NAME1] => Gel
[L_AMT1] => 100.00
[L_TAXAMT1] => 0.00
[STREET] => xxxxxx
[ZIP] => xxxxxx
[CITY] => xxxxxx
[STATE] =>
[COUNTRYCODE] => SG
[EXPDATE] => 102011
[EMAIL] => xxxxxx
[PHONENUM] => xxxxxx
[BUTTONSOURCE] => ZenCart-DP_us
[CURRENCY] => USD
[IPADDRESS] => xxx.xxx.0.xxx
[CARDISSUE] =>
)

optionsNVP: Array
(
[PAYMENTACTION] => Sale
)

optionsShipArray
(
[SHIPTONAME] => xxxxxx
[SHIPTOSTREET] => xxxxxx
[SHIPTOCITY] => Singapore
[SHIPTOZIP] => xxxxxx
[SHIPTOSTATE] => Singapore
[SHIPTOCOUNTRYCODE] => SG
)

Rest of data:
0.00 10 11 my name Visa

And I also noticed that under the Rest of data, it mention 0.00 when it should be 12.00. Any idea?

9 Mar 2009, 7:56 AM
#8
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #8 by terytubby

Rest of data:
0.00 10 11 my name Visa

SOrry it should be 101.00 instead of 0.00

9 Mar 2009, 9:02 AM
#9
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #9 by terytubby

Ok guys, I've played around the modules>payment>paypal website payments pro

Under Transaction Currency > select Selected Currency radio button.

Previously I selected Singapore dollars.

Now it works fine! Thanks everyone!

9 Mar 2009, 9:31 AM
#10
seventhwhiskey avatar

seventhwhiskey

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Post #10 by seventhwhiskey

DrByte:

Glad you found the solution to your problem.

Subtotals are rather important information when explaining pricing details to your customers, including receipts. Why people think they should turn that off and leave their customers without important information always puzzles me.

I just had them off because on this particular site it's for services and I am charging no sales tax and no shipping, just seemed easier with only a total.

10 Mar 2009, 3:33 AM
#11
terytubby avatar

terytubby

New Zenner

Join Date:
Mar 2009
Posts:
7
Plugin Contributions:
0

Post #11 by terytubby

How silly of me.... I tested it wrongly.... I clicked on my Express checkout instead and tot it worked....:cry: so my problem still exists... Anyone help me?:(

30 Apr 2009, 9:21 PM
#12
pricediscrimination avatar

pricediscrimination

Zen Follower

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

Post #12 by pricediscrimination

has there been a fix to this error? does anyone know why it happens??

missed two orders this week because of it.

21 Jun 2009, 8:44 AM
#13
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

Post #13 by xxdrag0nxx

I am getting this problem too :(

Paypal express checks out fine, but through PPD keeps giving the same error :(

18 Jan 2010, 12:03 AM
#15
gsmsalers avatar

gsmsalers

New Zenner

Join Date:
Feb 2009
Posts:
71
Plugin Contributions:
0

Post #15 by gsmsalers

terytubby:

How silly of me.... I tested it wrongly.... I clicked on my Express checkout instead and tot it worked....:cry: so my problem still exists... Anyone help me?:(

I had same problem. But after upgrading my paypal to a business account, the error disappeared.
Thank you.

30 Jan 2010, 5:21 AM
#16
argyle avatar

argyle

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Post #16 by argyle

My Pay Pal Express checkout works fine but my Pay Pal Website Payments pro givs me two errors.. If i delete the USD currency i get the error

10525 Invalid Data - This transaction cannot be processed. The amount to be charged is zero.

If I add the USD currency i get the error

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.

I've set the currency on both express and payments pro to selected currency but got NZD as my default currency.

Order total True and Sub Total True

But I tried to pay with my swedish VISA card, can that have something to do with it? Pay PAl support SEK (Swe currency)

I don't want the USD currency but must I have it installed, read one guy got it working if he had USD set to 1.0000, but that can't be right?

31 Jan 2010, 12:49 AM
#17
argyle avatar

argyle

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Post #17 by argyle

Anyone who knows what might be wroing with payment pro? I think it is the currency in my case! It's like USD is set as the only currency or something.

Pay Pal express works fine!

31 Jan 2010, 12:59 AM
#18
drbyte avatar

drbyte

Sensei

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

Post #18 by drbyte

Website Payments Pro does NOT accept NZD or SEK. Thus, it's being forced to attempt to transact in USD.

.
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 Feb 2010, 2:27 AM
#19
argyle avatar

argyle

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Post #19 by argyle

DrByte:

Website Payments Pro does NOT accept NZD or SEK. Thus, it's being forced to attempt to transact in USD.

AAAAA!!! Here's the answear to a lot of peoples problems! Good Pay Pal express works with different currencies!

2 Feb 2010, 3:45 AM
#20
drbyte avatar

drbyte

Sensei

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

Post #20 by drbyte

Argyle:

Good Pay Pal express works with different currencies!23 in fact, as of today.

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