From 56d875df5a77e54bb8e88faa6c281100d68414b2 Mon Sep 17 00:00:00 2001 From: condor2 Date: Tue, 4 Jun 2024 10:38:54 +0300 Subject: [PATCH] Added Checkout Paypal Language bug fix https://forum.opencart.com/viewtopic.php?t=232822#p865518 --- upload/catalog/view/javascript/paypal/paypal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload/catalog/view/javascript/paypal/paypal.js b/upload/catalog/view/javascript/paypal/paypal.js index 007840fcd..eea825ab1 100644 --- a/upload/catalog/view/javascript/paypal/paypal.js +++ b/upload/catalog/view/javascript/paypal/paypal.js @@ -125,7 +125,8 @@ var PayPalAPI = (function () { src_data['merchant-id'] = paypal_data['merchant_id']; src_data['currency'] = paypal_data['currency_code']; src_data['intent'] = paypal_data['transaction_method']; - + src_data['locale'] = paypal_data['locale']; + if (paypal_data['button_enable_funding'] && paypal_data['button_enable_funding'].length) { src_data['enable-funding'] = paypal_data['button_enable_funding'].join(','); }