View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006017 | module PayPal | module PayPal - sub | public | 2015-01-13 15:03 | 2015-01-15 16:22 |
Reporter | JaroslavHerber | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.2.1 | ||||
Summary | 0006017: Shipping-country decides which language is displayed in Paypal-Login-Page | ||||
Description | It 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 Information | Possible solution would be: \modules\oe\oepaypal\models\paypalrequest\oepaypalsetexpresscheckoutrequestbuilder.php on line 616: $oCountry->load($oUser->oxuser__oxcountryid->value); | ||||
Tags | No tags attached. | ||||
related to | 0006000 | resolved | jurate.baseviciene | incorrect localecode |
|
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. |
|
Please ignore the possible solution under "Additional Information". |
|
Reminder sent to: JaroslavHerber Why should we ignore your possible solution? Did you try it? Did it work? |
|
Those solution overwrites also the delivery-country, if you have an alternative shipping address. Paypal gets the country from the billing address instead. |
|
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! |