-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathRequestToPay.php
More file actions
56 lines (42 loc) · 1.32 KB
/
RequestToPay.php
File metadata and controls
56 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace MomoApi\models;
class RequestToPay implements \JsonSerializable
{
public $payer;
public $payeeNote;
public $payerMessage;
public $externalId;
public $currency;
public $amount;
public $status;
public $financialTransactionId;
public function __construct($payer, $payeeNote, $payerMessage, $externalId, $currency, $amount, $status, $financialTransactionId)
{
$this->payer = $payer;
$this->payeeNote = $payeeNote;
$this->payerMessage = $payerMessage;
$this->externalId = $externalId;
$this->currency = $currency;
$this->amount = $amount;
$this->status = $status;
$this->financialTransactionId = $financialTransactionId;
}
public function jsonSerialize()
{
$data = array(
'payer' => array($this->payer['partyIdType'], $this->payer['partyId']),
'payeeNote' => $this->payeeNote,
'payerMessage' => $this->payerMessage,
'externalId' => $this->externalId,
'currency' => $this->currency,
'amount' => $this->amount,
'status' => $this->status,
'financialTransactionId' => $this->financialTransactionId
);
return $data;
}
public function getStatus()
{
return $this->status;
}
}