Tweak - Fix IPN validation for PayPal as its notify URL has different case
This commit is contained in:
parent
106e6533f2
commit
4eaeff1729
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue