1 | <?php |
||
15 | class RefundRequest 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ề số tiền cần hoàn trả. |
||
56 | * Đây là phương thức ánh xạ của [[getAmount()]]. |
||
57 | * |
||
58 | * @return null|string |
||
59 | * @see getAmount |
||
60 | */ |
||
61 | public function getVnpAmount(): ?string |
||
65 | |||
66 | /** |
||
67 | * Thiết lập số tiền hoàn trả. |
||
68 | * Đây là phương thức ánh xạ của [[setAmount()]]. |
||
69 | * |
||
70 | * @param null|string $number |
||
71 | * @return $this |
||
72 | * @see setAmount |
||
73 | */ |
||
74 | public function setVnpAmount(?string $number) |
||
78 | |||
79 | /** |
||
80 | * Trả về hình thức hoàn tiền. |
||
81 | * |
||
82 | * @return null|string |
||
83 | */ |
||
84 | public function getVnpTransactionType(): ?string |
||
88 | |||
89 | /** |
||
90 | * Thiết lập hình thức hoàn tiền. |
||
91 | * |
||
92 | * @param null|string $type |
||
93 | * @return $this |
||
94 | */ |
||
95 | public function setVnpTransactionType(?string $type) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function getAmount(): ?string |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function setAmount($value) |
||
115 | |||
116 | /** |
||
117 | * Trả về thời gian phát sinh giao dịch tại VNPay. |
||
118 | * |
||
119 | * @return null|string |
||
120 | */ |
||
121 | public function getVnpTransDate(): ?string |
||
125 | |||
126 | /** |
||
127 | * Thiết lập thời gian phát sinh giao dịch tại VNPay. |
||
128 | * |
||
129 | * @param null|string $date |
||
130 | * @return $this |
||
131 | */ |
||
132 | public function setVnpTransDate(?string $date) |
||
136 | |||
137 | /** |
||
138 | * {@inheritdoc} |
||
139 | */ |
||
140 | protected function getSignatureParameters(): array |
||
147 | } |
||
148 |