Closed obsergiu closed 1 year ago
Hi, Thanks for the update, we will check in our side and come back to you.
We have fixed this issue in our latest release - 2.4.6-rc0523. Please have a look.
https://github.com/Worldpay/Worldpay-Magento2-CG/releases/tag/2.4.6-rc0523
Klarna fails on our multi-store platform.
The error we get back is:
This issue is because the module is sending the locale in a format that does not comply with WorldPay's specifications. Specifically, the module is using the Magento default format, which separates the language and region subtags with an underscore, as in "en_GB":
However, the WorldPay documentation specifies that the format should be RFC 1766 compliant, which uses a hyphen to separate the language and region subtags, as in "en-GB".
According to Worldpay documentation:
Solution: This can be fixed easily by adding the code:
instead of:
in the file:
It would be nice to have this fix in the next release as it will save us the headaches of worrying about maintaining the patch and potentially encountering issues in the future.