Forums / PayPal Express Checkout support / PayPal 10413 error

PayPal 10413 error

Results 1 to 20 of 93
15 Jan 2008, 16:06
#1
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

PayPal 10413 error

HI,

I've installed PayPal, and when trying to complete a payment I get the follwoing 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.

What I've tested so far + results:
CURL test:
Data validation
Good
Also with ?ssl=1 added.

IPN test:
Illegal Access

I turned off tax and shipping settings in my PayPal account.

http://my_site.com/store/ipn_main_handler.php returns:
Nothing to process. Please return to home page.

I have re-installed PayPal via my admin.

Sandbox transaction does work...

Any ideas what could be causing this?

Thanks in advance!
Regards,
Jurjen
18 Jan 2008, 03:36
#2
lodestar avatar

lodestar

New Zenner

Join Date:
Jan 2008
Posts:
19
Plugin Contributions:
0

Re: PayPal 10413 error

i am also having this same problem and would appreciate any help!

thanks in advance!
18 Jan 2008, 05:00
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: PayPal 10413 error

lodestar:

i am also having this same problem and would appreciate any help!

thanks in advance!


Yours is related to your shipping module problems, as you stated in another post:
http://www.zen-cart.com/forum/showthread.php?t=85880
20 Jan 2008, 12:11
#4
gfunk avatar

gfunk

New Zenner

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

Re: PayPal 10413 error

I haven't had problems with PayPal express, but now I'm getting the same problem as well.
I'm running a test with a 0.01 euro item with 2.99 euro shipping (using zone rates), and am getting the above error.
I'm running Zen 1.3.8a, and have deactived the following modules in the admin section>modules>order total> deactivated low order fee and COD fee.
I've included the log file

Jan-20-2008 01:42:50
termEC-1
Killed the session vars as requested
=================================

Jan-20-2008 01:42:50
termEC-2
BEFORE: $this->showPaymentPage = 0
Token Data:
=================================

Jan-20-2008 01:42:50
termEC-3
AFTER: $this->showPaymentPage = 0
=================================

Jan-20-2008 01:42:50
termEC-8
$this->showPaymentPage NOT true, and NO custom page selected ... using SHIPPING as default
=================================

Jan-20-2008 01:42:50
termEC-10
Redirecting to checkout_shipping - Stack: checkout_shipping
Message: 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. 
Session Data: Array
(
    [securityToken] => dd9bf7f196e78252cb4cfexxxxxxxx
    [customers_host_address] => xxxxxxxxx.access.telenet.be
    [cartID] => 58526
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [4:4ddc959ce384580346beb465f9fcb090] => Array
                        (
                            [qty] => 1
                            [attributes] => Array
                                (
                                    [1] => 2
                                )

                        )

                )

            [total] => 0.01
            [weight] => 0
            [cartID] => 58526
            [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] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                    [token] => EC-5SJ87214MT4XXXXXX
                                    [PayerID] => 9TTM8YHXXXXX
                                )

                            [post] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [page] => checkout_process
                            [mode] => NONSSL
                            [get] => 
                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                    [page] => product_info
                    [mode] => NONSSL
                    [get] => Array
                        (
                            [cPath] => 2
                            [products_id] => 4
                        )

                    [post] => Array
                        (
                        )

                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => english
    [languages_id] => 1
    [languages_code] => en
    [currency] => EUR
    [today_is] => 2008-01-20
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => xx.xx.xxx.xx
    [new_products_id_in_cart] => 
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
    [cot_gv] => 0
    [customer_id] => 48
    [customer_default_address_id] => 55
    [customer_first_name] => name
    [customer_country_id] => 21
    [customer_zone_id] => 0
    [sendto] => 55
    [billto] => 55
    [shipping] => Array
        (
            [id] => zones_zones
            [title] => Zone Rates (Shipping to BE)
            [cost] => 2.4711
        )

    [shipping_tax_description] => 21%
    [shipping_tax_amount] => 0.52
    [comments] => 
    [messageToStack] => Array
        (
            [0] => Array
                (
                    [class] => checkout_shipping
                    [text] => 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. 
                    [type] => error
                )

        )

)

=================================
21 Jan 2008, 23:11
#5
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

Hi guys,

I'm still getting the error,and I'd really appreciate help.

I'm using flat rate shipping.
No coupons/gift certificates/custom discount used.
No special products in the cart.
Problem returns on demand.

These are the different log files, which are generated.
A thing I noticed:
Some lines say:
[ITEMAMT] => 0.06
[HANDLINGAMT] => -0.01
[SHIPPINGAMT] => 0.1
[TAXAMT] => 0.01
[AMT] => 0.16

Others say:
[ITEMAMT] => 0.06
[HANDLINGAMT] => 0.01
[SHIPPINGAMT] => 0.10
[TAXAMT] => 0.01
[AMT] => 0.16

So the minus (-) is missing. Could that be the conflict?

Thanks in advance!!

Jan-21-2008 11:39:50
ec_step1 - 1
Checking to see if we are in markflow
cart contents: physical

NOTE: $this->showPaymentPage = 1
Customer ID: 0
Session Data: Array
(
    [securityToken] => f6c604fa0b21d80a649461a028061029
    [customers_host_address] => xxxxxxx-a.mill1.nb.home.nl
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [198] => Array
                        (
                            [qty] => 1
                        )

                )

            [total] => 0.06
            [weight] => 0
            [cartID] => 68189
            [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] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                )

                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                    [page] => checkout_shipping
                    [mode] => NONSSL
                    [get] => Array
                        (
                        )

                    [post] => Array
                        (
                        )

                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => dutch
    [languages_id] => 2
    [languages_code] => nl
    [currency] => EUR
    [today_is] => 2008-01-21
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => xx.xx.xxx.xx
    [new_products_id_in_cart] => 198
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
    [cot_gv] => 0
)

=================================

Jan-21-2008 11:39:50
ec-step1-addr_check
cart contents is not all virtual or customer is not logged in ... therefore will be submitting address details
=================================

Jan-21-2008 11:39:50
getOverrideAddress - 4
not logged in and not in markflow mode - nothing to override
=================================

Jan-21-2008 11:39:50
ec-step1-addr_check3
address details from override check:
=================================

Jan-21-2008 11:39:50
ec_step1 - 2 -submit
Array
(
    [AMT] => 0.05
    [RETURNURL] => http://www.charrou.com/store/ipn_main_handler.php?type=ec
    [CANCELURL] => http://www.charrou.com/store/index.php?main_page=login&ec_cancel=1
    [CURRENCY] => EUR
    [PAYMENTACTION] => Sale
    [SOLUTIONTYPE] => SOLE
)

=================================


Jan-21-2008 11:40:37
termEC-1
Killed the session vars as requested
=================================

Jan-21-2008 11:40:37
termEC-2
BEFORE: $this->showPaymentPage = 1
Token Data:
=================================

Jan-21-2008 11:40:37
termEC-3
AFTER: $this->showPaymentPage = 1
=================================

Jan-21-2008 11:40:37
termEC-4
We ARE logged in, and $this->showPaymentPage === true
=================================

Jan-21-2008 11:40:37
termEC-6
We DO have a shipping method selected, so goto PAYMENT
=================================

Jan-21-2008 11:40:37
termEC-10
Redirecting to checkout_payment - Stack: checkout_payment
Message: 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. 
Session Data: Array
(
    [securityToken] => f6c604fa0b21d80a649461a028061029
    [customers_host_address] => xxxxx.mill1.nb.home.nl
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [198] => Array
                        (
                            [qty] => 1
                        )

                )

            [total] => 0.06
            [weight] => 0
            [cartID] => 
            [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] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                    [token] => EC-99N08730M20920136
                                    [PayerID] => REWZX55B4ETX8
                                )

                            [post] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [page] => checkout_payment
                            [mode] => NONSSL
                            [get] => 
                            [post] => Array
                                (
                                )

                        )

                    [2] => Array
                        (
                            [page] => checkout_confirmation
                            [mode] => NONSSL
                            [get] => 
                            [post] => Array
                                (
                                )

                        )

                    [3] => Array
                        (
                            [page] => checkout_process
                            [mode] => NONSSL
                            [get] => 
                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                    [page] => checkout_shipping
                    [mode] => NONSSL
                    [get] => Array
                        (
                        )

                    [post] => Array
                        (
                        )

                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => dutch
    [languages_id] => 2
    [languages_code] => nl
    [currency] => EUR
    [today_is] => 2008-01-21
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => xx.xx.xxx.94
    [new_products_id_in_cart] => 198
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
    [cot_gv] => 0
    [customer_id] => 2
    [customer_default_address_id] => 2
    [customer_first_name] => Jurjen
    [customer_country_id] => 150
    [customer_zone_id] => 0
    [sendto] => 2
    [billto] => 2
    [shipping] => Array
        (
            [id] => flat_flat
            [title] => Verzendkosten (Verzendkosten)
            [cost] => 0.1
            [module] => flat
        )

    [comments] => 
    [messageToStack] => Array
        (
            [0] => Array
                (
                    [class] => checkout_payment
                    [text] => 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. 
                    [type] => error
                )

        )

)

=================================
21 Jan 2008, 23:11
#6
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

Jan-21-2008 11:40:36
getLineItemDetails 1
Order Subtotal does not match sum of line-item prices. Line-item-details skipped.
0.06 0.05
=================================

Jan-21-2008 11:40:36
getLineItemDetails 3
LineItemDetails: 
Details:Array
(
    [ITEMAMT] => 0.06
    [HANDLINGAMT] => -0.01
    [SHIPPINGAMT] => 0.1
    [TAXAMT] => 0.01
    [AMT] => 0.16
)


DEFAULT_CURRENCY = EUR
SESSION['currency'] = EUR
order->info['currency'] = EUR
$currencies->currencies[$_SESSION['currency']]['value'] = 1.00000000
currencies Object
(
    [currencies] => Array
        (
            [USD] => Array
                (
                    [title] => US Dollar
                    [symbol_left] => $
                    [symbol_right] => 
                    [decimal_point] => .
                    [thousands_point] => ,
                    [decimal_places] => 2
                    [value] => 1.00000000
                )

            [EUR] => Array
                (
                    [title] => Euro
                    [symbol_left] => €
                    [symbol_right] => 
                    [decimal_point] => .
                    [thousands_point] => ,
                    [decimal_places] => 2
                    [value] => 1.00000000
                )

            [GBP] => Array
                (
                    [title] => GB Pound
                    [symbol_left] => £
                    [symbol_right] => 
                    [decimal_point] => .
                    [thousands_point] => ,
                    [decimal_places] => 2
                    [value] => 0.50300002
                )

            [CAD] => Array
                (
                    [title] => Canadian Dollar
                    [symbol_left] => $
                    [symbol_right] => 
                    [decimal_point] => .
                    [thousands_point] => ,
                    [decimal_places] => 2
                    [value] => 1.10590005
                )

            [AUD] => Array
                (
                    [title] => Australian Dollar
                    [symbol_left] => $
                    [symbol_right] => 
                    [decimal_point] => .
                    [thousands_point] => ,
                    [decimal_places] => 2
                    [value] => 1.24070001
                )

        )

    [observers] => Array
        (
        )

)

=================================

Jan-21-2008 11:40:36
getLineItemDetails 7
checking subtotals... 
itemamt: 0.06
taxamt: 0.01
shippingamt: 0.10
handlingamt: 0.01
-------------------
subtotal: 0.16
AMT: 0.16
-------------------
difference: 0  (abs+rounded: 0)
=================================

Jan-21-2008 11:40:36
getLineItemDetails 8
subtotals balance - okay
=================================

Jan-21-2008 11:40:36
before_process - EC-1
Beginning EC mode
=================================

Jan-21-2008 11:40:36
before_process - EC-2
address overrides added:
Array
(
    [ITEMAMT] => 0.06
    [HANDLINGAMT] => 0.01
    [SHIPPINGAMT] => 0.10
    [TAXAMT] => 0.01
    [AMT] => 0.16
    [SHIPTONAME] => Jurjen Ruben
    [SHIPTOSTREET] => jacox xxx 8
    [SHIPTOSTREET2] => 
    [SHIPTOCITY] => Nijmegen
    [SHIPTOSTATE] => Nijmegen
    [SHIPTOZIP] => 6521 HP
    [SHIPTOCOUNTRYCODE] => NL
)

=================================

Jan-21-2008 11:40:36
before_process - EC-3
address info added:
Array
(
    [ITEMAMT] => 0.06
    [HANDLINGAMT] => 0.01
    [SHIPPINGAMT] => 0.10
    [TAXAMT] => 0.01
    [AMT] => 0.16
    [SHIPTONAME] => Jurjen Ruben
    [SHIPTOSTREET] => jacox xxx 8
    [SHIPTOSTREET2] => 
    [SHIPTOCITY] => Nijmegen
    [SHIPTOSTATE] => Nijmegen
    [SHIPTOZIP] => 65xx xx
    [SHIPTOCOUNTRYCODE] => NL
)

=================================

Jan-21-2008 11:40:36
getOverrideAddress - 1
Now in markflow mode.
SESSION[sendto] = 2
=================================

Jan-21-2008 11:40:36
getOverrideAddress - 2
$address_arr->fields = Array
(
    [entry_firstname] => Jurjen
    [entry_lastname] => Ruben
    [entry_street_address] => jacox xxx 8
    [entry_suburb] => 
    [entry_city] => Nijmegen
    [entry_postcode] => 65xx xx
    [entry_country_id] => 150
    [entry_zone_id] => 0
    [entry_state] => Gelderland
    [zone_code] => Gelderland
    [countries_iso_code_2] => NL
)

=================================

Jan-21-2008 11:40:36
before_process - EC-4
info being submitted:
EC-99N08730M20920136 REWZX55B4ETX8 0.16
Array
(
    [ITEMAMT] => 0.06
    [HANDLINGAMT] => 0.01
    [SHIPPINGAMT] => 0.10
    [TAXAMT] => 0.01
    [AMT] => 0.16
    [SHIPTONAME] => Jurjen Ruben
    [SHIPTOSTREET] => jacox xxx 8
    [SHIPTOCITY] => Nijmegen
    [SHIPTOSTATE] => Gelderland
    [SHIPTOZIP] => 65xx xx
    [SHIPTOCOUNTRYCODE] => NL
    [ADDROVERRIDE] => 1
    [BUTTONSOURCE] => ZenCart-EC_us
    [CURRENCY] => EUR
)

=================================

Jan-21-2008 11:40:37
before_process - EC-5
resultset:
Array
(
    [TIMESTAMP] => 2008-01-21T22:40:44Z
    [CORRELATIONID] => 13c9e58db669b
    [ACK] => Failure
    [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
    [VERSION] => 3.200000
    [BUILD] => 1.0006
    [CURL_ERRORS] => 
)

=================================

Jan-21-2008 11:40:23
PayPal test Log - ec_step2 $_REQUEST data
In function: ec_step2()
Data in $_REQUEST = 
Array
(
    [type] => ec
    [token] => EC-99N08730M20920136
    [PayerID] => REWZX55B4ETX8
    [zenid] => b011b5e58d89fb4ed82ed99f62f28c91
)

=================================

Jan-21-2008 11:40:25
ec_step2_finish - 1
START: paypal_ec_payer_info= Array
(
    [payer_id] => REWZX55B4ETX8
    [payer_email] => [email protected]
    [payer_salutation] => 
    [payer_gender] => 
    [payer_firstname] => Jurjen
    [payer_lastname] => Ruben
    [payer_business] => 
    [payer_status] => verified
    [ship_country_code] => NL
    [ship_address_status] => Unconfirmed
    [ship_phone] => 
    [ship_name] => Jurjen Ruben
    [ship_street_1] => jacox xxx 8
    [ship_street_2] => 
    [ship_city] => Nijmegen
    [ship_state] => Nijmegen
    [ship_postal_code] => 65xx xx
    [ship_country_name] => Netherlands
)

=================================

Jan-21-2008 11:40:25
ec_step2_finish - 2
country_id = 150 Netherlands NL
address_format_id = 1
state_id = 0 (original state tested: Nijmegen)
country1->fields['countries_id'] = 150
country2->fields['countries_id'] = 150
$order = stdClass Object
(
    [customer] => Array
        (
            [name] => Jurjen Ruben
            [company] => 
            [street_address] => jacox xxx 8
            [suburb] => 
            [city] => Nijmegen
            [postcode] => 65xx xx
            [state] => Nijmegen
            [country] => Array
                (
                    [id] => 150
                    [title] => Netherlands
                    [iso_code_2] => NL
                    [iso_code_3] => NLD
                )

            [format_id] => 1
            [email_address] => [email protected]
            [telephone] => 
            [zone_id] => 0
        )

    [billing] => Array
        (
            [name] => Jurjen Ruben
            [company] => 
            [street_address] => jacox xxx 8
            [suburb] => 
            [city] => Nijmegen
            [postcode] => 65xx xx
            [state] => Nijmegen
            [country] => Array
                (
                    [id] => 150
                    [title] => Netherlands
                    [iso_code_2] => NL
                    [iso_code_3] => NLD
                )

            [format_id] => 1
            [zone_id] => 0
        )

    [delivery] => Array
        (
            [name] => Jurjen Ruben
            [company] => 
            [street_address] => jacox xxx 8
            [suburb] => 
            [city] => Nijmegen
            [postcode] => 65xx xx
            [state] => Nijmegen
            [country] => Array
                (
                    [id] => 150
                    [title] => Netherlands
                    [iso_code_2] => NL
                    [iso_code_3] => NLD
                )

            [country_id] => 150
            [format_id] => 1
            [zone_id] => 0
        )

)

=================================

Jan-21-2008 11:40:25
ec_step2_finish - 4
Not logged in. Looking for account.
SELECT customers_id, customers_firstname, customers_lastname, customers_paypal_payerid, customers_paypal_ec
              FROM customers
              WHERE customers_email_address = '[email protected]' 
queryFactoryResult Object
(
    [is_cached] => 
    [resource] => Resource id #154
    [cursor] => 0
    [EOF] => 
    [fields] => Array
        (
            [customers_id] => 2
            [customers_firstname] => Jurjen
            [customers_lastname] => Ruben
            [customers_paypal_payerid] => 
            [customers_paypal_ec] => 0
        )

)

=================================

Jan-21-2008 11:40:25
ec_step2_finish - 7
Auto-Logged customer in. ([email protected]) (2)
$_SESSION[paypal_ec_temp]=
=================================

Jan-21-2008 11:40:25
findMatchingAddressBookEntry - 1-stats
country:queryFactoryResult Object
(
    [is_cached] => 
    [resource] => Resource id #162
    [cursor] => 0
    [EOF] => 
    [fields] => Array
        (
            [countries_id] => 150
            [address_format_id] => 1
        )

)

country_zone_check:queryFactoryResult Object
(
    [is_cached] => 
    [resource] => Resource id #163
    [cursor] => 0
    [EOF] => 1
)

zone_check:check_zone: 0
zone:
=================================

Jan-21-2008 11:40:25
findMatchingAddressBookEntry - 2-read for match

SQL was:SELECT address_book_id, entry_street_address, entry_suburb
                FROM address_book
                WHERE customers_id = 2
                AND entry_country_id = 150
RecordCount = 1
=================================

Jan-21-2008 11:40:25
findMatchingAddressBookEntry - 3a
From PayPal:
jacoxxxx8

From DB:
jacobcanisstraat8
queryFactoryResult Object
(
    [is_cached] => 
    [resource] => Resource id #165
    [cursor] => 0
    [EOF] => 
    [fields] => Array
        (
            [address_book_id] => 2
            [entry_street_address] => Jacox xxx 8
            [entry_suburb] => 
        )

)

=================================

Jan-21-2008 11:40:25
findMatchingAddressBookEntry - 3b
Exact match:
Array
(
    [address_book_id] => 2
    [entry_street_address] => Jacox xxx 8
    [entry_suburb] => 
)

=================================

Jan-21-2008 11:40:25
ec_step2_finish - 8
Exiting via terminateEC (from originally-not-logged-in mode).
Selected address: 2
Original was: 
prepared data: Array
(
    [name] => Jurjen Ruben
    [company] => 
    [street_address] => Jacox xxx 8
    [suburb] => 
    [city] => Nijmegen
    [postcode] => 65xx xx
    [state] => Nijmegen
    [country] => Array
        (
            [id] => 150
            [title] => Netherlands
            [iso_code_2] => NL
            [iso_code_3] => NLD
        )

    [country_id] => 150
    [format_id] => 1
    [zone_id] => 0
)

=================================

Jan-21-2008 11:40:25
termEC-2
BEFORE: $this->showPaymentPage = 1
Token Data:EC-99N08730M20920136
=================================

Jan-21-2008 11:40:25
termEC-3
AFTER: $this->showPaymentPage = 1
=================================

Jan-21-2008 11:40:25
termEC-4
We ARE logged in, and $this->showPaymentPage === true
=================================

Jan-21-2008 11:40:25
termEC-6
We DO have a shipping method selected, so goto PAYMENT
=================================

Jan-21-2008 11:40:25
termEC-10
Redirecting to checkout_payment - Stack: checkout_payment
Message: 
Session Data: Array
(
    [securityToken] => f6c604fa0b21d80a649461a028061029
    [customers_host_address] => xxxxxxx-a.mill1.nb.home.nl
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [198] => Array
                        (
                            [qty] => 1
                        )

                )

            [total] => 0.06
            [weight] => 0
            [content_type] => 
            [free_shipping_item] => 0
            [free_shipping_weight] => 0
            [free_shipping_price] => 0
            [observers] => Array
                (
                )

        )

    [navigation] => navigationHistory Object
        (
            [path] => Array
                (
                    [0] => Array
                        (
                            [page] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                    [token] => EC-99N08730M20920136
                                    [PayerID] => REWZX55B4ETX8
                                )

                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                    [page] => checkout_shipping
                    [mode] => NONSSL
                    [get] => Array
                        (
                        )

                    [post] => Array
                        (
                        )

                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => dutch
    [languages_id] => 2
    [languages_code] => nl
    [currency] => EUR
    [today_is] => 2008-01-21
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => xx.xx.xx.xx
    [new_products_id_in_cart] => 198
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
    [cot_gv] => 0
    [paypal_ec_token] => EC-99N08730M20920136
    [paypal_ec_payer_id] => REWZX55B4ETX8
    [paypal_ec_payer_info] => Array
        (
            [payer_id] => REWZX55B4ETX8
            [payer_email] => [email protected]
            [payer_salutation] => 
            [payer_gender] => 
            [payer_firstname] => Jurjen
            [payer_lastname] => Ruben
            [payer_business] => 
            [payer_status] => verified
            [ship_country_code] => NL
            [ship_address_status] => Unconfirmed
            [ship_phone] => 
            [ship_name] => Jurjen Ruben
            [ship_street_1] => jacox xxx 8
            [ship_street_2] => 
            [ship_city] => Nijmegen
            [ship_state] => Nijmegen
            [ship_postal_code] => 652xx xx
            [ship_country_name] => Netherlands
        )

    [paypal_ec_temp] => 
    [customer_id] => 2
    [customer_default_address_id] => 2
    [customer_first_name] => Jurjen
    [customer_country_id] => 150
    [customer_zone_id] => 0
    [sendto] => 2
    [billto] => 2
    [shipping] => Array
        (
            [id] => flat_flat
            [title] => Verzendkosten (Verzendkosten)
            [cost] => 0.1
            [module] => flat
        )

)

=================================

2008-01-21 11:39:51
-------------------
(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
(
    [PAYMENTACTION] => Sale
    [AMT] => 0.05
    [RETURNURL] => http://www.charrou.com/store/ipn_main_handler.php?type=ec
    [CANCELURL] => http://www.charrou.com/store/index.php?main_page=login&ec_cancel=1
    [PAGESTYLE] => Charrou
    [METHOD] => SetExpressCheckout
    [CURRENCYCODE] => EUR
    [USER] => xxx.xxx.com
    [PWD] => ****************
    [VERSION] => 3.2
    [SIGNATURE] => ****************************************************l8Q8
)


Response: 
Array
(
    [TIMESTAMP] => 2008-01-21T22:39:59Z
    [CORRELATIONID] => 5e3813aaedf09
    [ACK] => Success
    [VERSION] => 3.200000
    [BUILD] => 1.0006
    [TOKEN] => EC-99N08730M20920136
    [CURL_ERRORS] => 
)


SetExpressCheckout, Elapsed: 1673ms -- Success


2008-01-21 11:40:37
-------------------
(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: {DoExpressCheckoutPayment}
Array
(
[ITEMAMT] => 0.06
[HANDLINGAMT] => 0.01 [should this be -0.01??]
[SHIPPINGAMT] => 0.10
[TAXAMT] => 0.01
[AMT] => 0.16
[SHIPTONAME] => Jurjen Ruben
[SHIPTOSTREET] => Jacox xxx 8
[SHIPTOCITY] => Nijmegen
[SHIPTOSTATE] => Gelderland
[SHIPTOZIP] => 65xx xx
[SHIPTOCOUNTRYCODE] => NL
[ADDROVERRIDE] => 1
[BUTTONSOURCE] => ZenCart-EC_us
[TOKEN] => EC-99N08730M20920136
[PAYERID] => REWZX55B4ETX8
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://www.charrou.com/store/ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => EUR
[USER] => xxx.xxx.com
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************l8Q8
)


Response:
Array
(
[TIMESTAMP] => 2008-01-21T22:40:44Z
[CORRELATIONID] => 13c9e58db669b
[ACK] => Failure
[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
[VERSION] => 3.200000
[BUILD] => 1.0006
[CURL_ERRORS] =>
)


DoExpressCheckoutPayment, Elapsed: 1258ms -- Failure

TIMESTAMP=2008%2d01%2d21T22%3a40%3a44Z&CORRELATIONID=13c9e58db669b&ACK=Failure&L_ERRORCODE0=10413&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=The%20totals%20of%20the%20cart%20item%20amounts%20do%20not%20match%20order%20amounts%2e&L_SEVERITYCODE0=Error&VERSION=3%2e200000&BUILD=1%2e0006&CURL_ERRORS=
[/CODE]

2008-01-21 11:40:25
-------------------
(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: {GetExpressCheckoutDetails} 
Array
(
    [TOKEN] => EC-99N08730M20920136
    [REQBILLINGADDRESS] => 1
    [METHOD] => GetExpressCheckoutDetails
    [USER] => xxxx.xxxx.com
    [PWD] => ****************
    [VERSION] => 3.2
    [SIGNATURE] => ****************************************************l8Q8
)


Response: 
Array
(
    [TIMESTAMP] => 2008-01-21T22:40:32Z
    [CORRELATIONID] => 55b0f3af35b39
    [ACK] => Success
    [VERSION] => 3.200000
    [BUILD] => 1.0006
    [TOKEN] => EC-99N08730M20920136
    [EMAIL] => [email protected]
    [PAYERID] => REWZX55B4ETX8
    [PAYERSTATUS] => verified
    [FIRSTNAME] => Jurjen
    [LASTNAME] => Ruben
    [COUNTRYCODE] => NL
    [SHIPTONAME] => Jurjen Ruben
    [SHIPTOSTREET] => jacox xxx 8
    [SHIPTOCITY] => Nijmegen
    [SHIPTOCOUNTRYCODE] => NL
    [SHIPTOCOUNTRYNAME] => Netherlands
    [SHIPTOZIP] => 65xx xx
    [ADDRESSID] => PayPal
    [ADDRESSSTATUS] => Unconfirmed
    [CURL_ERRORS] => 
)


GetExpressCheckoutDetails, Elapsed: 1323ms -- Success
22 Jan 2008, 17:01
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: PayPal 10413 error

How are your site's taxes configured?
- rates
- tax "included in prices" vs "not included"
- basis of product tax
- basis of shipping tax
22 Jan 2008, 18:02
#8
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

DrByte:

How are your site's taxes configured?
- rates
- tax "included in prices" vs "not included"
- basis of product tax
- basis of shipping tax



- rates
Taxable Goods @ 19%

- tax "included in prices" vs "not included"

Tax Decimal Places 0
Display Prices with Tax true
Display Prices with Tax in Admin false


- basis of product tax

Basis of Product Tax Shipping

- basis of shipping tax
Basis of Shipping Tax Shipping
25 Jan 2008, 10:51
#9
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

Any ideas Dr. Byte?
Appreciate your help!
31 Jan 2008, 10:10
#10
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

Can anyone please help me? I would really appreciate it, since I'm eager to launch the shop...

Thank you in advance!
Jurjen
10 Feb 2008, 04:48
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: PayPal 10413 error

Seems to be related to the Display Prices With Tax switch being set to true.
10 Feb 2008, 13:39
#12
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

AH Great! Indeed, when selecting display prices with tax - false, paypal check out works. I would, however, like to display my price including tax, so that costumers do not end up with a 19% suprise at the checkout...
I try to work around this myself first, however, if you know how to achieve this, comments will be appreciated as always.

Thanks for your help so far!
Jurjen
11 Feb 2008, 05:36
#13
georgiadoodle avatar

georgiadoodle

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: PayPal 10413 error

My site has Display Prices with Tax already set to false and I am getting this error also. My product is virtual so there is no tax and no shipping to be calculated. I thought it had to do with the fact that I removed the quantity on the tpl_shopping_cart_default.php file, but when I added it back in the error still occured.

I am running on the most recent version of Zencart.
site is: www.web-graphic-banner-design.com

???
11 Feb 2008, 08:16
#14
georgiadoodle avatar

georgiadoodle

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: PayPal 10413 error

Okay, I have this almost fixed on my site. I went to Admin->Modules->Order Totals and turned on Tax, Shipping, and SubTotal.

Now I am no longer getting the error, but after paying with Paypal express, the customer gets sent back to page2 of checkout. They are able to continue from there, but I don't think this is correct. They should go straight to page3, right?
11 Feb 2008, 10:24
#15
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: PayPal 10413 error

I think you should go to the "thank you" page after payment?
12 Feb 2008, 05:24
#16
darocket avatar

darocket

New Zenner

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

Re: PayPal 10413 error

DrByte:

Seems to be related to the Display Prices With Tax switch being set to true.


Where do you set this option..Is this in Paypal or Zen Cart....where please??

David
12 Feb 2008, 05:33
#17
darocket avatar

darocket

New Zenner

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

Re: PayPal 10413 error

darocket:

Where do you set this option..Is this in Paypal or Zen Cart....where please??

David


I finally found this option but this is set to false in my store..and I still got this error. I found out this error from a customer. Has anyone found a definite answer to this problem?

David
12 Feb 2008, 19:43
#18
georgiadoodle avatar

georgiadoodle

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: PayPal 10413 error

darocket:

I finally found this option but this is set to false in my store..and I still got this error. I found out this error from a customer. Has anyone found a definite answer to this problem?

David


David, did you try my solution? I think I had all that Order Total stuff turned off because I don't charge tax or shipping, but I think it was messing up Paypal's calculations for the order.

Check the Admin->Modules->Order Totals page and see if you have anything turned off that might be causing the problem.

Lori
13 Feb 2008, 04:25
#19
darocket avatar

darocket

New Zenner

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

Re: PayPal 10413 error

georgiadoodle:

David, did you try my solution? I think I had all that Order Total stuff turned off because I don't charge tax or shipping, but I think it was messing up Paypal's calculations for the order.

Check the Admin->Modules->Order Totals page and see if you have anything turned off that might be causing the problem.

Lori


On most my products, I do charge shipping and for people in my state buying a product I have to charge state tax. How would that change affect what I need to do??
13 Feb 2008, 06:37
#20
georgiadoodle avatar

georgiadoodle

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: PayPal 10413 error

darocket:

On most my products, I do charge shipping and for people in my state buying a product I have to charge state tax. How would that change affect what I need to do??

Here is a screenshot of how I have the Order Totals configured right now, and it seems to be working without any errors. I turned on Tax and Subtotal and turned Shipping off again and I got no errors and the customer was taken directly to page3 instead of page2 as it had when I had shipping turned on.
If you already have all this turned on, which it sounds like you do, then I would say Dr. Byte is right and there is something wrong with the way the order is being totalled in Zencart, either with taxes or perhaps shipping or discounts - something like that...
Sorry I can't be any more help than that. I don't know programming, so my abilities are limited. :blush: