Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    5
    Plugin Contributions
    0

    Default 10401 error - Paypal SetExpressCheckout has [AMT] => 0.00 when total cart is NOT 0

    I am using v.1.5.0 and testing EXPRESSCHECKOUT using sandbox env. I keep getting 10401 error when selecting express checkout icon. When looking at log file - AMT is 0 but total shopping cart is non-zero. I am only using GBP as my default cry and carry out transaction in GBP. My paypal is set to GBP too. Where did i go wrong....help! I bet it is some silly things i miss!!!!but don't know what that is.

    Request Parameters: {SetExpressCheckout}
    Array
    (
    [CURRENCYCODE] => GBP
    [LOCALECODE] => US
    [ALLOWEDPAYMENTMETHOD] => InstantPaymentOnly
    [GIFTMESSAGEENABLE] => 0
    [GIFTRECEIPTEENABLE] => 0
    [GIFTWRAPENABLE] => 0
    [GIFTWRAPNAME] =>
    [GIFTWRAPAMOUNT] => 0
    [BUYEREMAILOPTINENABLE] => 0
    [CUSTOMERSERVICENUMBER] => 123456789
    [BRANDNAME] => testbrand
    [PAYMENTACTION] => Sale
    [ALLOWNOTE] => 1
    [LANDINGPAGE] => Billing
    [NOSHIPPING] => 0
    [REQCONFIRMSHIPPING] => 1
    [AMT] => 0.00
    [RETURNURL] => ************
    [CANCELURL] => ************
    [PAGESTYLE] => Primary
    [METHOD] => SetExpressCheckout
    [USER] => my sandbox
    [PWD] => **********
    [VERSION] => 61.0
    [SIGNATURE] => ****************************************************BtmV
    )


    Response:
    Array
    (
    [TIMESTAMP] => 2012-10-19T09:58:11Z
    [CORRELATIONID] => 8dc8fc24434de
    [ACK] => Failure
    [VERSION] => 61.0
    [BUILD] => 3926908
    [L_ERRORCODE0] => 10401
    [L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
    [L_LONGMESSAGE0] => Order total is invalid.
    [L_SEVERITYCODE0] => Error
    [CURL_ERRORS] =>
    )


    PAYPALWPP log:
    Oct-19-2012 04:58:10 (1350640690)
    getLineItemDetails 1
    Not using default currency. Thus, no line-item details can be submitted.
    =================================

    Oct-19-2012 04:58:10 (1350640690)
    ec_step1 - 1
    Checking to see if we are in markflow
    cart contents: physical

    NOTE: $this->showPaymentPage = 0
    Customer ID: 0
    Session Data: Array
    (
    [securityToken] => a3edaa04d85ff7c90a74a35c9dbd88b6
    [customers_host_address] => 46-64-73-246.zone15.bethere.co.uk
    [cartID] =>
    [cart] => shoppingCart Object
    (
    [contents] => Array
    (
    [31] => Array
    (
    [qty] => 1
    )

    )

    [total] => 212.5
    [weight] => 25
    [cartID] => 69185
    [content_type] => physical
    [free_shipping_item] => 0
    [free_shipping_weight] => 0
    [free_shipping_price] => 0
    )

    [check_valid] => true
    [language] => english
    [languages_id] => 1
    [languages_code] => en
    [currency] => GB
    [today_is] => 2012-10-19
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => 46.64.73.246
    [new_products_id_in_cart] => 31
    [messageToStack] =>
    [valid_to_checkout] => 1
    [cart_errors] =>
    [cart_country_id] => 209
    [country_info] => Array
    (
    [countries_name] => Thailand
    [countries_iso_code_2] => TH
    [countries_iso_code_3] => THA
    )

    [payment] => paypalwpp
    )

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

    Default Re: 10401 error - Paypal SetExpressCheckout has [AMT] => 0.00 when total cart is NOT

    Quote Originally Posted by Sathu View Post
    [CURRENCYCODE] => GBP



    PAYPALWPP log:
    Oct-19-2012 04:58:10 (1350640690)
    getLineItemDetails 1
    Not using default currency. Thus, no line-item details can be submitted.
    =================================

    [currency] => GB
    Looks like you've got your Zen Cart currency code for GBP defined as just "GB", and thus there's no correct match on currency codes, thus the price is getting translated to 0 (anything multiplied by 0 becomes 0).

    Go to Admin->Localization->Currencies, and set your GBP currency code to GBP instead of GB
    .

    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
    Oct 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: 10401 error - Paypal SetExpressCheckout has [AMT] => 0.00 when total cart is NOT

    how silly I am and I have been starring at it for 2 days pulling my hair out looking at various forums and still! . Thank you DrByte, your prescribed med solve the problem.

 

 

Similar Threads

  1. v150 10401 Error - Paypal Express Checkout - CNY currency
    By ShanghaiLad in forum PayPal Express Checkout support
    Replies: 8
    Last Post: 12 Oct 2012, 02:22 PM
  2. An error occurred when we tried to contact the payment processor. 10401
    By djenojado in forum PayPal Express Checkout support
    Replies: 7
    Last Post: 7 Aug 2011, 05:27 AM
  3. Japanese Yen and Paypal - JPY error 10401
    By CrystalKoi in forum Bug Reports
    Replies: 14
    Last Post: 17 Dec 2009, 06:38 AM
  4. PayPal Express Error 10401 when using JPY currency on my site
    By explorer1979 in forum PayPal Express Checkout support
    Replies: 13
    Last Post: 4 Dec 2009, 05:22 AM
  5. Error 10426 Order total is invalid - [AMT] => 0.00
    By mbi15 in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 28 Jun 2008, 12:27 AM

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