Forums / PayPal Express Checkout support / Bug? Error 10413 when using the attribute : One time charge

Bug? Error 10413 when using the attribute : One time charge

Locked

Views: 3,553

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
7 Sep 2008, 6:26 PM
#1
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Bug? Error 10413 when using the attribute : One time charge

I get the Error 10413 when using the attribute : One time charge on a product.

When I disable this attribute on the product paypal works perfectly.

The one time charge works on all forms of payment except paypal.

I use the one time charge in addtion to the price of the product.

Bug?

what's the skinny?

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

17 Sep 2008, 9:58 PM
#2
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

I have tried over the last 2 weeks to fix this issue concerning the one-time charge attribute and error 10413. I have toggled every admin setting I can think of. I am unfortunately stuck with using the one time charge attribute (no way around it) for this product which is 30% of my stores business.

Is there any way to fix this issue? it has nothing to do with sales tax. Has anyone had a similar issue, using the one time charge attribute and getting error 10413???

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

18 Sep 2008, 2:57 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Bug? Error 10413 when using the attribute : One time charge

Perhaps you can post your paypal debug log files for review?
http://www.zen-cart.com/forum/showthread.php?t=61199

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

19 Sep 2008, 10:17 PM
#4
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

Here is my paypal log file: please edit any data if security is in question (XXX)

test Product price $1
One Time Charge : $3.50
One time Charge $ 3.00

Total $8.50

test account is in same state therfore can not override tax inclusion in test, this error pops up without sales tax as a variable.

I have many log file emails...please let me kmow if you require more info...

remember if i disable the one time charge on this product PEC works ok.

Sep-19-2008 05:46:15
termEC-1
Killed the session vars as requested

Sep-19-2008 05:46:16
termEC-2
BEFORE: $this->showPaymentPage = 0
Token Data:

Sep-19-2008 05:46:16
termEC-3
AFTER: $this->showPaymentPage = 0

Sep-19-2008 05:46:16
termEC-8
$this->showPaymentPage NOT true, and NO custom page selected ... using SHIPPING as default

Sep-19-2008 05:46:16
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] => XXX
[customers_host_address] => user-12lcpp4.cable.mindspring.com
[cartID] =>
[cart] => shoppingcart Object
(
[observers] => Array
(
)

        [contents] => Array
            (
                [222:d30feb5ea8ac3be440e431e9b0d57f81] => Array
                    (
                        [qty] => 1
                        [attributes] => Array
                            (
                                [21] => 0
                                [35] => 114
                                [36] => 126
                                [32] => 146
                            )

                        [attributes_values] => Array
                            (
                                [21] => test
                            )

                    )

            )

        [total] => 8.5
        [weight] => 0
        [cartID] => 
        [content_type] => virtual
        [free_shipping_item] => 1
        [free_shipping_weight] => 0
        [free_shipping_price] => 1
    )

[navigation] => navigationhistory Object
    (
        [observers] => Array
            (
            )

        [path] => Array
            (
                [0] => Array
                    (
                        [page] => logoff
                        [mode] => SSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [1] => Array
                    (
                        [page] => document_product_info
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [cPath] => 85_65
                                [products_id] => 222
                                [number_of_uploads] => 0
                                [action] => add_product
                            )

                        [post] => Array
                            (
                            )

                    )

                [2] => Array
                    (
                        [page] => shopping_cart
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [number_of_uploads] => 0
                            )

                        [post] => Array
                            (
                            )

                    )

                [3] => Array
                    (
                        [page] => index
                        [mode] => SSL
                        [get] => Array
                            (
                                [type] => ec
                                [token] => EC-XXX
                                [PayerID] => XXX
                            )

                        [post] => Array
                            (
                            )

                    )

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

                    )

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

                    )

                [6] => Array
                    (
                        [page] => checkout_confirmation
                        [mode] => SSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [7] => 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] => 2008-09-19
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => XXX
[new_products_id_in_cart] => 
[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
            )

    )

[valid_to_checkout] => 1
[cart_errors] => 
[payment] => paypalwpp
[customer_id] => 91
[customer_default_address_id] => 103
[customer_first_name] => XXX
[customer_country_id] => 223
[customer_zone_id] => 43
[sendto] => 
[billto] => 103
[shipping] => free_free
[insurance] => 0
[comments] => 

)

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

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

19 Sep 2008, 10:40 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Bug? Error 10413 when using the attribute : One time charge

That's one of the many log files generated.
It's easier to zip up the log files from the /includes/modules/payment/paypal/logs folder than to try using the emails.

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

19 Sep 2008, 10:46 PM
#6
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

Above is the last log file from /includes/modules/payment/paypal todays date/last test transaction. Do you wish me to zip/post all log files? or PM?

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

19 Sep 2008, 11:37 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Bug? Error 10413 when using the attribute : One time charge

zip them up, upload the zip to your server someplace, and post a link to the zip file, or PM the link to 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.

7 Oct 2008, 9:31 PM
#8
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

PM link provided.

Issue still exists.

Perhaps Dr. Byte you can recreate this issue creating example product by:

  1. setting up document product price at $1.00
    1a. Product Priced by Attributes, product virtual, Special, Product/Download Combo Requires a Shipping Address, Product Qty Units: .01, Product Qty Min/Unit Mix: yes
  2. user inputs quantity. ex. 1 = $1.00
  3. set Attributes option name and Attributes option value to whatever ex. Large/Blue (dropdown)
  4. Add one time charge ex. Large/Blue ex. $2.00
  5. Shopping cart shows product $1.00 and one time charge $2.00 cart subtotal $3.00
  6. All forms of payment accept total as $3.00 and complete transacation flawlessly. PPEC throws error 10413 and loops user back to paypal login page after order is confirmed.

Let me know if if you require any other log files/info, I really need this to work.:unsure:

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

13 Oct 2008, 9:30 PM
#9
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

I ran another test today, still no success. Any luck re-creating this issue?

please see my PM for updated log info.

Again this issue is not due to tax, or shipping. it is only when a one time charge attribute is enabled.

All forms of payment CC etc accept the one time charge attribute and work ok on this product.

Paypal throws a 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. "

When I remove the One time charge attribute from the product, paypal works ok.

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

17 Oct 2008, 7:35 PM
#10
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

I tested this again today, this time by simply adding a one time charge attribute to my regular general product type, which is basically the default product set up for ZC. It still yields an error.

I tried again since my regular product type requires an address (tax) and changed the Basis of Shipping Tax and Product Tax to store, but it still no luck. The product type I have been testing above is a virtual/combo product so tax/shipping is not a factor as far as I can tell.

To recreate this issue, just add a one time charge attribute and see if you can get through without an error.

Again only paypal yields an error with this attribute, all other payment mods work ok (CC etc) . I have detailed logs I can send you if that is any help.

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

23 Oct 2008, 9:48 AM
#11
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

I'm getting this one now too - have tried to pay with a credit card, on paypal express checkout, with only products and "perweightunit" shipping set to a single price assigned to each item. its the first time I've tried to use a credit card...

23 Oct 2008, 9:58 AM
#12
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

And by the way I'm not using the one time charge bit...

23 Oct 2008, 10:07 AM
#13
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

Hmmm... so far it only seems to happen using paypal express with a credit card.... didn't get the message when using my [personal] paypal account. something to do with using the same account as the seller perhaps? or just a paypal express glitch...?

23 Oct 2008, 11:51 AM
#14
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

Re: Bug? Error 10413 when using the attribute : One time charge

Ok by total assyness, I seem to have alleviated the problem, but found another!
I noticed that the sub total wasn't showing in checkout, only the shipping and the total, so found in admin>modules>order total that "ot_subtotal" was not installed, hence was not showing at checkout, hence the message about the mismatched order totals :)

Hope that helps!

Now I have "merchant country unsupported" when i use my own visa card...!!! grrr...

29 Oct 2008, 10:48 PM
#15
nedward avatar

nedward

New Zenner

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

Re: Bug? Error 10413 when using the attribute : One time charge

Hi, I'm having the same problem, just after installing a one time charge.
I used to have my extra charge in the attribute just as price +£2.50 but then when customers bought 2 of the same item, they were charged the extra bit twice which wasn't correct, then I spotted the "one time" charge and I was really chuffed that this was a feature of zen cart.
Then the errors and phone calls started and my life became very complicated.

I wrote to paypal and they say

I see you are receiving API error 10413 frequently. This is because the totals of the cart item amounts do not match order amounts. For example on one transaction we received:

amt "9.19"
itemamt "9.99"
handlingamt "2.50"

Amt should reflect itemamt + handlingamt.

You will need to look into the cart's configuration or contact the cart provider to determine why this is happening.

________end paypal email------------

any assistance would be much appreciated.

regards
Steven