View Issue Details

IDProjectCategoryView StatusLast Update
0006017module PayPalmodule PayPal - subpublic2015-01-15 16:22
ReporterJaroslavHerber Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.2.1 
Summary0006017: Shipping-country decides which language is displayed in Paypal-Login-Page
DescriptionIt is quite confusing.
Let's say you are from Germany and you want to ship your order as a present to Italy.
So you choose "Germany" in your billing address, but in the delivery address you choose "Italy".

Now you go to the next step and you want to pay with Paypal. As you can see, the Paypal-Login-Page is on "Italian". And probably you don't understand Italian because you don't live in Italy, but you want to make a gift to someone living in Italy.

Logically correct, it would be better to tell Paypal to display the language corresponding to the billing-country and not to the shipping-country.

Additional InformationPossible solution would be:

\modules\oe\oepaypal\models\paypalrequest\oepaypalsetexpresscheckoutrequestbuilder.php on line 616:

$oCountry->load($oUser->oxuser__oxcountryid->value);
TagsNo tags attached.

Relationships

related to 0006000 resolvedjurate.baseviciene incorrect localecode 

Activities

martinwegele

2015-01-13 16:35

reporter   ~0010609

Last edited: 2015-01-13 16:38

This might be related to 0006000: If the localecode is not set correctly, PayPal will try to determine the display language itself:
"If the locale code is not supplied or the supplied value is not one of the listed values, it is defaulted by PayPal. The default is determined using information about the current merchant, user, and other information for the session." (from: https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/#id09BHC0UG0RO__SetExpressCheckoutRequest)
Probably it uses the delivery country, too.

JaroslavHerber

2015-01-15 10:59

reporter   ~0010610

Please ignore the possible solution under "Additional Information".

martinwegele

2015-01-15 11:28

reporter   ~0010613

Reminder sent to: JaroslavHerber

Why should we ignore your possible solution? Did you try it? Did it work?

JaroslavHerber

2015-01-15 11:34

reporter   ~0010615

Those solution overwrites also the delivery-country, if you have an alternative shipping address. Paypal gets the country from the billing address instead.

JaroslavHerber

2015-01-15 12:04

reporter   ~0010616

It looks like paypal has some factors for localization:
https://developer.paypal.com/webapps/developer/docs/classic/api/locale_codes/

Those are:
1. The shipping address country provided by the merchant in the SetExpressCheckout request.
2. The country taken from the LocaleCode parameter passed by the merchant.
3. The country of the currently logged-in user.
4. The merchant’s country.

And it looks like the shipping address has more priority than the LocaleCode. Therefore it's not a bug in the Paypal-module. This issue can be closed!