Commit 56088897 authored by attilak's avatar attilak

Adjust getBankTransferData() to consume the full additionalData object

parent 6b876d10
...@@ -38,14 +38,18 @@ class Hpp extends AbstractInfo ...@@ -38,14 +38,18 @@ class Hpp extends AbstractInfo
*/ */
public function getBankTransferData() public function getBankTransferData()
{ {
$result = [];
if (!empty($this->getInfo()->getOrder()->getPayment()) && if (!empty($this->getInfo()->getOrder()->getPayment()) &&
!empty($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('bankTransfer.owner')) !empty($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('additionalData'))
) { ) {
$result = $this->getInfo()->getOrder()->getPayment()->getAdditionalInformation(); $additionalData = $this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('additionalData');
if (!empty($additionalData['bankTransfer.reference'])) {
return $additionalData;
}
} }
return $result; return [];
} }
/** /**
......
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