Skip to content

Commit

Permalink
Merge pull request #34 from ixopay/feature/cp-pt-token-in-statuscall
Browse files Browse the repository at this point in the history
Added paymentToken to customerProfile data
  • Loading branch information
mmancinaIXO authored Aug 28, 2023
2 parents b5f2676 + ea9867b commit 762e19b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/Data/CustomerProfileData.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class CustomerProfileData extends DataObject {
*/
protected $customerIdentification;

/**
* @var string|null
*/
protected $paymentToken;

/**
* @var boolean
*/
Expand Down Expand Up @@ -64,6 +69,25 @@ public function setCustomerIdentification($customerIdentification)
return $this;
}

/**
* @return string|null
*/
public function getPaymentToken()
{
return $this->paymentToken;
}

/**
* @param string|null $paymentToken
*
* @return CustomerProfileData
*/
public function setPaymentToken($paymentToken)
{
$this->paymentToken = $paymentToken;
return $this;
}

/**
* @return bool
*/
Expand All @@ -82,5 +106,4 @@ public function setMarkAsPreferred($markAsPreferred)
$this->markAsPreferred = $markAsPreferred;
return $this;
}

}
}
1 change: 1 addition & 0 deletions src/Json/JsonParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ protected function parseCustomerProfileData($data){
$customerProfileData = new CustomerProfileData();
$customerProfileData->setProfileGuid($this->arrGet($data, 'profileGuid'));
$customerProfileData->setCustomerIdentification($this->arrGet($data, 'customerIdentification'));
$customerProfileData->setPaymentToken($this->arrGet($data, 'paymentToken'));

return $customerProfileData;
}
Expand Down

0 comments on commit 762e19b

Please sign in to comment.