Tweak - Fix IPN validation for PayPal as its notify URL has different case

This commit is contained in:
Shiva Poudel 2017-11-20 07:52:15 +05:45
parent 106e6533f2
commit 4eaeff1729
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class WC_API extends WC_Legacy_API {
wc_nocache_headers(); wc_nocache_headers();
// Clean the API request. // 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. // Trigger generic action before request hook.
do_action( 'woocommerce_api_request', $api_request ); do_action( 'woocommerce_api_request', $api_request );