Skip to content

Commit 6959bf6

Browse files
committed
uid to transactionReference
1 parent 18e704a commit 6959bf6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Message/CompletePurchaseRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function getData()
258258
'key' => $this->getKey(),
259259
'prc' => $this->getPrc(),
260260
'finishtime' => $this->getFinishtime(),
261-
'uid' => $this->getUid(),
261+
'uid' => $this->getTransactionReference(),
262262
'order_id' => $this->getOrderId(),
263263
'user_id' => $this->getUserId(),
264264
'cost' => $this->getCost(),

src/Message/FetchTransactionRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class FetchTransactionRequest extends AbstractRequest
1313

1414
public function getData()
1515
{
16-
$this->validate('uid', 'key');
16+
$this->validate('transactionReference', 'key');
1717

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

2121
protected function createBody(Encryption $encryption, array $data)

src/Message/RefundRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function getInvoiceState()
3939

4040
public function getData()
4141
{
42-
$this->validate('key', 'uid', 'amount');
42+
$this->validate('key', 'transactionReference', 'amount');
4343

4444
return [
4545
'key' => $this->getKey(),
46-
'uid' => $this->getUid(),
46+
'uid' => $this->getTransactionReference(),
4747
'cost' => $this->getAmount(),
4848
'invoice_state' => $this->getInvoiceState(),
4949
];

src/Traits/HasUid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ trait HasUid
1212
*/
1313
public function setUid($value)
1414
{
15-
return $this->setParameter('uid', $value);
15+
return $this->setTransactionReference($value);
1616
}
1717

1818
/**
1919
* @return string
2020
*/
2121
public function getUid()
2222
{
23-
return $this->getParameter('uid');
23+
return $this->getTransactionReference();
2424
}
2525
}

0 commit comments

Comments
 (0)