This is happening to me also.
I have my Shipping Charges (postage) set to the Flat rate ... if that helps solve the problem.
I went to this thread, but it seems to be unresolved
This is happening to me also.
I have my Shipping Charges (postage) set to the Flat rate ... if that helps solve the problem.
I went to this thread, but it seems to be unresolved
Would appreciate some help on this,
thx guys
The problem occurs as a result of trying to add up all the charges on the line-item details of the order, including products, attributes, shipping, coupons, and taxes, in conjunction with all the tax rates and shipping rules configured in your store as well as the taxation mode (tax-included in pricing vs not), etc.
Without all those exact details and debug logs from failed transactions, it's impossible to help you.
.
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.
This comes from a code bug in the PayPal module. I'm using a one line fix:
/includes/modules/payment/paypalwpp.php
add this on line 534:so it looks like this:Code:// LS PATCH - remove commas so number_format doesn't screw up values over 1000 $options['AMT'] = str_replace(',', '', $options['AMT']);Code:// LS PATCH - remove commas so number_format doesn't screw up values over 1000 $options['AMT'] = str_replace(',', '', $options['AMT']); $response = $doPayPal->DoExpressCheckoutPayment($_SESSION['paypal_ec_token'], $_SESSION['paypal_ec_payer_id'], number_format((isset($options['AMT']) ? $options['AMT'] : $order_amount), 2), $options);
Levi Senft
I got the same error on my store so I am trying the fix posted by lsenft
The PayPal API allows for a comma.
A more correct fix to lsenft's suggestion is posted here: http://www.zen-cart.com/forum/showth...569#post786569
.
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.
I am also having this problem. A customer is getting a little frustrated as she is trying to order 3 items and says The cost continues to show a total of $0.00. paypal notified me and it 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.
Attn: DrByte, I updated paypalwpp.php to include your changes listed in your link (which I notice the thread has been closed on hence I am posting here) and this partially fixed my issue (Thank you!)
Unfortunately it only fixed the 10413 error for transactions that include a coupon. If no coupon is used I still get the 10413 error.
Hope you are not too over this topic as I would really appreciate your thoughts (and would be happy to send link to log files if it would tempt you to look into it again).
Further...if I turn tax and shipping off in order totals module, it works fine...Paypal that is. Unfortunately this means my coupon customers are not charged shipping or tax though.
So if I remove tax and shipping from coupon it will probably work...ah gees, sorry, hope I can delete this
Last edited by TreasureBags; 18 Nov 2009 at 11:49 AM.
Bookmarks