Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    red flag Transaction refused becaused invalid argument

    Hi,

    I have recently configured the PayPal express in my shopping cart.

    The outlook of the store looks so nice and cool with this Paypal express options.

    When diverted to the paypal website for the processing of payment, there isn't any option for me not to sign up as Paypal member, although I have set the Paypal Account Option to ON. No matter what I have tried, still the same outcome and thus I accepted the fate. Afterall, most importantly, is that the transaction can go through.

    However, when I complete the transaction at paypal website and return to my shopping cart, the following message appears:

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

    Looked through the log file but could not identified what went wrong. (Frankly speaking, I know nuts in php coding...)

    Appreciate if anyone could assist...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Transaction refused becaused invalid argument

    What version of Zen Cart ? What patches have you applied?
    What other addons are installed?
    Did you have debug logging-to-file enabled when you encountered this? If so, please zip the logs and post a link where they can be reviewed.
    .

    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    red flag Re: Transaction refused becaused invalid argument

    My Zen Cart version is v1.3.7.1 [2007-07-13 23:30:27] (Fresh Installation)

    Have not done any add on or apply any patches so far. Just install or I should say activated the original Paypal Express Checkout payment modules.

    The attached is the log file containing the text file and the failure notice when return to my shopping cart.

    Appreciate your assistance...
    Last edited by DrByte; 14 Aug 2007 at 12:18 AM. Reason: removed attachment for privacy

  4. #4
    Join Date
    Aug 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Transaction refused becaused invalid argument

    Quote Originally Posted by dcmall View Post
    My Zen Cart version is v1.3.7.1 [2007-07-13 23:30:27] (Fresh Installation)

    Have not done any add on or apply any patches so far. Just install or I should say activated the original Paypal Express Checkout payment modules.

    The attached is the log file containing the text file and the failure notice when return to my shopping cart.

    Appreciate your assistance...

    Today, my customers met the issue too. DrByte, please fix the issue. Thanks!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Transaction refused becaused invalid argument

    What are all your settings in Admin->Modules->Order Total ?
    .

    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.

  6. #6
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    red flag Re: Transaction refused becaused invalid argument

    Quote Originally Posted by DrByte View Post
    What are all your settings in Admin->Modules->Order Total ?
    Is there any particular module in the Order Total Modules that I need close attention to?

    Attached is a zipped pdf file containing all the settings in Admin->Modules-> Order Total

    DrByte, looking forward to hearing good new from you soon.

    thanks in advance...
    Attached Files Attached Files

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Transaction refused becaused invalid argument

    Try this:

    edit /includes/modules/payment/paypalwpp.php
    around line 519 you have:
    Code:
         number_format($order_amount, 2),
    change it to:
    Code:
         number_format((isset($options['AMT']) ? $options['AMT'] : $order_amount), 2),
    Then do another test transaction.


    I'm stumped about why the order would calculate 0.04 for the details, but then send 0.01 as the final total.

    Were you testing any coupons or gift certificates or group discounts in these tests?
    .

    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.

  8. #8
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    red flag Re: Transaction refused becaused invalid argument

    Quote Originally Posted by DrByte View Post
    Try this:

    edit /includes/modules/payment/paypalwpp.php
    around line 519 you have:
    Code:
         number_format($order_amount, 2),

    I noticed that there are couple of lines that contain number_format($order_amount, 2). Other lines include line 515, 579, 675,677,1674. Do I change all or just change the one in line 519 only?


    Quote Originally Posted by DrByte View Post
    Try this:
    I'm stumped about why the order would calculate 0.04 for the details, but then send 0.01 as the final total.
    Well, the default currency in my shopping cart has been set to MYR. It is converted to USD when the amount is parsed to paypal. Conversion rate: 0.278 . Would this cause the error?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Transaction refused becaused invalid argument

    Quote Originally Posted by dcmall View Post
    I noticed that there are couple of lines that contain number_format($order_amount, 2). Other lines include line 515, 579, 675,677,1674. Do I change all or just change the one in line 519 only?
    Yes, I meant only the one line. Then retest.

    Quote Originally Posted by dcmall View Post
    Well, the default currency in my shopping cart has been set to MYR. It is converted to USD when the amount is parsed to paypal. Conversion rate: 0.278 . Would this cause the error?
    Yes, that could cause it. What happens if you set the conversion rate to 1.0000 ?
    .

    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.

  10. #10
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    red flag Re: Transaction refused becaused invalid argument

    Hi DrByte,

    Thanks for your prompt response. Transaction successful.

    Your first solution by changing just the line 519 works, but the charges that went through is USD0.04 as compared to if conversion were done on MYR0.04 = USD0.01 .

    Although it has resolved and result in successful transaction, but another issue arise, i.e. instead of charging the client USD0.01, now the client is being charges USD0.04 . So is there anyway to resolve this new issue?

    Can I have the following situation?
    1. My shopping cart to allow the client to choose among 3 currencies, i.e. MYR (primary), SGD and USD for payment.
    2. Check out using paypal. For SGD and USD, I believe Paypal has no problem as these two currencies are among those accepted. However for those that is not accepted, i.e. MYR, Paypal will default them to USD.
    Can you assist in handling this situation?

 

 
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 dwessell in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 26 Feb 2009, 02:59 PM
  5. 10413 Transaction refused - invalid argument.
    By Billyboy in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 10 Nov 2008, 03:51 PM

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