Forums / PayPal Express Checkout support / 10401 Error - Paypal Express Checkout - CNY currency

10401 Error - Paypal Express Checkout - CNY currency

Views: 3,786

Results 1 to 9 of 9
3 Oct 2012, 10:57 AM
#1
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

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?

3 Oct 2012, 2:57 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

4 Oct 2012, 6:18 AM
#3
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

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.

10 Oct 2012, 6:35 AM
#4
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

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_LONGMESSAGE0=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] =>

)

10 Oct 2012, 6:38 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 10401 Error - Paypal Express Checkout - CNY currency

ShanghaiLad:

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

10 Oct 2012, 9:20 AM
#6
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

Re: 10401 Error - Paypal Express Checkout - CNY currency

DrByte:

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?

10 Oct 2012, 4:26 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

12 Oct 2012, 9:02 AM
#8
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

Re: 10401 Error - Paypal Express Checkout - CNY currency

DrByte:

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.

12 Oct 2012, 1:22 PM
#9
shanghailad avatar

shanghailad

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

Re: 10401 Error - Paypal Express Checkout - CNY currency

ShanghaiLad:

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.