Ensure vault enabled false on page load when reference transactions not enabled

This commit is contained in:
Emili Castells Guasch 2024-02-14 12:46:55 +01:00
parent 53c2c96b8c
commit 8d1f45d19e
2 changed files with 5 additions and 5 deletions

View file

@ -910,11 +910,6 @@ return array(
unset( $fields['subscriptions_mode'] );
}
$billing_agreements_endpoint = $container->get( 'api.endpoint.billing-agreements' );
if ( ! $billing_agreements_endpoint->reference_transaction_enabled() ) {
unset( $fields['vault_enabled'] );
}
/**
* Depending on your store location, some credit cards can't be used.
* Here, we filter them out.