1 | <?php |
||
10 | class ChargeRequest |
||
11 | { |
||
12 | const VPC_VERSION = "vpc_Version"; |
||
13 | const COMMAND_TYPE = "vpc_Command"; |
||
14 | |||
15 | /** |
||
16 | * |
||
17 | * @var Card |
||
18 | */ |
||
19 | private $card; |
||
20 | |||
21 | /** |
||
22 | * |
||
23 | * @var Merchant |
||
24 | */ |
||
25 | private $merchant; |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @var TransactionSource |
||
30 | */ |
||
31 | private $transactionSource; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @var Payment */ |
||
36 | private $payment; |
||
37 | |||
38 | /** |
||
39 | * The value for this field is always 1 and is the same for test |
||
40 | * and live transactions. |
||
41 | * @var int |
||
42 | */ |
||
43 | private $version = 1; |
||
44 | |||
45 | /** |
||
46 | * The value for this field is always ‘pay’ and is the same for |
||
47 | * test and live transactions. |
||
48 | * @var string |
||
49 | */ |
||
50 | private $commandType = 'pay'; |
||
51 | |||
52 | 9 | public function __construct( |
|
65 | |||
66 | 9 | public static function create(array $params) : self |
|
75 | |||
76 | 6 | public function toArray() : array |
|
89 | |||
90 | 3 | public static function getFields(): array |
|
99 | } |
||
100 |