We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 4da491cb authored by attilak's avatar attilak

fix rebase

add installment not empty check
parent 782efa74
...@@ -75,33 +75,6 @@ class Hpp extends AbstractInfo ...@@ -75,33 +75,6 @@ class Hpp extends AbstractInfo
return $this->getInfo()->getOrder(); return $this->getInfo()->getOrder();
} }
/**
* Get all Banktransfer related data
*
* @return array
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getBankTransferData()
{
$result = [];
if (!empty($this->getInfo()->getOrder()->getPayment()) &&
!empty($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('bankTransfer.owner'))
) {
$result = $this->getInfo()->getOrder()->getPayment()->getAdditionalInformation();
}
return $result;
}
/**
* @return mixed
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getOrder()
{
return $this->getInfo()->getOrder();
}
/** /**
* @return null * @return null
* @throws \Magento\Framework\Exception\LocalizedException * @throws \Magento\Framework\Exception\LocalizedException
......
...@@ -399,9 +399,11 @@ class Requests extends AbstractHelper ...@@ -399,9 +399,11 @@ class Requests extends AbstractHelper
} }
// if installments is set add it into the request // if installments is set add it into the request
if (!empty($payload[PaymentInterface::KEY_ADDITIONAL_DATA][AdyenCcDataAssignObserver::NUMBER_OF_INSTALLMENTS])) {
if (($numberOfInstallment = $payload[PaymentInterface::KEY_ADDITIONAL_DATA][AdyenCcDataAssignObserver::NUMBER_OF_INSTALLMENTS]) > 0) { if (($numberOfInstallment = $payload[PaymentInterface::KEY_ADDITIONAL_DATA][AdyenCcDataAssignObserver::NUMBER_OF_INSTALLMENTS]) > 0) {
$request['installments']['value'] = $numberOfInstallment; $request['installments']['value'] = $numberOfInstallment;
} }
}
return $request; return $request;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment