Use 'no' to disable the gateway

This commit is contained in:
mgiulio 2014-09-29 12:08:19 +02:00
parent 878cae2c7a
commit da0a42be28
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_response' ) );
if ( ! $this->is_valid_for_use() ) {
$this->enabled = false;
$this->enabled = 'no';
}
}