Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/Data/Result/CreditcardData.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ class CreditcardData extends ResultData {
*/
protected $eci;

/**
* @var string
*/
protected $merchantAdviceCode;

/**
* @var string
*/
protected $parsedMerchantAdviceCode;

/**
* @var string
*/
Expand Down Expand Up @@ -430,6 +440,42 @@ public function setEci($eci)
return $this;
}

/**
* @return string
*/
public function getMerchantAdviceCode()
{
return $this->merchantAdviceCode;
}

/**
* @param string $merchantAdviceCode
* @return $this
*/
public function setMerchantAdviceCode($merchantAdviceCode)
{
$this->merchantAdviceCode = $merchantAdviceCode;
return $this;
}

/**
* @return string
*/
public function getParsedMerchantAdviceCode()
{
return $this->parsedMerchantAdviceCode;
}

/**
* @param string $parsedMerchantAdviceCode
* @return $this
*/
public function setParsedMerchantAdviceCode($parsedMerchantAdviceCode)
{
$this->parsedMerchantAdviceCode = $parsedMerchantAdviceCode;
return $this;
}

/**
* @return string
*/
Expand Down Expand Up @@ -471,6 +517,8 @@ public function toArray() {
// 'firstSixDigits',
'lastFourDigits',
'lastName',
'merchantAdviceCode',
'parsedMerchantAdviceCode',
'schemeTransactionIdentifier',
'threeDSecure',
'type',
Expand Down
2 changes: 2 additions & 0 deletions src/Json/JsonParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ protected function parseReturnData($returnData) {
$creditcardData->setBinCountry($this->arrGet($returnData, 'binCountry'));
$creditcardData->setThreeDSecure($this->arrGet($returnData, 'threeDSecure'));
$creditcardData->setEci($this->arrGet($returnData, 'eci'));
$creditcardData->setMerchantAdviceCode($this->arrGet($returnData, 'merchantAdviceCode'));
$creditcardData->setParsedMerchantAdviceCode($this->arrGet($returnData, 'parsedMerchantAdviceCode'));
$creditcardData->setSchemeTransactionIdentifier($this->arrGet($returnData, 'schemeTransactionIdentifier'));

if($this->arrGet($returnData, 'binDigits')){
Expand Down