From da0a42be28d7c936cacfa82fea0d1228f34162e6 Mon Sep 17 00:00:00 2001 From: mgiulio Date: Mon, 29 Sep 2014 12:08:19 +0200 Subject: [PATCH] Use 'no' to disable the gateway --- includes/gateways/paypal/class-wc-gateway-paypal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/gateways/paypal/class-wc-gateway-paypal.php b/includes/gateways/paypal/class-wc-gateway-paypal.php index aea1e194a54..e21d49d0fd3 100644 --- a/includes/gateways/paypal/class-wc-gateway-paypal.php +++ b/includes/gateways/paypal/class-wc-gateway-paypal.php @@ -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'; } }