From 1fa3cf407c8d98f8daeea873cc50013b82d415be Mon Sep 17 00:00:00 2001 From: Ivascu Madalin Date: Fri, 30 Jun 2023 06:50:53 +0000 Subject: [PATCH] BP-2188] Payment method availability gets checked on shipping address --- .../CanUseForCountry/CountryProvider.php | 50 ------------------- etc/di.xml | 1 - 2 files changed, 51 deletions(-) delete mode 100644 Model/Checks/CanUseForCountry/CountryProvider.php diff --git a/Model/Checks/CanUseForCountry/CountryProvider.php b/Model/Checks/CanUseForCountry/CountryProvider.php deleted file mode 100644 index 5513f2a9d..000000000 --- a/Model/Checks/CanUseForCountry/CountryProvider.php +++ /dev/null @@ -1,50 +0,0 @@ -getShippingAddress() ? : $quote->getBillingAddress(); - return (!empty($address) && !empty($address->getCountry())) - ? $address->getCountry() - : $this->directoryHelper->getDefaultCountry(); - } -} diff --git a/etc/di.xml b/etc/di.xml index 741923ac8..de2bf44e1 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -31,7 +31,6 @@ -