Skip to main content

PayPal Checkout SDK v6 – Incorrect button language on Polish checkout page

22 minutes ago #100000628 by Bone
-- HikaShop version -- : 6.8.1
-- Joomla version -- : 6.2.0
-- PHP version -- : 8.3.36-nmm1
-- Browser(s) name and version -- : Opera

Subject: PayPal Checkout SDK v6 – Incorrect button language on Polish checkout page
Hello,
I've found a localization issue with the PayPal Checkout payment plugin in HikaShop Essential 6.8.1.
My Joomla website is configured in Polish (
Code:
pl-PL
), and the entire checkout page is correctly displayed in Polish. However, the PayPal payment button displays "Pagar com PayPal" (Portuguese) instead of Polish text.
After inspecting the generated HTML and JavaScript, I noticed that the PayPal SDK v6 is initialized without the
Code:
locale
parameter:
Code:
var options = {     "coreUrl": "https://www.paypal.com/web-sdk/v6/core",     "clientId": "...",     "components": ["paypal-payments"],     "pageType": "checkout",     "partnerAttributionId": "HIKARISOFTWARE_Cart_PPCP" };
According to the official PayPal SDK v6 documentation, the locale can be explicitly specified during initialization:
Code:
"locale": "pl-PL"
Expected behavior:
The PayPal Checkout plugin should pass the current Joomla frontend language to the PayPal SDK, so that the payment buttons match the language of the checkout page.
For multilingual websites, the locale should be determined dynamically rather than hardcoded.
Actual behavior:
The plugin does not pass the locale parameter, leaving PayPal to detect the language automatically based on browser settings. This can result in payment buttons being displayed in a different language from the checkout page.
Could you please consider adding automatic Joomla language detection and passing the corresponding locale to PayPal SDK v6?
Thank you!

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

Time to create page: 0.042 seconds
Powered by Kunena Forum