Forums / PayPal Express Checkout support / Checkout Error code 10413....

Checkout Error code 10413....

Locked

Views: 36,433

Results 61 to 80 of 82
This thread is locked. New replies are disabled.
6 Sep 2009, 1:26 AM
#61
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Checkout Error code 10413....

lsenft:

Duplicate post removed by moderator.

See here: http://www.zen-cart.com/forum/showthread.php?p=778125#post778125So this fix applies to the PayPal Express module only correct?? (paypalwpp.php)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

5 Nov 2009, 8:42 AM
#62
mole6e23 avatar

mole6e23

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Re: Checkout Error code 10413....

At the risk of saying "me, too!", but wanting to make as many comments with an answer I think is correct, I will agree with what is said below. Looking at the logs in detail shows that the AMT was being set correctly for orders over $1,000, but then was not being sent correctly to DoExpressCheckoutPayment (there the AMT was set to 1.0, which caused the 10413 error of totals not matching). Changing the code like below worked for me. I took a quicker, dirtier route since according to the PayPal documentation the comma separator is optional, I just removed the number_format alltogether from the DoExpressCheckoutPayment parameters.

Line 535 of paypalwpp.php:

      $response = $doPayPal->DoExpressCheckoutPayment($_SESSION['paypal_ec_token'],
                                                      $_SESSION['paypal_ec_payer_id'],
                                                      (isset($options['AMT']) ? $options['AMT'] : $order_amount),
                                                      $options);

Good luck,
Todd

packet8bit:

I believe the problem lies in this line in the file:
/includes/modules/payment/paypalwpp.php

  $response = $doPayPal->DoExpressCheckoutPayment($_SESSION['paypal_ec_token'],
                                                  $_SESSION['paypal_ec_payer_id'],
                                                  number_format((isset($options['AMT']) ? $options['AMT'] : $order_amount), 2),
                                                  $options);

The value of $options['AMT'] may already contain a formatted string such as 1,050.99. In the line above, it is formatted again by the number_format function which may now result to a truncated value of 1. This causes a mismatch now with the original value which should still be 1050.99. This may not affect values less than 1000.

To fix, I changed the above code to:

  if (isset($options['AMT']))
{
    $response = $doPayPal->DoExpressCheckoutPayment($_SESSION['paypal_ec_token'],
  												  $_SESSION['paypal_ec_payer_id'],
  												  $options['AMT'],
  												  $options);
}
else
{		
    $response = $doPayPal->DoExpressCheckoutPayment($_SESSION['paypal_ec_token'],
  												  $_SESSION['paypal_ec_payer_id'],
  												  number_format($order_amount, 2),
  												  $options);
}

Hope that helps!

packet8bit
:cool:

30 Dec 2009, 12:34 AM
#63
tieshop_com_au avatar

tieshop_com_au

New Zenner

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

Re: Checkout Error code 10413....

Yes, this 'quick and dirty' solution seems to have solved the problem for me! Thanks.

6 Jan 2010, 12:36 AM
#64
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Checkout Error code 10413....

I am running 2 stores.

ZC 1.3.7.1 (with all the security patches and heavily modified) has been working a treat since late 2007. PP EC never produced an error message that was not immediately fixable.

ZC 1.3.8a (patched) was installed 3 weeks ago and is ready to be launched. While testing live orders PP EC keeps producing the dreaded 10413 Error. After spending long hours last night trying to get to the bottom of the problem, I have not found one single satisfying and simple solution in the numerous posts discussing this error.

I finished up doing the same as other fellow zenners did: turned PP Express Checkout off.

It will remain turned off until someone who is a bit more savvy with coding comes up with a tried and proven final patch/fix.

Meanwhile have a happy and prosperous 2010!

Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Jan 2010, 7:22 PM
#65
argyle avatar

argyle

New Zenner

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

Re: Checkout Error code 10413....

Got the same problem with the new version 1.3.8 code 10413.

Got a sales tax named GST in my cart on all products for 12.5% (GST in NZ). Seem like my prices still translates into USD when i read the debug files. I got NZD set to default currency.

If I remove USD from my site all prizes goes to 0 still even if I got NZD set as default currency. Might think this is my problem but not sure.

Tried all the things that's been posted in this thread and nothings works for Pay Pal express, very frustrating.

Hope there will be a fix soon.

27 Jan 2010, 7:51 PM
#66
drbyte avatar

drbyte

Sensei

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

Re: Checkout Error code 10413....

Argyle:

Got a sales tax named GST in my cart on all products for 12.5% (GST in NZ). Seem like my prices still translates into USD when i read the debug files. I got NZD set to default currency.You probably have your PayPal module set to use USD.

Argyle:

If I remove USD from my site all prizes goes to 0 still even if I got NZD set as default currency.
https://www.zen-cart.com/tutorials/index.php?article=96

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

27 Jan 2010, 9:35 PM
#67
backinthesaddle avatar

backinthesaddle

New Zenner

Join Date:
Mar 2007
Posts:
74
Plugin Contributions:
0

Re: Checkout Error code 10413....

I have struggled over several days to fix this 10413 issue on my site. We are running Zencart 1.3.8a with Paypal Express and need to display prices including VAT. However, placing an order with VAT included causes the 10413 error. I have read with interest the threads and tried several solutions. I have just tried the fix here designed to tackle the issue of displaying prices with VAT and processing orders through Paypal Express http://www.zen-cart.com/forum/showthread.php?t=97762 but to no avail.

I am attaching the log files for the last order I tried to place with this fix in place.

Dr Byte are you able to please take a look and see if you can see what may be causing the problem? Or is anyone else able to advise? Yours in hope!!

30 Jan 2010, 4:04 AM
#68
argyle avatar

argyle

New Zenner

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

Re: Checkout Error code 10413....

Is the quick and dirty fix a permanent sollution?

30 Jan 2010, 4:46 AM
#69
argyle avatar

argyle

New Zenner

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

Re: Checkout Error code 10413....

Hey I think my Pay Pal express been working the whole time just that Pay Pal Website Payments Pro is doing something wrong so I get the error!

30 Jan 2010, 8:56 AM
#70
backinthesaddle avatar

backinthesaddle

New Zenner

Join Date:
Mar 2007
Posts:
74
Plugin Contributions:
0

Re: Checkout Error code 10413....

Argyle glad your problem seems to have resolved. The 'quick and dirty fix' didn't work for me. I am still hoping someone can give me some insight from the log files I attached! If not I will have to abandon Paypal Express and find a different gateway.

8 Mar 2010, 2:15 AM
#72
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Checkout Error code 10413....

frank18:

I finished up doing the same as other fellow zenners did: turned PP Express Checkout off.

It will remain turned off until someone who is a bit more savvy with coding comes up with a tried and proven final patch/fix.

Applied jabbah's fix as per post #56 in this tread, tested several orders and can report that it works a treat!

Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Mar 2010, 9:45 PM
#73
lofwyre avatar

lofwyre

New Zenner

Join Date:
May 2005
Location:
Australia
Posts:
7
Plugin Contributions:
0

Re: Checkout Error code 10413....

Installing the patch (from post 56) worked for me as well.

Considering the age of this thread, is zen-cart still under development? Will there ever be an official patch to fix this issue?

17 Mar 2010, 11:02 PM
#74
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout Error code 10413....

lofwyre:

I
Considering the age of this thread, **is zen-cart still under development?**Nope..

lofwyre:

Will there ever be an official patch to fix this issue?Bug fixes as they are released are posted here: http://www.zen-cart.com/forum/showthread.php?t=82619

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

18 Mar 2010, 2:50 AM
#75
drbyte avatar

drbyte

Sensei

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

Re: Checkout Error code 10413....

DivaVocals:

lofwyre:

I
Considering the age of this thread, **is zen-cart still under development?**Nope..
DivaVocals is COMPLETELY WRONG in that statement.

Zen Cart is perfectly alive and well and in active development.

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

18 Mar 2010, 3:14 AM
#76
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Checkout Error code 10413....

frank18:

Applied jabbah's fix as per post #56 in this tread, tested several orders and can report that it works a treat!

Frank

And guess what? After several good test orders (see above) I had yet another 10413 error. The customer finished up paying for the order by Direct Deposit, so nothing was lost.

I don't want annoy any more customers, so EC is OFF again.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Mar 2010, 6:04 AM
#77
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout Error code 10413....

DrByte:

DivaVocals is COMPLETELY WRONG in that statement.

Zen Cart is perfectly alive and well and in active development.
Excuse me DrByte.. but with all due respect, I think you mis-understood what I meant by my response.. (Perhaps because I was writing fast on the way to a meeting and didn't write out my full thoughts).. But to be CLEAR what I ACTUALLY meant is that this is NOT a dead project which I have said SEVERAL times in PLENTY of places ALL OVER this forum.. So I understand the public admonishment, but for goodness sakes it was a little on the HARSH side..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

18 Mar 2010, 11:11 AM
#78
drbyte avatar

drbyte

Sensei

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

Re: Checkout Error code 10413....

Sorry, you answered the question with "Nope.", making it pretty clear that you intended to convey a negative response to the question.
Hence the equally blunt correction to the incorrect statement.

No offence intended. Merely intending to ensure that incorrect information is not proliferated needlessly.

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

18 Mar 2010, 1:01 PM
#79
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout Error code 10413....

DrByte:

Sorry, you answered the question with "Nope.", making it pretty clear that you intended to convey a negative response to the question.
Hence the equally blunt correction to the incorrect statement.

No offence intended. Merely intending to ensure that incorrect information is not proliferated needlessly.I maintain that my "intent" isn't as clear as you have indicated.. (Clearly not so given THIS response and my other follow-up response) Like I said, it was an honest mistake.. and NOT in step with any previous statements I have made on this forum when addressing similar comments/questions (for example as in the now dead Zen 2.0 thread)..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

26 Mar 2010, 12:17 PM
#80
edwinlloyd avatar

edwinlloyd

New Zenner

Join Date:
Feb 2007
Posts:
37
Plugin Contributions:
0

Re: Checkout Error code 10413....

I am sorry to resurrect this subject, but I too have this 10413 error and have spent literally hours trying to fix it. I have tried the fix listed in post 36 of the known bugs but it does not fix it.

This section of one of the log files sums it up:

Request Parameters: {DoExpressCheckoutPayment}
Array
(
[SHIPPINGAMT] => 0.00
[HANDLINGAMT] => 10.87
[TAXAMT] => 10.87
[ITEMAMT] => 72.99
[AMT] => 72.99
[SHIPTONAME] => Test User
[SHIPTOSTREET] => 1 Main Terrace
[SHIPTOCITY] => Wolverhampton
[SHIPTOSTATE] => West Midlands
[SHIPTOZIP] => W12 4LQ
[SHIPTOCOUNTRYCODE] => GB
[BUTTONSOURCE] => ZenCart-EC_us
[TOKEN] => EC-71B13221BP526312F
[PAYERID] => NQQBT3ELSZ4ZQ
[PAYMENTACTION] => Sale
[NOTIFYURL] => https://www.clothesairerstore.co.uk/ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => GBP
[USER] => [email protected]
[PWD] => **********
[VERSION] => 3.2
[SIGNATURE] => ****************************************************By0T
)

Response:
Array
(
[TIMESTAMP] => 2010-03-26T11:26:51Z
[CORRELATIONID] => 61562cfe53287
[ACK] => Failure
[VERSION] => 3.2
[BUILD] => 1244696
[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] =>

I have zen cart 1.3.8a, patch 1::, DB patch level: 1.3.8.

I have freeoptions and freeshipper activated but no other Shipping modules

I have PPEC (sandbox active) (Debug) active (rev 1.3.8a) and no other payment modules active.

And yes, Sub-total (ot_subtotal) is switched on.

I operate in the UK, so I need VAT switched on.

Any help would be most appreciated. I don't know how important it is to offer Paypal, but I have always operated on the principal of trying to remove any hurdles that customers face when trying to make a purchase. The lack of Paypal may be just such a hurdle.

my greener home. Save money and save the environment.