Use 'no' to disable the gateway
This commit is contained in:
parent
878cae2c7a
commit
da0a42be28
|
@ -75,7 +75,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
||||||
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_response' ) );
|
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_response' ) );
|
||||||
|
|
||||||
if ( ! $this->is_valid_for_use() ) {
|
if ( ! $this->is_valid_for_use() ) {
|
||||||
$this->enabled = false;
|
$this->enabled = 'no';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue