From 2842c43661239de5946bf1842111babb80a8e5ad Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Mon, 8 Apr 2024 17:16:02 +0200 Subject: [PATCH 1/2] Revert filter to disable multiple payment tokens by default --- .../src/SavePaymentMethodsModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php b/modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php index 7f94aa15b..63f84ccd5 100644 --- a/modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php +++ b/modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php @@ -141,7 +141,7 @@ class SavePaymentMethodsModule implements ModuleInterface { 'vault' => array( 'store_in_vault' => 'ON_SUCCESS', 'usage_type' => 'MERCHANT', - 'permit_multiple_payment_tokens' => apply_filters( 'woocommerce_paypal_payments_permit_multiple_payment_tokens', true ), + 'permit_multiple_payment_tokens' => apply_filters( 'woocommerce_paypal_payments_permit_multiple_payment_tokens', false ), ), ), ), @@ -167,7 +167,7 @@ class SavePaymentMethodsModule implements ModuleInterface { 'vault' => array( 'store_in_vault' => 'ON_SUCCESS', 'usage_type' => 'MERCHANT', - 'permit_multiple_payment_tokens' => apply_filters( 'woocommerce_paypal_payments_permit_multiple_payment_tokens', true ), + 'permit_multiple_payment_tokens' => apply_filters( 'woocommerce_paypal_payments_permit_multiple_payment_tokens', false ), ), ), ), From c88a08d93265158352a47baf373fb63a33f1c6f1 Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Mon, 8 Apr 2024 17:30:31 +0200 Subject: [PATCH 2/2] Update changelog --- changelog.txt | 1 + readme.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index b1257e486..925131c5b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ * Fix - Pay upon Invoice: Add input validation to Experience Context fields #2092 * Fix - Disable markup in get_plugin_data() returns to fix an issue with wptexturize() #2094 * Fix - Problem changing the shipping option in block pages #2142 +* Fix - Saved payment token deleted after payment with another saved payment token #2146 * Enhancement - Pay later messaging configurator improvements #2107 * Enhancement - Replace the middleware URL from connect.woocommerce.com to api.woocommerce.com/integrations #2130 * Enhancement - Remove all Sofort references as it has been deprecated #2124 diff --git a/readme.txt b/readme.txt index cdf872418..145e0a97b 100644 --- a/readme.txt +++ b/readme.txt @@ -184,6 +184,7 @@ If you encounter issues with the PayPal buttons not appearing after an update, p * Fix - Pay upon Invoice: Add input validation to Experience Context fields #2092 * Fix - Disable markup in get_plugin_data() returns to fix an issue with wptexturize() #2094 * Fix - Problem changing the shipping option in block pages #2142 +* Fix - Saved payment token deleted after payment with another saved payment token #2146 * Enhancement - Pay later messaging configurator improvements #2107 * Enhancement - Replace the middleware URL from connect.woocommerce.com to api.woocommerce.com/integrations #2130 * Enhancement - Remove all Sofort references as it has been deprecated #2124