How to change language of PayPal?

  • Pascal
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #27698 by Pascal
How to change language of PayPal? was created by Pascal
Hello, I'm using Membership Pro for a site in Italian language and I would like to set the default language of Paypal page in Italian and not in English (to facilitate sales). I think it should be changed something in os_paypal.php, but I don't know how.
I kindly ask you how I can solve this problem.
Thank you!
Pascal

Please Log in or Create an account to join the conversation.

  • Pascal
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #27783 by Pascal
Replied by Pascal on topic Re: How to change language of PayPal?
Hello, I solved the issue.

To do this you need to edit this code

$this->setParam('lc', 'US');

inserting 'IT' (for Italian Language, or you can insert other Paypal language code, like 'DE' for German language) instead of 'US'

and this code:

$this->setParam('country', OSMembershipHelper::getCountryCode($row->country));

inserting 'IT' instead of 'country'.
The code is so:
$this->setParam('IT', OSMembershipHelper::getCountryCode($row->country));

I hope it will be useful for other foreign users.

Pascal

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #27877 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to change language of PayPal?
Just want to say thank you for sharing the very helpful solution !

Tuan

Please Log in or Create an account to join the conversation.