Remove dependency of ACDC Vault with Reference Transaction enabled

This commit is contained in:
Pedro Silva 2023-07-04 17:53:59 +01:00
parent 79f0d476a6
commit a9e56a3ff3
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
2 changed files with 2 additions and 1 deletions

View file

@ -864,7 +864,6 @@ return array(
$billing_agreements_endpoint = $container->get( 'api.endpoint.billing-agreements' );
if ( ! $billing_agreements_endpoint->reference_transaction_enabled() ) {
unset( $fields['vault_enabled'] );
unset( $fields['vault_enabled_dcc'] );
}
/**

View file

@ -241,6 +241,8 @@ class PayPalGateway extends \WC_Payment_Gateway {
'subscription_payment_method_change_admin',
'multiple_subscriptions'
);
} elseif ( $this->config->has( 'vault_enabled_dcc' ) && $this->config->get( 'vault_enabled_dcc' ) ) {
$this->supports[] = 'tokenization';
}
}