1 | <?php |
||
21 | class Gateway extends AbstractGateway |
||
22 | { |
||
23 | use Concerns\Parameters; |
||
24 | use Concerns\ParametersNormalization; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function getName(): string |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function initialize(array $parameters = []) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getDefaultParameters() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * @return \Omnipay\Common\Message\AbstractRequest|PurchaseRequest |
||
57 | */ |
||
58 | public function purchase(array $options = []): PurchaseRequest |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest |
||
66 | */ |
||
67 | public function completePurchase(array $options = []): IncomingRequest |
||
71 | |||
72 | /** |
||
73 | * Tạo yêu cầu xác minh IPN gửi từ VNPay. |
||
74 | * |
||
75 | * @param array $options |
||
76 | * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest |
||
77 | */ |
||
78 | public function notification(array $options = []): IncomingRequest |
||
82 | |||
83 | /** |
||
84 | * Tạo yêu cầu truy vấn thông tin giao dịch đến VNPay. |
||
85 | * |
||
86 | * @param array $options |
||
87 | * @return \Omnipay\Common\Message\AbstractRequest|QueryTransactionRequest |
||
88 | */ |
||
89 | public function queryTransaction(array $options = []): QueryTransactionRequest |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | * @return \Omnipay\Common\Message\AbstractRequest|RefundRequest |
||
97 | */ |
||
98 | public function refund(array $options = []): RefundRequest |
||
102 | } |
||
103 |