Skip to content

Commit 4ee4238

Browse files
committed
Updated Transaction Result
1 parent 3d1cde1 commit 4ee4238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Classes/TransactionResult.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class TransactionResult {
1010
protected $data;
1111

1212
/**
13-
* @param int $id
13+
* @param string $id
1414
* @param string $ident
1515
* @param float $amount
1616
* @param string $status
1717
* @param string $action payment|refund|cancel|signup|fail|demo
1818
* @param array $data
1919
*/
20-
public function __construct(int $id, string $ident, float $amount, string $status, string $action, array $data){
20+
public function __construct(string $id, string $ident, float $amount, string $status, string $action, array $data){
2121
$this->id = $id;
2222
$this->ident = $ident;
2323
$this->amount = $amount;
@@ -29,7 +29,7 @@ public function __construct(int $id, string $ident, float $amount, string $statu
2929
/**
3030
* Get Transaction Result Id. Should be same as id sent to complete function
3131
*
32-
* @return int
32+
* @return string
3333
*/
3434
public function getId(){
3535
return $this->id;

0 commit comments

Comments
 (0)