mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Remove unused
This commit is contained in:
parent
a416033c60
commit
251d6c6053
1 changed files with 0 additions and 15 deletions
|
@ -18,21 +18,6 @@ use WooCommerce\PayPalCommerce\WcGateway\Exception\GatewayGenericException;
|
||||||
* Trait ProcessPaymentTrait
|
* Trait ProcessPaymentTrait
|
||||||
*/
|
*/
|
||||||
trait ProcessPaymentTrait {
|
trait ProcessPaymentTrait {
|
||||||
/**
|
|
||||||
* Checks if PayPal or Credit Card gateways are enabled.
|
|
||||||
*
|
|
||||||
* @return bool Whether any of the gateways is enabled.
|
|
||||||
*/
|
|
||||||
protected function gateways_enabled(): bool {
|
|
||||||
if ( $this->config->has( 'enabled' ) && $this->config->get( 'enabled' ) ) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ( $this->config->has( 'dcc_enabled' ) && $this->config->get( 'dcc_enabled' ) ) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the payment failure.
|
* Handles the payment failure.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue