Forums / PayPal Express Checkout support / exchange rate and PAYPAL 10413 error in v1.3.8a

exchange rate and PAYPAL 10413 error in v1.3.8a

Locked

Views: 1,846

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
7 May 2010, 9:57 AM
#1
gunrose2003 avatar

gunrose2003

New Zenner

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

exchange rate and PAYPAL 10413 error in v1.3.8a

hi, i have a problem that when i add more than 3 products, the currency will change to Euro or GBP,the unit and total price are different and donot match, it comes with paypal 10413 error.
Paypal says:
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.

  1. how to solve the exchange rate problem?
  2. how to solve the paypal problem?
    thank you.
7 May 2010, 5:30 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: exchange rate and PAYPAL 10413 error in v1.3.8a

A large number of improvements to the calculation of cart details and other PayPal-related things are included in the recently-released Zen Cart v1.3.9 version. Upgrading should resolve those problems.

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

7 Aug 2010, 9:10 PM
#3
gunrose2003 avatar

gunrose2003

New Zenner

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

Re: exchange rate and PAYPAL 10413 error in v1.3.8a

i found most of customers to pay us for failure, So i set the Paypal express and Standard version status to "Debug".
then I received a paypal debug log,
I want to know what does it mean and what the problem is? thank you.

The first mail title:
PayPal Debug log - SetExpressCheckout

(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 - WPP-NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.8a
)

Request Parameters: {SetExpressCheckout}
Array
(
[LOCALECODE] => US
[PAYMENTACTION] => Sale
[AMT] => 139.99
[RETURNURL] => https://www.xxx.com/ipn_main_handler.php?type=ec
[CANCELURL] =>
https://www.xxx.com/index.php?main_page=shopping_cart&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => USD
[USER] => payment_api1.xxx.com
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************-qya
)

Response:
Array
(
[TOKEN] => EC-2KC00011W7795622E
[TIMESTAMP] => 2010-08-06T17:53:59Z
[CORRELATIONID] => 22b74b0c667a3
[ACK] => Success
[VERSION] => 3.2
[BUILD] => 1421734
[CURL_ERRORS] =>
)


the second mail title:
ec_step1 - 2 -submit

Array
(
[AMT] => 139.99
[RETURNURL] => https://www.xxx.com/ipn_main_handler.php?type=ec
[CANCELURL] =>
https://www.xxx.com/index.php?main_page=shopping_cart&ec_cancel=1
[LOCALECODE] => US
[CURRENCY] => USD
[PAYMENTACTION] => Sale
[SOLUTIONTYPE] => SOLE
)


the third mail title:
ec-step1-addr_check3


address details from override check:

the fourth mail title:
getOverrideAddress - 4

not logged in and not in markflow mode - nothing to override


the fifth mail title:
ec-step1-addr_check

cart contents is not all virtual or customer is not logged in ... therefore
will be submitting address details

the sixth mail title:
ec_step1 - 1

Checking to see if we are in markflow
cart contents: physical

NOTE: $this->showPaymentPage = 0
Customer ID: 0
Session Data: Array
(
[securityToken] => 6e24dc7f92d301f5325e715d351ee777
[customers_host_address] =>
host86-155-151-82.range86-155.btcentralplus.com
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[1141:87f44a60ac30204bdd64fe9f8688184c] => Array
(
[qty] => 1
[attributes] => Array
(
[1] => 113
)

                   )

           )

       [total] => 139.99
       [weight] => 0.46
       [cartID] => 66313
       [content_type] => physical
       [free_shipping_item] => 0
       [free_shipping_weight] => 0
       [free_shipping_price] => 0
       [observers] => Array
           (
           )

   )

[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => shopping_cart
[mode] => NONSSL
[get] => Array
(
[action] => totalshipping
[method_type] => storepickup
[country_id] => 223
)

                       [post] => Array
                           (
                           )

                   )

               [1] => Array
                   (
                       [page] => index
                       [mode] => SSL
                       [get] => Array
                           (
                               [type] => ec
                           )

                       [post] => Array
                           (
                           )

                   )

           )

       [snapshot] => Array
           (
           )

       [observers] => Array
           (
           )

   )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => USD
[today_is] => 2010-08-06
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 86.155.151.82
[messageToStack] =>
[view_history] => Array
(
[0] => 1358
[1] => 1358
[2] => 1141
)

[new_products_id_in_cart] => 1141:87f44a60ac30204bdd64fe9f8688184c
[valid_to_checkout] => 1
[cart_errors] =>
[shipping_method_type] => storepickup
[payment] => paypalwpp
[cot_gv] => 0
[SSL_SESSION_ID] =>
)

12 Aug 2010, 8:20 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: exchange rate and PAYPAL 10413 error in v1.3.8a

The log content you posted doesn't contain anything that explains what your problem is.
The log that would be most useful as a starting point would be the one for DoExpressCheckoutPayment, since it details what exactly was sent to PayPal and rejected by them, and why.

But, as I said previously, the v1.3.9 upgrade includes numerous significant improvements in how details are calculated for submission to PayPal, and of course many other important improvements including security fixes and many other bugfixes.

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

12 Aug 2010, 11:12 PM
#5
gunrose2003 avatar

gunrose2003

New Zenner

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

Re: exchange rate and PAYPAL 10413 error in v1.3.8a

DrByte:

The log content you posted doesn't contain anything that explains what your problem is.
The log that would be most useful as a starting point would be the one for DoExpressCheckoutPayment, since it details what exactly was sent to PayPal and rejected by them, and why.

But, as I said previously, the v1.3.9 upgrade includes numerous significant improvements in how details are calculated for submission to PayPal, and of course many other important improvements including security fixes and many other bugfixes.

thank you for your reply, DrByte. Could you list some files that related paypal module bug? if that, i just need to compare less source code. i did lots of modify about 1.38a. so will upgrade to 1.39 is very difficult for me. i dont know what to do?

thank you very much.

12 Aug 2010, 11:25 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: exchange rate and PAYPAL 10413 error in v1.3.8a

/includes/classes/.
/includes/functions/.
/includes/modules/.
and many more.

Hacking individual changes is not recommended.

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