diff --git a/src/Klaviyo/Client/AsyncClient.php b/src/Klaviyo/Client/AsyncClient.php index ca9dee16..c5020413 100644 --- a/src/Klaviyo/Client/AsyncClient.php +++ b/src/Klaviyo/Client/AsyncClient.php @@ -62,6 +62,8 @@ public function sendRequests(array $requests, Context $context = null): ClientRe if ( (('The phone number provided either does not exist or is ineligible to receive SMS' === $errorDetail) + || ('The phone number provided either does not exist or is ineligible to receive ChannelType.SMS' === + $errorDetail) || (str_contains($errorDetail, 'Invalid phone number format'))) || (('Invalid email address' === diff --git a/src/Klaviyo/Gateway/KlaviyoGateway.php b/src/Klaviyo/Gateway/KlaviyoGateway.php index 0ca81393..d374ae81 100644 --- a/src/Klaviyo/Gateway/KlaviyoGateway.php +++ b/src/Klaviyo/Gateway/KlaviyoGateway.php @@ -495,6 +495,9 @@ private function trackOrderEvents( && (false !== strpos( $errorMsg, 'The phone number provided either does not exist or is ineligible to receive SMS' + ) || false !== strpos( + $errorMsg, + 'The phone number provided either does not exist or is ineligible to receive ChannelType.SMS' ) || (false !== strpos($errorMsg, 'Invalid phone number format'))) ) { $orderEvent = $orderEvents[$orderId];