Jump to content

PayPal in users language


Recommended Posts

Hi everybody!

I used prestashop as our website site system, nearly all of our customers will be English-speaking customers, but when our customer was forwarded to the paypal checkout page, the language was Chinese, I know you can change the setting by hand-operated button on the right of the webpage.But how to make the paypal checkout page to display in English automatically/default?

Thank you very much for any help!

Link to comment
Share on other sites

Hi lynne,

 

This is a good question. I looked at my paypal module and it does not look to support the LOCAALECODE. It does not seem to be a big issue to install the code to support he language that the user is using when they are sent to paypal and it's very possible you may be able to do it yourself. Also looks like some community members have developed a more robust paypal module that takes language into account.

 

To change the language displayed on the PayPal pages, set the LOCALECODE parameter to one of the following allowable values in the SetExpressCheckout call:

AU – Australia
AT – Austria
BE – Belgium
CA – Canada
CH – Switzerland
CN – China
DE – Germany
ES – Spain
GB – United Kingdom
FR – France
IT – Italy
NL – Netherlands
PL – Poland
US – United States
The following example sets LOCALCODE to ES (Spain).
Request Parameters
[requiredSecurityParameters]
&METHOD=SetExpressCheckout
&RETURNURL=https://...
&CANCELURL=https://...
&PAYMENTREQUEST_0_AMT=10.00
&PAYMENTREQUEST_0_CURRENCYCODE=EUR
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&LOCALECODE=ES

this is from: https://cms.paypal.c...i_ECCustomizing

 

I also suggest 'use full editor', to change your title to something like "PayPal in users language". This way more community members that have knowldege on this subject can help.

 

Suerte!

Link to comment
Share on other sites

  • 7 months later...

did you try the solution I posted above?

 

I couldn't find the place to update the LOCALECODE parameter - so if you know which file to look in, please give me a clue :)

 

Also - I don't quite understand what I should type in the file?

I have found the public function setExpressCheckout() in paypal_express_checkout.php

but it looks like this:

 

public function setExpressCheckout()
{
 $this->method   = 'SetExpressCheckout';
 $fields['CANCELURL'] = Tools::getValue('current_shop_url');
 // Only this call need to get the value from the $_GET / $_POST array
 if (!$this->initParameters(true) || !$fields['CANCELURL'])
 {
  return false;
 }
 // Set payment detail (reference)
 $this->_setPaymentDetails($fields);
 $fields['SOLUTIONTYPE'] = 'Sole';
 $fields['LANDINGPAGE'] = 'Login';

 // Seller informations
 $fields['USER']   = Configuration::get('PAYPAL_API_USER');
 $fields['PWD']   = Configuration::get('PAYPAL_API_PASSWORD');
 $fields['SIGNATURE'] = Configuration::get('PAYPAL_API_SIGNATURE');
 $this->callAPI($fields);
 $this->_storeToken();
}

Edited by Gomlers (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Hello,

 

I have the same problem as Gomlers. I have PayPal 3.4.1 running on Prestashop 1.5.0.17.

PayPal page is always in Spanish (I am from Spain) and I would like to see PayPal page in English when selecting English language in FrontOffice and PayPal page in Spanish when selecting Spanish language in the FrontOffice.

I can not find LOCALE parameter in PayPal module and I do not know PHP, ¿could you help me please?

 

Thanks very much

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

hello all

 

i have same question than "el patron"

 

I couldn't find the place to update the LOCALECODE parameter - so if you know which file to look in, please give me a clue :)

 

Also - I don't quite understand what I should type in the file?

I have found the public function setExpressCheckout() in paypal_express_checkout.php

but it looks like this:

i found the same file. i9s this to change???? or include this code? public function setExpressCheckout() in paypal_express_checkout.php

<<<<<<CAN SOMEBODY TELL ME WHAT IS THE FILE I NEED TO CHANGE?

(PAYPAL_EXPRESS_CHECKOUT.PHP)? OR CAN SOMEBODY TELL THE LOCATION OF THE FILE TO CHANGE?

THANK YOU SO MUCH

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

Hi ,

I want to change the name on the top left corner.

 

More details is : i have one paypal account but i have two online shop.

 

I want two shop can collect payment with one paypal account but the problems  how can i make them to show difference on the top left corner of the page when customer process the payment.

 

i know i need to change the some paremeters on the route /modules/paypal/express_checkout/.

 

but i dont know where to find and to change.

 

i am looking for help.

 

thank you.

Link to comment
Share on other sites

×
×
  • Create New...