From 09c4f176d037f20b1acbbb2aab120f0836ecf1a7 Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Tue, 18 Mar 2025 16:21:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Stop=20enforcing=20card=20paymen?= =?UTF-8?q?ts=20in=20checkout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed a filter that reverted settings entered in the legacy UI’s “Disable Alternative Payment Methods” field. --- modules/ppcp-button/src/Helper/DisabledFundingSources.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/ppcp-button/src/Helper/DisabledFundingSources.php b/modules/ppcp-button/src/Helper/DisabledFundingSources.php index 4c8e98da9..ecf7d5f6f 100644 --- a/modules/ppcp-button/src/Helper/DisabledFundingSources.php +++ b/modules/ppcp-button/src/Helper/DisabledFundingSources.php @@ -152,11 +152,7 @@ class DisabledFundingSources { return $disable_funding; } - // A checkout page without ACDC: Load card button. - return array_filter( - $disable_funding, - static fn( string $funding_source ) => $funding_source !== 'card' - ); + return $disable_funding; } /**