mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Merge pull request #3594 from woocommerce/PCP-4491-bcdc-item-does-not-persist-when-saving-vietnam-also-does-not-show-for-mexico
Use `is_acdc_enabled()` to prevent ACDC interference with BCDC in non-ACDC countries (4491)
This commit is contained in:
commit
f1433f94e8
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue