Move paypal CMD to end of post vars.
This commit is contained in:
parent
b8f35fe1e2
commit
b620a8c8fb
|
@ -75,8 +75,8 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response {
|
|||
WC_Gateway_Paypal::log( 'Checking IPN response is valid' );
|
||||
|
||||
// Get received values from post data
|
||||
$validate_ipn = array( 'cmd' => '_notify-validate' );
|
||||
$validate_ipn += wp_unslash( $_POST );
|
||||
$validate_ipn = wp_unslash( $_POST );
|
||||
$validate_ipn['cmd'] = '_notify-validate';
|
||||
|
||||
// Send back post vars to paypal
|
||||
$params = array(
|
||||
|
|
Loading…
Reference in New Issue