Skip to content

Commit

Permalink
Merge pull request #3 from navihtot/master
Browse files Browse the repository at this point in the history
added customer name to CardTokenRequest
  • Loading branch information
navihtot committed Sep 12, 2017
2 parents c9c82bc + 4d4226b commit 292de33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ public function getEmail()
return $this->getParameter('email');
}

public function setCustomerName($value)
{
return $this->setParameter('customerName', $value);
}

public function getCustomerName()
{
return $this->getParameter('customerName');
}

public function sendRequest($data)
{
// don't throw exceptions for 4xx errors
Expand Down
2 changes: 1 addition & 1 deletion src/Message/CardTokenPurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function getData()
$data['metadata'] = $this->getMetadata();
$data['cardToken'] = $this->getCardToken();
$data['email'] = $this->getEmail();

$data['customerName'] = $this->getCustomerName();

if ($udf = $this->getUdfValues()) {
$data['udf1'] = $udf[0];
Expand Down

0 comments on commit 292de33

Please sign in to comment.