mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Add filter to register standrard card button gateway programmatically
This commit is contained in:
parent
47e8fec98c
commit
b08c6f671a
2 changed files with 6 additions and 3 deletions
|
@ -297,7 +297,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
assert( $dcc_applies instanceof DCCApplies );
|
||||
|
||||
// Unset BCDC if merchant is eligible for ACDC.
|
||||
if ( $dcc_product_status->dcc_is_active() ) {
|
||||
if ( $dcc_product_status->dcc_is_active() && ! $container->get( 'wcgateway.settings.allow_card_button_gateway' ) ) {
|
||||
unset( $payment_methods[ CardButtonGateway::ID ] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue