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 41636519 authored by Giorgos Adam's avatar Giorgos Adam Committed by GitHub

Merge pull request #299 from Adyen/additional-info

Adding cardBin and expiryDate additionalData
parents acbd2670 97f7799d
...@@ -655,6 +655,8 @@ class Cron ...@@ -655,6 +655,8 @@ class Cron
$acquirerReference = (isset($additionalData['acquirerReference'])) ? $acquirerReference = (isset($additionalData['acquirerReference'])) ?
$additionalData['acquirerReference'] : ""; $additionalData['acquirerReference'] : "";
$authCode = (isset($additionalData['authCode'])) ? $additionalData['authCode'] : ""; $authCode = (isset($additionalData['authCode'])) ? $additionalData['authCode'] : "";
$cardBin = (isset($additionalData['cardBin'])) ? $additionalData['cardBin'] : "";
$expiryDate = (isset($additionalData['expiryDate'])) ? $additionalData['expiryDate'] : "";
} }
// if there is no server communication setup try to get last4 digits from reason field // if there is no server communication setup try to get last4 digits from reason field
...@@ -695,6 +697,12 @@ class Cron ...@@ -695,6 +697,12 @@ class Cron
if (isset($authCode) && $authCode != "") { if (isset($authCode) && $authCode != "") {
$this->_order->getPayment()->setAdditionalInformation('adyen_auth_code', $authCode); $this->_order->getPayment()->setAdditionalInformation('adyen_auth_code', $authCode);
} }
if (!empty($cardBin)) {
$this->_order->getPayment()->setAdditionalInformation('adyen_card_bin', $cardBin);
}
if (!empty($expiryDate)) {
$this->_order->getPayment()->setAdditionalInformation('adyen_expiry_date', $expiryDate);
}
} }
/** /**
......
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