From 8ca9d0ff0ee3f754701e49c773d8c30420da1e68 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 26 Feb 2024 07:32:23 +1100 Subject: [PATCH] Better handling of failsafe for US State calculations --- app/DataMapper/Tax/BaseRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/DataMapper/Tax/BaseRule.php b/app/DataMapper/Tax/BaseRule.php index d921f2006887..337ea4003119 100644 --- a/app/DataMapper/Tax/BaseRule.php +++ b/app/DataMapper/Tax/BaseRule.php @@ -264,7 +264,7 @@ class BaseRule implements RuleInterface return USStates::getState(strlen($this->client->postal_code) > 1 ? $this->client->postal_code : $this->client->shipping_postal_code); } catch (\Exception $e) { - return $this->client->company->country()->iso_3166_2 == 'US' ? $this->client->company->tax_data->seller_subregion : 'CA'; + return 'CA'; } }