From 39353e4b5737c1ec2dfae1f2e8882097b23ca227 Mon Sep 17 00:00:00 2001 From: "matthew.smith" Date: Wed, 13 Sep 2023 13:31:54 +0930 Subject: [PATCH] fix bug where isActive will only ever be resolved at a default scope --- Model/Payment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Model/Payment.php b/Model/Payment.php index b177c69..c6756a1 100644 --- a/Model/Payment.php +++ b/Model/Payment.php @@ -579,7 +579,8 @@ public function assignData(DataObject $data) */ public function isAvailable(CartInterface $quote = null) { - return $this->isActive(); + $storeId = $quote->getStoreId(); + return $this->isActive($storeId); } /** @@ -587,7 +588,7 @@ public function isAvailable(CartInterface $quote = null) */ public function isActive($storeId = null) { - return $this->getConfigData('active'); + return $this->getConfigData('active', $storeId); } /**