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 096ab11b authored by Rik ter Beek's avatar Rik ter Beek Committed by attilak

add support for banktransfer_iban

parent 49eb6c4a
...@@ -104,6 +104,16 @@ class Success extends \Magento\Framework\View\Element\Template ...@@ -104,6 +104,16 @@ class Success extends \Magento\Framework\View\Element\Template
return null; return null;
} }
public function getBankTransferData()
{
$result = [];
if (!empty($this->getOrder()->getPayment()->getAdditionalInformation('bankTransfer.owner'))) {
$result = $this->getOrder()->getPayment()->getAdditionalInformation();
}
return $result;
}
/** /**
* Get Banktransfer additional data * Get Banktransfer additional data
* *
......
...@@ -75,6 +75,31 @@ class Hpp extends AbstractInfo ...@@ -75,6 +75,31 @@ 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()->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
......
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