From 4eaeff17294d9f92fd98aec916b470471143fda1 Mon Sep 17 00:00:00 2001 From: Shiva Poudel Date: Mon, 20 Nov 2017 07:52:15 +0545 Subject: [PATCH] Tweak - Fix IPN validation for PayPal as its notify URL has different case --- includes/class-wc-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-api.php b/includes/class-wc-api.php index e885463aa2e..9d1346acbf0 100644 --- a/includes/class-wc-api.php +++ b/includes/class-wc-api.php @@ -89,7 +89,7 @@ class WC_API extends WC_Legacy_API { wc_nocache_headers(); // Clean the API request. - $api_request = $wp->query_vars['wc-api']; + $api_request = strtolower( wc_clean( $wp->query_vars['wc-api'] ) ); // Trigger generic action before request hook. do_action( 'woocommerce_api_request', $api_request );