From 9d37cacce410da22adece72233c1d434648523e2 Mon Sep 17 00:00:00 2001 From: Jeroen Rothbauer Date: Fri, 24 May 2024 14:53:25 +0200 Subject: [PATCH] Allow country to be empty --- src/services/Orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;