From 4de7321d30e5c32fb0b044c78f041b9b0c53eef7 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Thu, 21 Jul 2022 11:45:39 +0200 Subject: [PATCH 1/2] Fix wrong locale for PUI experience context --- .../src/Gateway/PayUponInvoice/PaymentSourceFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php index d4dc82562..40bc9a15f 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php @@ -50,7 +50,7 @@ class PaymentSourceFactory { $address['city'] ?? '', $address['postcode'] ?? '', $address['country'] ?? '', - 'en-DE', + 'de-DE', $merchant_name, $logo_url, array( $customer_service_instructions ) From dd8a1d28beb4488e277f7fec3d4d521ca45089a7 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Thu, 21 Jul 2022 14:16:44 +0200 Subject: [PATCH 2/2] Update changelog --- changelog.txt | 1 + readme.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 10b2f8a1f..6879bff12 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ * Fix - Pay Later messaging displayed for out of stock variable products or with no variation selected #667 * Fix - Placeholders and card type detection not working for PayPal Card Processing (260) #685 * Fix - PUI gateway is displayed with unsupported store currency #711 +* Fix - Wrong PUI locale sent causing error PAYMENT_SOURCE_CANNOT_BE_USED #741 * Enhancement - Missing PayPal fee in WC order details for PUI purchase #714 * Enhancement - Skip loading of PUI js file on all pages where PUI gateway is not displayed #723 * Enhancement - PUI feature capitalization not consistent #724 diff --git a/readme.txt b/readme.txt index 2cc995602..dec5134eb 100644 --- a/readme.txt +++ b/readme.txt @@ -87,7 +87,8 @@ Follow the steps below to connect the plugin to your PayPal account: * Fix - Pay Later messaging only displayed when smart button is active on the same page #283 * Fix - Pay Later messaging displayed for out of stock variable products or with no variation selected #667 * Fix - Placeholders and card type detection not working for PayPal Card Processing (260) #685 -* Fix - PUI gateway is displayed with unsupported store currency #711 +* Fix - PUI gateway is displayed with unsupported store currency #711 +* Fix - Wrong PUI locale sent causing error PAYMENT_SOURCE_CANNOT_BE_USED #741 * Enhancement - Missing PayPal fee in WC order details for PUI purchase #714 * Enhancement - Skip loading of PUI js file on all pages where PUI gateway is not displayed #723 * Enhancement - PUI feature capitalization not consistent #724