Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control the language of the paypal checkout page?

I am using perstashop (an open source Eshop framework) paypal plugin to implement the paypal function.

Actually it is the PHP framework so it should be similar to other site implementation.

I would like to change the language of checkout page

And here is the code:

<form id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post">
    <input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
    <input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" />
    <input type="hidden" name="bn" value="{$PayPal_tracking_code|escape:'htmlall':'UTF-8'}" />
</form>  

Someone said put the line

<input type="hidden" name="lc" value="xx_XX">

in the form, I check the support locale code list and put it , unluckly it remain the same

So I wonder:

1) is this correct or I need to change elsewhere?

2) is the language in paypal changed in paypal panel instead of code? there is a default language setting, but how can I dynamic change base on the Eshop language?

3) can I control the language choice as well? My eshop has English, France and Germany but paypal checkout can only change between English and France, any idea ?

It is classic express checkout page.

Thanks for helping.

Update:

Found that the language is control by the delivery address. Then it means I can somehow change that

like image 239
user3538235 Avatar asked Nov 27 '15 19:11

user3538235


People also ask

How do I customize PayPal checkout?

Click your profile name in the top right corner of your account and then click Account Settings. From the left menu, click My selling tools. In the Selling online section, click the Update link next to Website preferences to see the Website Payment Preferences page.

How do I disable PayPal Express checkout?

You can find this setting under Theme Settings > Cart. Note: this workaround only works when using the Page cart type. Once the additional checkout buttons are enabled we can apply a CSS snippet to hide those buttons on the cart page, effectively removing the express buttons from all parts of your checkout experience.

What is PayPal Express checkout buttons?

The PayPal Express Checkout button offers your customers another way to pay, and it complements your existing PayPal payment flow. It will provide a one-click checkout solution without the need of asking the billing and shipping addresses.


1 Answers

I offered some time ago a bounty for the same thing. Nobody was able to help me: paypal express checkout: 2 language

From what I figured the language depended on the country where the delivery was going to + if the person had an account with paypal and the language they previously used.

like image 112
Mihai P. Avatar answered Oct 13 '22 15:10

Mihai P.