diff --git a/includes/class-wc-webhook.php b/includes/class-wc-webhook.php index bf4cf9dc1c8..5306f6e1b7e 100644 --- a/includes/class-wc-webhook.php +++ b/includes/class-wc-webhook.php @@ -442,7 +442,8 @@ class WC_Webhook extends WC_Legacy_Webhook { ); // Track failures. - if ( intval( $response_code ) >= 200 && intval( $response_code ) < 300 ) { + // Check for a success, which is a 2xx, 301 or 302 Response Code. + if ( intval( $response_code ) >= 200 && intval( $response_code ) < 303 ) { $this->set_failure_count( 0 ); $this->save(); } else {