WC_Gateway_Paypal::is_availablepublicWC 1.0

Check if the gateway is available for use.

Method of the class: WC_Gateway_Paypal{}

No Hooks.

Returns

true|false.

Usage

$WC_Gateway_Paypal = new WC_Gateway_Paypal();
$WC_Gateway_Paypal->is_available();

WC_Gateway_Paypal::is_available() code WC 10.7.0

public function is_available() {
	// For Orders v2, require a valid email address to be set up in the gateway settings.
	if ( $this->should_use_orders_v2() && $this->needs_setup() ) {
		return false;
	}

	return parent::is_available();
}