Merge pull request #612 from woocommerce/PCP-648-pre-release-1.8.0-disabling-dcc-

Do not set PayPal gateway enabled on credit card gateway
This commit is contained in:
Emili Castells 2022-04-21 15:23:32 +02:00 committed by GitHub
commit 1c92a56e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -471,7 +471,6 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC {
if ( 'enabled' === $key ) {
$this->config->set( 'dcc_enabled', 'yes' === $value );
$this->config->set( 'enabled', 'yes' === $value );
$this->config->persist();
return true;