Zen Cart Logo
Forums / PayPal Website Payments Pro support / Coupon + Tax + paypal = error 10413

Coupon + Tax + paypal = error 10413

Views: 2,474

Results 1 to 4 of 4
28 Oct 2012, 4:13 PM
#1
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Coupon + Tax + paypal = error 10413

We just recently switched from paypal express and link point to paypal express and paypal pro . If a customer users a coupon (and I think orders less stuff than the coupon is worth) and happens to be in the one state we charge tax in, and tries to pay with paypal or credit card they get a 10413 error. Below is the debug log from me testing it. Hoping this is just a config problem, any help would be appreciated! Site is https://www.pezcollectors.com if you want to look.

Oct-28-2012 10:56:13 (1351439773)
getLineItemDetails 3
Tax Subtotal does not match sum of taxes for line-items. Tax details are being removed from line-item submission data.
0 0.05225Array
(
[AMT] => 5.2
[ITEMAMT] => 0
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

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

Oct-28-2012 10:56:13 (1351439773)
getLineItemDetails 4
Coupons/Discounts have affected tax calculations, so tax details are being removed from line-item submission data.
0 0.05
Array
(
[AMT] => 5.2
[ITEMAMT] => 0
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

AFTER:Array
(
[AMT] => 5.2
[ITEMAMT] => 0
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

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

Oct-28-2012 10:56:13 (1351439773)
getLineItemDetails 7 - subtotal comparisons
BEFORE line-item calcs: Array
(
[AMT] => 5.2
[ITEMAMT] => 0
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

  • AFTER doing line-item calcs: Array
    (
    [AMT] => 5.2
    [ITEMAMT] => 0
    [TAXAMT] => 0.05
    [SHIPPINGAMT] => 5.15
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
    )

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

Oct-28-2012 10:56:13 (1351439773)
getLineItemDetails 8
checking subtotals...
Array
(
[calculated total] => 5.20
[AMT] => 5.20
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
)


difference: 0 (abs+rounded: 0)

Oct-28-2012 10:56:13 (1351439773)
getLineItemDetails 10
subtotals balance - okay

Oct-28-2012 10:56:13 (1351439773)
before_process - DP-1
Beginning DP mode

Oct-28-2012 10:56:13 (1351439773)
before_process - DP-4
options: Array
(
[AMT] => 5.20
[TAXAMT] => 0.05
[SHIPPINGAMT] => 5.15
[STREET] => 3705 SW 9th St
[ZIP] => 64015
[CITY] => Blue Springs
[STATE] => MO
[EXPDATE] => 092013
[EMAIL] => [email protected]
[PHONENUM] =>
[BUTTONSOURCE] => ZenCart-DP_us
[CURRENCY] => USD
[IPADDRESS] => 99.169.56.34
[CARDISSUE] =>
[CUSTOM] => DP-8497-1351439773
[INVNUM] => 8497-1351439773-[PezCollectorsStore]
[COUNTRY] => US
[PAYMENTACTION] => Sale
[SHIPTONAME] => Todd Jordan
[SHIPTOSTREET] => 3705 SW 9th St
[SHIPTOCITY] => Blue Springs
[SHIPTOZIP] => 64015
[SHIPTOSTATE] => MO
[SHIPTOCOUNTRY] => US
)

Rest of data:
5.20 09 13 Todd Jordan Discover

Oct-28-2012 10:56:13 (1351439773)
before_process - DP-5
resultset:
Array
(
[TIMESTAMP] => 2012-10-28T15:56:13Z
[CORRELATIONID] => 6f39bfb45a000
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 3926908
[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
[AMT] => 5.20
[CURRENCYCODE] => USD
[CURL_ERRORS] =>
)

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

Oct-28-2012 10:56:13 (1351439773)
termEC-2
BEFORE: Token Data:

Oct-28-2012 10:56:13 (1351439773)
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] => ddcfff04f219dec7563fc9e254c54613
[customers_host_address] => OFFICE_IP_TO_HOST_ADDRESS
[cartID] => 26351
[cart] => shoppingCart Object
(
[contents] => Array
(
[1733] => Array
(
[qty] => 1
)

            )

        [total] => 1
        [weight] => 0.12
        [cartID] => 26351
        [content_type] => physical
        [free_shipping_item] => 0
        [free_shipping_weight] => 0
        [free_shipping_price] => 0
    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => product_info
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [cPath] => 3_180
                                [products_id] => 4192
                                [action] => add_product
                            )

                        [post] => Array
                            (
                            )

                    )

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

                    )

                [2] => Array
                    (
                        [page] => checkout_shipping
                        [mode] => SSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [3] => Array
                    (
                        [page] => checkout
                        [mode] => SSL
                        [get] => Array
                            (
                                [fecaction] => null
                            )

                        [post] => Array
                            (
                            )

                    )

                [4] => Array
                    (
                        [page] => checkout_confirmation
                        [mode] => SSL
                        [get] => Array
                            (
                                [amp;fecaction] => process
                            )

                        [post] => Array
                            (
                            )

                    )

                [5] => Array
                    (
                        [page] => checkout_process
                        [mode] => SSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => USD
[today_is] => 2012-10-28
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 99.169.56.34
[new_products_id_in_cart] => 1733
[valid_to_checkout] => 1
[cart_errors] => 
[cart_country_id] => 223
[country_info] => Array
    (
        [countries_name] => United States
        [countries_iso_code_2] => US
        [countries_iso_code_3] => USA
    )

[payment] => paypaldp
[total_weight] => 0.12
[total_count] => 1
[customer_id] => 8497
[customer_default_address_id] => 12327
[cart_address_id] => 12327
[sendto] => 12327
[customers_authorization] => 0
[customer_first_name] => Todd
[customer_last_name] => Jordan
[customer_country_id] => 223
[customer_zone_id] => 36
[billto] => 12327
[shipping] => Array
    (
        [id] => usps_FIRST CLASS
        [title] => United States Postal Service (1 x 0.13lbs) (First-Class Mail (2 - 5 days))
        [cost] => 5.15
    )

[insurance] => 0
[comments] => test coupon
[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
            )

    )

[cc_id] => 102
[paypal_ec_markflow] => 1
[payment_attempt] => 2

)

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

28 Oct 2012, 6:57 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Coupon + Tax + paypal = error 10413

Peculiar.

I need to know exactly what I need to do to recreate these symptoms, starting from a brand new blank store, freshly installed with demo data. Including how to set up those products, what tax rates to set up, what coupons to set up, what other discounts or specials or complex calculations, other plugins, everything.

29 Oct 2012, 1:44 AM
#3
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Coupon + Tax + paypal = error 10413

Bumber, I was hoping someone would call be a noob and tell me what check box I had wrong. :) I have so many addons it isn't funny. Leme build up a demo site and see if I can reproduce it before addons and if not start adding them one by one. Fast and Easy checkout may be the culprit. Anyway, I'll post back as soon as I can do that. Thanks!

16 Jan 2013, 2:15 PM
#4
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Coupon + Tax + paypal = error 10413

I finaly found the answer to this, hopefully if will help the next person to have this issue. I did not have coupons set to recalculate tax. So if the customer spends less or equal to their coupon amout their subtotal looks like 0 to paypal, and I guess they think its wrong to charge tax on nothing. This will cost us %5 on orders in our state, but at least I can make the sale now.