Skip to content

Commit 95aef48

Browse files
committed
MAGETWO-32016: Payment API for the Payments in US and CA
- fixed parent child merge defect with inheritance
1 parent 04931e6 commit 95aef48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Payment/Model/Method/Free.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function isAvailable($quote = null)
103103
* @param \Magento\Quote\Model\Quote|null $quote
104104
* @return bool
105105
*/
106-
public function isActive($quote = null)
106+
public function isAvailableInConfig($quote = null)
107107
{
108108
return parent::isAvailable($quote);
109109
}

app/code/Magento/Payment/Model/MethodList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getAvailableMethods(\Magento\Quote\Api\Data\CartInterface $quote
5555
if (!$isFreeAdded) {
5656
/** @var \Magento\Payment\Model\Method\Free $freeMethod */
5757
$freeMethod = $this->paymentHelper->getMethodInstance(Free::PAYMENT_METHOD_FREE_CODE);
58-
if ($freeMethod->isActive()) {
58+
if ($freeMethod->isAvailableInConfig()) {
5959
$freeMethod->setInfoInstance($quote->getPayment());
6060
$methods[] = $freeMethod;
6161
}

0 commit comments

Comments
 (0)