Workaround for #5962

This commit is contained in:
Mike Jolley 2014-08-05 21:12:52 +01:00
parent 80ca1c3808
commit 7475778d05
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
}
// check to see if the request was valid
if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 && ( strcmp( $response['body'], "VERIFIED" ) == 0 ) ) {
if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 && strstr( $response['body'], 'VERIFIED' ) ) {
if ( 'yes' == $this->debug ) {
$this->log->add( 'paypal', 'Received valid response from PayPal' );
}