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

    Default Japanese Yen and Paypal - JPY error 10401

    Hi,

    In setting up Zen-cart to be able to handle payment from Japanese yen, which is a good option right now because the USD is so weak, I came up with an error.

    I have not dug into this so deep yet, but Yen is being handled wrong.

    For example, lets say that 1USD = 100 yen. This would be a perfect world, and everything would work right.

    Yen does not use decimals, never, only in rates can you use a decimal for yen, and then it is taken to the nearest 1 yen. 1yen is not expressed as .01, it is 1. It never goes below 1. This is the problem

    So now lets say the rate is 1usd = 85.4094093 yen Now we are going to have problems paying with paypal if you don't have Yen as your default currency. The reason being, yen is going to be passed to paypal like this: 2399.94 yen, Paypal sees this, and goes...wait, yen can't be .94 send error 10401.

    Dr. Byte if you have a code update you would like to do, please advise or I will come up with one soon as I have a client waiting for this.

    Regards,

    Shaun

  2. #2
    Join Date
    Jan 2004
    Posts
    60,533
    Blog Entries
    4
    Plugin Contributions
    145

    Default Re: Japanese Yen and Paypal - JPY error 10401

    What do you have for number of decimal places set for yen in your currency settings?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Hi DrByte,

    It is set to 0.

  4. #4
    Join Date
    Jan 2004
    Posts
    60,533
    Blog Entries
    4
    Plugin Contributions
    145

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Which PayPal module(s) are you seeing this with?

    Can you provide me with the PayPal_CURL_xxxxxxxx.log log files from some failing EC transactions?
    ie: http://www.zen-cart.com/forum/showthread.php?t=61199
    And also some details of the prices/totals in the cart for those same transactions ... and your JPY vs Default currency exchange rate at the time.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



  5. #5
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Hi,

    PayPal Website Payments Pro and PayPal Express Checkout.

    For the Default currency I have USD, Japanese yen I have set to this.

    Title: Japanese Yen

    Code: JPY

    Symbol Left: ¥

    Symbol Right: null

    Decimal Point: null

    Thousands Point: ,

    Decimal Places: 0

    Value: 91.00000000

    If the value has anything set to say, 91.2000000, then its going to error.

    I will pm you the log location.

    Regards,

    Shaun

  6. #6
    Join Date
    Jan 2004
    Posts
    60,533
    Blog Entries
    4
    Plugin Contributions
    145

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Quote Originally Posted by CrystalKoi View Post
    Decimal Places: 0

    Value: 91.00000000

    If the value has anything set to say, 91.2000000, then its going to error.
    So ... is that the key?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



  7. #7
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Well, yes and no. I mean if people want to run a cron to keep their rates up to date, then it is going to error until they go in and fix it.

    You see what I mean? The rate for Japanese yen for the order total needs to me above .00 , if that makes sense.

    You still need that log?

  8. #8
    Join Date
    Jan 2004
    Posts
    60,533
    Blog Entries
    4
    Plugin Contributions
    145

    Default Re: Japanese Yen and Paypal - JPY error 10401

    I think I see what you mean.

    More specifically, my question is: If one uses whole numbers (no decimals) for the JPY exchange rate, does that solve ALL these problems?
    (Yes, I know the currency updater tool might change that, but that's a separate matter. If the decimals are removed again, is all okay again?)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



  9. #9
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Yes I believe so. Let me put it through some more tests and make sure. I will post back.

  10. #10
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: Japanese Yen and Paypal - JPY error 10401

    Actually no, sorry, I should have played with my numbers first. If we set the dollar and the yen to a one to one ratio. 1$ = 100 yen, then this will work no problem.

    But if I set the yen to a rate of $1 = 92 yen, and my product is $23.47, when converted to yen it will become 2,159.24 yen. Now here you can see that the .24 is going to make the error. What I would like to see is that the rate is rounded up or down, say if it is .49999 it will be rounded down and .500 and up will be rounded up to the nearest whole number.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. function replace_accents(), Japanese, PayPal
    By CrystalKoi in forum Bug Reports
    Replies: 8
    Last Post: 19 Jul 2009, 02:06 PM
  3. 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
  4. 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
  5. error code 10401 - Not happy setup?
    By PingPing in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 10 Mar 2008, 10:49 PM

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
  •