From bc33c726f2322856369a370ff90ec8bed5e6d868 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Wed, 13 Aug 2025 19:16:11 +0400 Subject: [PATCH] fix: use `is_acdc_enabled()`` to prevent ACDC interference with BCDC in non-ACDC countries Previously, having ACDC enabled would block BCDC configuration even after switching to non-ACDC countries. Now properly scopes the check to ACDC-specific state. --- modules/ppcp-wc-gateway/src/WCGatewayModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/WCGatewayModule.php b/modules/ppcp-wc-gateway/src/WCGatewayModule.php index c39bedbbf..2edcaf7d8 100644 --- a/modules/ppcp-wc-gateway/src/WCGatewayModule.php +++ b/modules/ppcp-wc-gateway/src/WCGatewayModule.php @@ -649,7 +649,7 @@ class WCGatewayModule implements ServiceModule, ExtendingModule, ExecutableModul $standard_card_button = get_option( 'woocommerce_ppcp-card-button-gateway_settings' ); - if ( $dcc_configuration->is_enabled() && isset( $standard_card_button['enabled'] ) ) { + if ( $dcc_configuration->is_acdc_enabled() && isset( $standard_card_button['enabled'] ) ) { $standard_card_button['enabled'] = 'no'; update_option( 'woocommerce_ppcp-card-button-gateway_settings', $standard_card_button ); }