diff --git a/omnisend/includes/Internal/V1/class-client.php b/omnisend/includes/Internal/V1/class-client.php index 9a89055..f630cdc 100644 --- a/omnisend/includes/Internal/V1/class-client.php +++ b/omnisend/includes/Internal/V1/class-client.php @@ -136,19 +136,6 @@ public function send_customer_event( $event ): SendCustomerEventResponse { return new SendCustomerEventResponse( $error ); } - $body = wp_remote_retrieve_body( $response ); - if ( ! $body ) { - $error->add( 'omnisend_api', 'empty response' ); - return new SendCustomerEventResponse( '', $error ); - } - - $arr = json_decode( $body, true ); - - if ( empty( $arr['contactID'] ) ) { - $error->add( 'omnisend_api', 'contactID not found in response.' ); - return new SendCustomerEventResponse( $error ); - } - return new SendCustomerEventResponse( $error ); }