File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Payment/Model Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function isAvailable($quote = null)
103
103
* @param \Magento\Quote\Model\Quote|null $quote
104
104
* @return bool
105
105
*/
106
- public function isActive ($ quote = null )
106
+ public function isAvailableInConfig ($ quote = null )
107
107
{
108
108
return parent ::isAvailable ($ quote );
109
109
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function getAvailableMethods(\Magento\Quote\Api\Data\CartInterface $quote
55
55
if (!$ isFreeAdded ) {
56
56
/** @var \Magento\Payment\Model\Method\Free $freeMethod */
57
57
$ freeMethod = $ this ->paymentHelper ->getMethodInstance (Free::PAYMENT_METHOD_FREE_CODE );
58
- if ($ freeMethod ->isActive ()) {
58
+ if ($ freeMethod ->isAvailableInConfig ()) {
59
59
$ freeMethod ->setInfoInstance ($ quote ->getPayment ());
60
60
$ methods [] = $ freeMethod ;
61
61
}
You can’t perform that action at this time.
0 commit comments