Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Klaviyo/Client/AsyncClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ===
Expand Down
3 changes: 3 additions & 0 deletions src/Klaviyo/Gateway/KlaviyoGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down