Ok.. I've tried every variation of every option noted in this thread and can't for the life of me get this to work.
Although, having said that, my debug files say it IS working.... but PayPal continues to stubbornly pop up in the wrong language - Japanese.
My store is for foreigners in Japan and is based in Japan, but I do get some Japanese customers too. So I'm trying to get PayPal to react the customers browser and personal zen cart settings and show PayPal accordingly. I can see in the debug files coming through from PayPal Express that my [LOCALECODE] is going through to PayPal just fine. In fact I have implemented all the suggestions in this thread and can quite skillfully adjust this code to whatever I want. No matter what code shows, no matter what I have as my Store Location, PayPal ALWAYS pops up in Japanese.
Here is an example of one of the thousands of debug files I have created over the past 10 hours trying to sort this out:
2011-05-11 11:33:59
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart - WPP-NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.8a
)
Request Parameters: {SetExpressCheckout} Array (
[LOCALECODE] => US
[PAYMENTACTION] => Sale
[ADDROVERRIDE] => 1
[SHIPTONAME] => Tony Bunnister
[SHIPTOSTREET] => scvbkjn
[SHIPTOSTREET2] => nkjnkjn
[SHIPTOCITY] => jnknkn
[SHIPTOZIP] => Ishikawa
[SHIPTOSTATE] => kjnkjnk
[SHIPTOCOUNTRYCODE] => JP
[EMAIL] =>
[PHONENUM] =>
[AMT] => 3,380.00
[RETURNURL] =>
[CANCELURL] =>
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => JPY
[USER] =>
[PWD] =>
[VERSION] => 3.2
[SIGNATURE] => ****************************************************
)
Response:
Array
(
[TOKEN] => EC-52U92443533900445
[TIMESTAMP] => 2011-05-11T14:34:01Z
[CORRELATIONID] => 5af643a6d3176
[ACK] => Success
[VERSION] => 3.2
[BUILD] => 1882144
[CURL_ERRORS] =>
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => JPY
[today_is] => 2011-05-11
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 219.29.222.172
[customer_id] => 85
[customer_default_address_id] => 99
[customers_authorization] => 0
[customer_first_name] => Tony
[customer_last_name] => Bunnister
[customer_country_id] => 107
[customer_zone_id] => 0
[valid_to_checkout] => 1
[sendto] => 99
[payment] => paypalwpp
address details from override check:Array (
[entry_firstname] => Tony
[entry_lastname] => Bunnister
[entry_street_address] => scvbkjn
[entry_suburb] => nkjnkjn
[entry_city] => jnknkn
[entry_postcode] => Ishikawa
[entry_country_id] => 107
[entry_zone_id] => 0
[entry_state] => kjnkjnk
[zone_code] => kjnkjnk
[countries_iso_code_2] => JP
)
I've asked someone to go through checkout from the UK and they said that PayPal popped up perfectly in English. So obviously it's to do with where the user is. But that would be [LOCALECODE] right?!!?
Any help on this would be greatly appreciated but I'm starting to get the impression, the issue is with PayPal and not with zencart.
Thanks,
Tony![]()


Reply With Quote
