Skip to content

Commit

Permalink
uid to transactionReference
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Mar 24, 2023
1 parent 18e704a commit 6959bf6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Message/CompletePurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function getData()
'key' => $this->getKey(),
'prc' => $this->getPrc(),
'finishtime' => $this->getFinishtime(),
'uid' => $this->getUid(),
'uid' => $this->getTransactionReference(),
'order_id' => $this->getOrderId(),
'user_id' => $this->getUserId(),
'cost' => $this->getCost(),
Expand Down
4 changes: 2 additions & 2 deletions src/Message/FetchTransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class FetchTransactionRequest extends AbstractRequest

public function getData()
{
$this->validate('uid', 'key');
$this->validate('transactionReference', 'key');

return ['uid' => $this->getUid(), 'key' => $this->getKey()];
return ['uid' => $this->getTransactionReference(), 'key' => $this->getKey()];
}

protected function createBody(Encryption $encryption, array $data)
Expand Down
4 changes: 2 additions & 2 deletions src/Message/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public function getInvoiceState()

public function getData()
{
$this->validate('key', 'uid', 'amount');
$this->validate('key', 'transactionReference', 'amount');

return [
'key' => $this->getKey(),
'uid' => $this->getUid(),
'uid' => $this->getTransactionReference(),
'cost' => $this->getAmount(),
'invoice_state' => $this->getInvoiceState(),
];
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/HasUid.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ trait HasUid
*/
public function setUid($value)
{
return $this->setParameter('uid', $value);
return $this->setTransactionReference($value);
}

/**
* @return string
*/
public function getUid()
{
return $this->getParameter('uid');
return $this->getTransactionReference();
}
}

0 comments on commit 6959bf6

Please sign in to comment.