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
......
...@@ -27,24 +27,24 @@ use Magento\Payment\Gateway\Validator\AbstractValidator; ...@@ -27,24 +27,24 @@ use Magento\Payment\Gateway\Validator\AbstractValidator;
class CheckoutResponseValidator extends AbstractValidator class CheckoutResponseValidator extends AbstractValidator
{ {
/** /**
* @var \Adyen\Payment\Logger\AdyenLogger * @var \Adyen\Payment\Logger\AdyenLogger
*/ */
private $adyenLogger; private $adyenLogger;
/** /**
* GeneralResponseValidator constructor. * GeneralResponseValidator constructor.
* *
* @param \Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory * @param \Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory
* @param \Adyen\Payment\Logger\AdyenLogger $adyenLogger * @param \Adyen\Payment\Logger\AdyenLogger $adyenLogger
*/ */
public function __construct( public function __construct(
\Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory, \Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory,
\Adyen\Payment\Logger\AdyenLogger $adyenLogger \Adyen\Payment\Logger\AdyenLogger $adyenLogger
) { ) {
$this->adyenLogger = $adyenLogger; $this->adyenLogger = $adyenLogger;
parent::__construct($resultFactory); parent::__construct($resultFactory);
} }
/** /**
* @param array $validationSubject * @param array $validationSubject
......
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