1 | <?php |
||
15 | class QueryTransactionRequest extends AbstractSignatureRequest |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $productionEndpoint = 'https://merchant.vnpay.vn/merchant_webapi/merchant.html'; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | protected $testEndpoint = 'https://sandbox.vnpayment.vn/merchant_webapi/merchant.html'; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function initialize(array $parameters = []) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | * @throws \Omnipay\Common\Exception\InvalidResponseException |
||
42 | */ |
||
43 | public function sendData($data): SignatureResponse |
||
53 | |||
54 | /** |
||
55 | * Trả về mã giao dịch của VNPay. |
||
56 | * Đây là phương thức ánh xạ của [[getTransactionReference()]]. |
||
57 | * |
||
58 | * @return null|string |
||
59 | * @see getTransactionReference |
||
60 | */ |
||
61 | public function getVnpTransactionNo(): ?string |
||
65 | |||
66 | /** |
||
67 | * Thiết lập mã giao dịch của VNPay. |
||
68 | * Đây là phương thức ánh xạ của [[setTransactionReference()]]. |
||
69 | * |
||
70 | * @param null|string $no |
||
71 | * @return $this |
||
72 | * @see setTransactionReference |
||
73 | */ |
||
74 | public function setVnpTransactionNo(?string $no) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getTransactionReference(): ?string |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function setTransactionReference($value) |
||
94 | |||
95 | /** |
||
96 | * Trả về thời gian phát sinh giao dịch tại VNPay. |
||
97 | * |
||
98 | * @return null|string |
||
99 | */ |
||
100 | public function getVnpTransDate(): ?string |
||
104 | |||
105 | /** |
||
106 | * Thiết lập thời gian phát sinh giao dịch tại VNPay. |
||
107 | * |
||
108 | * @param null|string $date |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setVnpTransDate(?string $date) |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | protected function getSignatureParameters(): array |
||
132 | } |
||
133 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: