PayPal login page language

Project:Ubercart Contributions
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

Hi All,

the PayPal login page language (the "lc" field when Pre-populating PayPal Checkout Pages) should be instantiated with the User preferred language and not with a fix, even if partially configurable, value.
PayPal WPS accepts a variety of languages - please see "Website Payments Standard Integration Guide" appendix C, which in the end follows ISO 3166-1.
The User preferred language the User selects via the User Profile should be mapped to the above ISO list and passed to PayPal via the "lc" variable. Therefore no selection should be done under the Store Payment Setting Configuration, but the "lc" variable should be automatically instantiated.
Not sure whether we want to consider this a bug or a feature request, nonetheless the "lc" PayPal variable is there for that purpose, so we should take advantage of that and help Ubercart to boost in the Internationalization Cart market.

univac

PS: thanks folks for this wonderful project!

Version: 
Ubercart 2.x-dev
Marie Marie's picture
Offline
Joined: 01/28/2010
Juice: 2
PayPal login page language

I'd like the PayPal login page to always be in English, even if a customer lives in Spain or France. However, as my site is only in English, the users aren't given the possibility to select a language. Can anyone suggest a fix for this?

hosais's picture
Offline
Joined: 01/02/2010
Juice: 66
#2
Category:» support request
Assigned to:Marie Marie» Guest

In my opinion, it should be related to the language when user checkout, not related to the User preferred language (in Drupal SYSTEM).

I use Ubercart 6.x-2.2. I modified the code to update lc variable accordingly, however, it does not work. It always shows the language setting of my PAYPAL account (which is seller) not buyer's setting no matter what value the variable lc is.

Actually, the orginal version of Ubercart has a choose for change the language of paypal login page. It does not work too as memtioned in the post of univac.

Anyone knows the problem?

hosais

Bisonbleu's picture
Offline
Joined: 05/20/2010
Juice: 16
#3

Hi hosais,

I have the same problem. I spoke & emailed PayPal. Here is their reply.

We have a variable that you can pass if you are using custom coded PayPal buttons. The variable is "LC" and can be passed as the country of the buyer. When this is done, we will display that countries locale PayPal site.

So if you pass this as US, say, then we will display the US site (default). This site supports English and Spanish, and a few others. If their browser has English as the primary language preference, it will display in that language. Otherwise, say Spanish was set as the preferred language - then it would be the US site in Spanish. Various countries will have different supported languages.

If you pass this as CA, then your customer's browser setting will determine if the site displays in English or French as both are supported for our Canadian site.

So you were on the right path. Can you explain how you tried to pass the country in the LC variable? Code would be great. Have you since been successful in doing so?

Cheers!

hosais's picture
Offline
Joined: 01/02/2010
Juice: 66
#4

Hello Bisonbleu,

About the code, it is not very complicated. You can check http://drupal.org/node/488624 as an example(http://drupal.org/files/issues/uc_paypal_0.diff).

I remember that I tested the code by adding "echo" and it shows lc variable changed in the proudced html. I assumed that Paypal side recieved the lc variable. Paypal continue with my account (paypal account) language.

hosais

Bisonbleu's picture
Offline
Joined: 05/20/2010
Juice: 16
#5

Hello hosais,

Thanks for your reply.

Not being a programmer makes understanding the suggested patch code (and then patching) a difficult proposition. But, after talking to the friendly PayPal folks, my understanding is that this patch (http://drupal.org/node/488624) is not required and/or useful in my case (?).

Here's why. PayPal determines what country my custumers are from (in my case Canada only). For Canada, PayPal offers 2 languages : French and English. The language PayPal selects for the landing page of my customers is determined by the default language of the their browser. The other language is available in a drop down menu on the PayPal landing page.

This is perfect for me. This is all I need. I just want my customers to automatically be served in their own language, which I assume to be the same as their browser language.

The only code change I did (is this good or bad?), I added Canada ('CA') to the list of countries in the PayPal login page language drop down menu (admin/store/settings/payment/edit/methods). I did this in uc_paypal.module. To be honest I'm not even sure this actually does anything. But it doesn't seem to be breaking anything at this point.

In the end, after playing in the PayPal Sandbox for a few days - a great tool is their is one - my first Ubercart e-commerce website went live yesterday. I got my first credit card payment within 15 minutes of going live.

So I'm pretty happy! Smiling

hosais's picture
Offline
Joined: 01/02/2010
Juice: 66
#6

Great to hear your success.

In my tests before, If I set the user language of sendbox (which is me) Spanish, then it is spainish. If I set the user language of sendbox (which is me) English, then it is English.

Paypal does not change according to my browser. You can change the default language of your browser to see it works or not.

hosais