Zen Cart Logo
Forums / PayPal Express Checkout support / PayPal Express Error 10401 when using JPY currency on my site

PayPal Express Error 10401 when using JPY currency on my site

Locked

Views: 6,920

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
21 Oct 2008, 6:27 AM
#1
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

PayPal Express Error 10401 when using JPY currency on my site

Hi all,

My Shop using 1.3.7, and PayPal Express with USD, EURO, JPY, but the problems just on the JPY, it will show me the ERROR 10401. So all of our Japanese Customers can't using the PayPal Express to checkout ....

But if change to using USD or EURO it will work no problems...

I also try to install the 1.3.8a total new to testing the PayPal Express Module, same result with JPY payment.

Anyone know what is wrong and how to fix this?

The only change that I had do are add the red code from below Discount Patch.

http://www.zen-cart.com/forum/showthread.php?t=68412&highlight=discount+paypal&page=2

Thank you of your time to read and help. Wish you have a nice day.

Best Regards,
Jimmy Chan

21 Oct 2008, 7:36 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Error 10401 when using JPY currency on my site

10401 suggests that the order total amount is invalid.

How have you configured your JPY currency settings, compared to other currencies?

If you turn on the debug log-to-file, what do the CURL logfiles contain? http://www.zen-cart.com/forum/showthread.php?t=61199

21 Oct 2008, 8:12 AM
#3
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

Request Parameters: {SetExpressCheckout} 
Array
(
    [LOCALECODE] => US
    [PAYMENTACTION] => Sale
    [AMT] => 262.60
    [RETURNURL] => http://www.****.com/store/ipn_main_handler.php?type=ec
    [CANCELURL] => http://www.*****.com/store/index.php?main_page=login&ec_cancel=1
    [PAGESTYLE] => Primary
    [METHOD] => SetExpressCheckout
    [CURRENCYCODE] => JPY
    [USER] => *********.com
    [PWD] => ****************
    [VERSION] => 2.3
    [SIGNATURE] => ****************************************************cOpJ
)


Response: 
Array
(
    [TIMESTAMP] => 2008-10-21T08:03:51Z
    [CORRELATIONID] => 3dd627d280694
    [ACK] => Failure
    [VERSION] => 2.3
    [BUILD] => 729241
    [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
21 Oct 2008, 9:28 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Error 10401 when using JPY currency on my site

What are your currency settings for JPY?

21 Oct 2008, 10:51 AM
#5
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

Hi Dr.Byte,

101 Dollars

We are main using USD as a base.

Set the JPY of 101 Dollars.

21 Oct 2008, 10:52 AM
#6
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

And code is enter "JPY"

Name Japan Yen

Other fill box I let it empty.

21 Oct 2008, 10:55 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Error 10401 when using JPY currency on my site

Is it using "." as a decimal separator? and "," as a thousands separator?
How many decimal places? Does JPY use 4 decimal places?

22 Oct 2008, 2:02 AM
#8
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

Hi DrByte,

decimal separator? and thousands separator are both nothing fill in
Decimal places also same

Just Fill this in the currencies page
Title: Japan Yen
Code: JPY
Decimal Point: Nothing fill here
Thousands Point: Nothing fill here
Decimal Places: Nothing fill here
Value: 101

Hope above inform help for analysis.

Thank you very much and wish you have a nice day.

25 Oct 2008, 6:41 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Error 10401 when using JPY currency on my site

explorer1979:

Title: Japan Yen
Code: JPY
Decimal Point: Nothing fill here
Thousands Point: Nothing fill here
Decimal Places: Nothing fill here
Value: 101

With JPY, for Decimal Places, please use: 0

28 Oct 2008, 9:15 AM
#10
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

Dr.Byte,

First, thank you very much, but it still have problems of the JPY.

It only work with even number
The Total much even number
The VIP Group Discount much even number

Every thing much even number.

So here are a problems,

If ....
X% is discount
1- 10% = 0.9, this will not work on JPY.

And suggestion here so that JPY can support non-even and even number of it Total price cal, plus discount etc?

Thank you again of your kindly help.

Best Regards,
Jimmy Chan

30 Oct 2008, 3:17 PM
#11
cplam999 avatar

cplam999

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

hello !
I am a friend of explorer1979.

I have made a test and found that, if one of the following number is a "odd" number, the paypal express won't work.

sub-total, must be a even number
Discount, must be a even number
shipping cost, must be a even number
Total cost. must be a even number

for example:
sub-total :198
discount :18
shipping: 20
this case the paypal is fine.

but, in this case:
sub-total: 198
discount: 19
shipping csot:20
in this case, the paypal won't work. and give me a error 10401

other currency, like USD, Euro, GBP is working perfectly.
except the JPY.

and we have set the JPY's decimal place to "0"
no luck...

:no:

2 Dec 2009, 4:43 PM
#12
crystalkoi avatar

crystalkoi

Zen Follower

Join Date:
Apr 2007
Posts:
181
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

I know this is old, but I just ran into this problem.

I can tell you why this happens.

Check your rate, if your rate is something like 91.0389040

Then you are going to get an error, because it is trying to pass a number in yen like 300.95 yen. But in Yen, you can't do past .00, there is no such thing.

I will look to see if there is a patch out there, if not I will have to work one out.

Regards,

Shaun

3 Dec 2009, 9:52 PM
#13
cplam999 avatar

cplam999

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

thanks Shaun,

we have play around the setings of the JPY currency.
but still no luck...

hope somebody have a patch for this problem:no:

4 Dec 2009, 4:22 AM
#14
crystalkoi avatar

crystalkoi

Zen Follower

Join Date:
Apr 2007
Posts:
181
Plugin Contributions:
0

Re: PayPal Express Error 10401 when using JPY currency on my site

If you have your JPY set up right, then you should just be able to adjust the currency to 92 or something and it should work. Setting it to 94.399 will not work.

Hope that helps,

Shaun