Skip to content

Commit

Permalink
Merge pull request #21 from aligent/fix/is_active_store_scope
Browse files Browse the repository at this point in the history
fix bug where isActive will only ever be resolved at a default scope
  • Loading branch information
aligent-lturner authored Sep 13, 2023
2 parents 08975b6 + 39353e4 commit c05c2fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Model/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,16 @@ public function assignData(DataObject $data)
*/
public function isAvailable(CartInterface $quote = null)
{
return $this->isActive();
$storeId = $quote->getStoreId();
return $this->isActive($storeId);
}

/**
* @inheritDoc
*/
public function isActive($storeId = null)
{
return $this->getConfigData('active');
return $this->getConfigData('active', $storeId);
}

/**
Expand Down

0 comments on commit c05c2fa

Please sign in to comment.