diff --git a/src/services/Orders.php b/src/services/Orders.php index 5eb163e..82d954f 100644 --- a/src/services/Orders.php +++ b/src/services/Orders.php @@ -1045,7 +1045,7 @@ private function getAddressId($addressData) $countryId = $addressData['country'] ?? null; - if (!is_int($countryId)){ + if ($countryId !== null && !is_int($countryId)){ $country = Stripe::$app->countries->getCountryByIso($countryId); if ($country){ $countryId = $country->id;