We experienced a new problem with PayPal Payments Standard not recognizing the country or address details for customers when they wanted to pay by credit card. Ran in a few circles before we worked out a solution with PayPal. We are in Canada so we need to support both English and French customers. The solution we are using now:
For English customers: Set the localization variable "lc" to NULL. Nothing else worked for us. PayPal tells us that this setting for "lc" allows their geolocation system to work and determine the language. This works fine now although it is a bit odd as our VPS is in the US. But no complaints as long as it keeps on working. Country is recognized and the customer details are correctly populated by PayPal.
For French/Canadian customers: We set the localization variable "lc" to "fr_CA". This works perfectly as the country is now recognized as Canada and the language as French with the address fields populated correctly (even with UTF-8 used for characters with accents).
The patch file we are using is enclosed and as recommended by PayPal all 'official' localization codes per the documentation found here are available for selection:
https://developer.paypal.com/docs/classic/api/locale_codes/.
As you can see from the patch, there is localization option of NULL which forces PayPal to use their geolocation algorithm.
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_paypal.patch | 650 bytes | alh |
Comments
Comment #2
tr commentedCan you please read #1586424: PayPal login page language never changes and always "US" and post your comments/patch in that issue?