Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default 10401 Error - Paypal Express Checkout - CNY currency

    I'm having an issue with the Paypal Express Checkout.

    I'd like my Zen Cart to only display the Chinese RMB currency (CNY) and nothing else, although I expect customers using Paypal will make payments in USD.

    When I remove the $US currency from the cart, I receive a 10401 Error - refused because of an invalid argument. When I put it back in, everything works fine - customer is redirected to Paypal to pay.

    CNY currencies are displayed properly throughout the site and in the cashier. Is there a way to remove USD and still link to Paypal? Would it be possible to include USD for conversion sake, but not display it on the website?

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

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Admin->Tools->Layout Boxes Controller --- turn off the Currencies sidebox. Thus customers won't have a way to change currencies, so will always shop in your default currency.
    Then set your PayPal module to always use USD.
    You will need to keep USD in your list of currencies, and you will need to keep the exchange-rate updated periodically so the correct amount is calculated before submitting to PayPal.
    .

    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
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Thanks. Working now.

    I have a custom template, so the tools section won't allow me to change the sideboxes. Currency was actually already turned off.

    I found the code that controlled the currency selector in tpl_top_nav.php, deleted it, and that did the trick in removing the currency dropdown.

    I set the english.php and schinese.php files to default CNY and have USD listed in the backend, which seems to allow Paypal to find it.

    Thanks again.

  4. #4
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Or so I thought!

    We have a friend testing our Paypal Express and no matter what they do, it won't process the payment.

    The checkout works. It takes her to our custom Paypal page. It lists the total price. But she can't process the payment. In her words:

    I can log into my paypal account from your website and choose the payment method but when I click Pay Now it just says "This payment cannot be completed and your account has not been charged. Please contact your merchant for more information. Error - Return to merchant and try a different payment method."
    Website prices are in CNY; USD is activated and the rate is updated; we've tested with the transaction currency set to both "Selected Currency" and "USD Only". I can a Canadian Paypal account that accepts both CAD and USD, with USD set to default. The person testing has an account from the UK.

    I've had CURL activated by my webhost (HostGator). Do I need them to send me any code or information?

    I sent Paypal an email more than 48 hours ago and again a little less than 24 hours ago, but still no reply. The first link in the CURL log is this:
    ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAG E0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error

    Do you also need to check this?

    (live transaction) --> https://api-3t.paypal.com/nvp
    Request Headers:
    Array
    (
    [0] => Content-Type: text/namevalue
    [1] => X-VPS-Timeout: 90
    [2] => X-VPS-VIT-Client-Type: PHP/cURL
    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
    [4] => X-VPS-VIT-Integration-Version: 1.5.0
    )


    Request Parameters: {SetExpressCheckout}
    Array
    (
    [CURRENCYCODE] => USD
    [LOCALECODE] => CN
    [GIFTMESSAGEENABLE] => 0
    [GIFTRECEIPTEENABLE] => 0
    [GIFTWRAPENABLE] => 0
    [GIFTWRAPNAME] =>
    [GIFTWRAPAMOUNT] => 0
    [BUYEREMAILOPTINENABLE] => 0
    [CUSTOMERSERVICENUMBER] => 86(21)5013-2298
    [BRANDNAME] => Obido Educational Toys
    [PAYMENTACTION] => Sale
    [ALLOWNOTE] => 1
    [LANDINGPAGE] => Billing
    [NOSHIPPING] => 0
    [ADDROVERRIDE] => 1
    [SHIPTONAME] => Sxxxxxxxxxxxxxxx
    [SHIPTOSTREET] => Exxxxxxxxxxxxxxx
    [SHIPTOSTREET2] => Pudong New Area
    [SHIPTOCITY] => Shanghai
    [SHIPTOZIP] => 20xxxx
    [SHIPTOSTATE] => Shanghai
    [SHIPTOCOUNTRYCODE] => CN
    [SHIPTOPHONENUM] =>
    [EMAIL] => sxxxxxxxxxxail.co.uk
    [AMT] => 175.80
    [RETURNURL] => http://obidotoys.com/ipn_main_handler.php?type=ec
    [CANCELURL] =>
    http://obidotoys.com/index.php?main_page=checkout_shipping&ec_cancel=1
    [PAGESTYLE] => Obido
    [METHOD] => SetExpressCheckout
    [USER] => adxxxxxx_api1.gmail.com
    [PWD] => ****************
    [VERSION] => 61.0
    [SIGNATURE] => ****************************************************2tUo
    )


    Response:
    Array
    (
    [TOKEN] => EC-45591503Y4811030X
    [TIMESTAMP] => 2012-10-10T01:15:31Z
    [CORRELATIONID] => 3fd256915f7c


    [ACK] => Success
    [VERSION] => 61.0
    [BUILD] => 3893058
    [CURL_ERRORS] =>
    )

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

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Quote Originally Posted by ShanghaiLad View Post
    "This payment cannot be completed and your account has not been charged. Please contact your merchant for more information. Error - Return to merchant and try a different payment method."
    That message is occurring on the PayPal site, and not in Zen Cart. It is not a CURL issue. It is not a hostgator issue. It is probably not even a currency issue.

    It is a PayPal issue.
    There will be no error number shown in your store, because the entire problem happened on the PayPal site.
    PayPal tech support will need to explain the "why" behind PayPal's choice to reject the payment. www.paypal.com/mts
    .

    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
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Quote Originally Posted by DrByte View Post
    That message is occurring on the PayPal site, and not in Zen Cart. It is not a CURL issue. It is not a hostgator issue. It is probably not even a currency issue.

    It is a PayPal issue.
    There will be no error number shown in your store, because the entire problem happened on the PayPal site.
    PayPal tech support will need to explain the "why" behind PayPal's choice to reject the payment. www.paypal.com/mts
    Thanks.

    I sent a request to their support on that page more than 2 days ago now.

    In your experience, how long does it generally take them to reply to these issues?

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

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Usually same day.
    .

    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
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Quote Originally Posted by DrByte View Post
    Usually same day.
    I finally received a reply from Paypal.

    They said I need to change my LOCALECODE from CN to C2. Which file do I need to find to make the change?

    Thanks again for all your help.

  9. #9
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: 10401 Error - Paypal Express Checkout - CNY currency

    Quote Originally Posted by ShanghaiLad View Post
    I finally received a reply from Paypal.

    They said I need to change my LOCALECODE from CN to C2. Which file do I need to find to make the change?

    Thanks again for all your help.
    Found it in \includes\modules\payment\paypalwpp and fixed it.

 

 

Similar Threads

  1. PayPal Express Checkout Error (10605)‏ - Currency is not supported
    By win8win in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 25 Jul 2012, 03:46 AM
  2. Paypal Express checkout in Wrong Currency.
    By bennyblue in forum General Questions
    Replies: 1
    Last Post: 23 May 2011, 05:43 PM
  3. 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
  4. If a choose canadian currency give me error 10401
    By icikite in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 19 Apr 2009, 08:14 PM
  5. PayPal Express Checkout Errors 10401, 11059, 10426 with JPY
    By _prd_ in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 6 Oct 2008, 10: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