Detach vaulting from subscriptions (WIP)

This commit is contained in:
emilicastells 2022-11-22 13:35:28 +01:00
parent 28031d927b
commit 2b3b4dcce2
No known key found for this signature in database
GPG key ID: 1520C07081754570
5 changed files with 3 additions and 31 deletions

View file

@ -33,19 +33,6 @@ trait ProcessPaymentTrait {
return false;
}
/**
* Checks if vault setting is enabled.
*
* @return bool Whether vault settings are enabled or not.
* @throws \WooCommerce\PayPalCommerce\WcGateway\Exception\NotFoundException When a setting hasn't been found.
*/
protected function vault_setting_enabled(): bool {
if ( $this->config->has( 'vault_enabled' ) && $this->config->get( 'vault_enabled' ) ) {
return true;
}
return false;
}
/**
* Scheduled the vaulted payment check.
*