Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    help question 10413 Transaction refused because of an invalid argument

    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

  2. #2
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    Would appreciate some help on this,

    thx guys

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 10413 Transaction refused because of an invalid argument

    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.

  4. #4
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    Quote Originally Posted by DrByte View Post
    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.
    I dont know what I did, but it seems to be working now. Thx

  5. #5
    Join Date
    Jan 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    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:
    Code:
    // LS PATCH - remove commas so number_format doesn't screw up values over 1000
    $options['AMT'] = str_replace(',', '', $options['AMT']);
    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']);
    
          $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

  6. #6
    Join Date
    Nov 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    I got the same error on my store so I am trying the fix posted by lsenft

  7. #7
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    The PayPal API allows for a comma.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 10413 Transaction refused because of an invalid argument

    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.

  9. #9
    Join Date
    Jan 2009
    Location
    Queensland, Australia
    Posts
    117
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    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.

  10. #10
    Join Date
    Nov 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: 10413 Transaction refused because of an invalid argument

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 10413 Transaction refused because of an invalid argument
    By ButterflyBabies in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 29 Sep 2009, 12:45 PM
  2. 10413 Transaction refused because of an invalid argument.
    By trma97 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 2 Jun 2009, 12:55 PM
  3. 10413 Transaction refused because of an invalid argument.
    By JuanDBB in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 13 Apr 2009, 11:19 AM
  4. 10413 Transaction refused because of an invalid argument.
    By Bruce1952 in forum General Questions
    Replies: 1
    Last Post: 17 Mar 2009, 02:22 AM
  5. 10413 Transaction refused because of an invalid argument.
    By dwessell in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 26 Feb 2009, 02:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR