1 | <?php |
||
10 | class Gateway extends AbstractGateway |
||
11 | { |
||
12 | 3 | public function getName() |
|
16 | |||
17 | /** |
||
18 | * Get the gateway parameters. |
||
19 | * |
||
20 | * @return array |
||
21 | */ |
||
22 | 90 | public function getDefaultParameters() |
|
23 | { |
||
24 | return array( |
||
25 | 90 | 'integration_key' => '', |
|
26 | 'test_mode' => false, |
||
27 | ); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the gateway Integration Key. |
||
32 | * |
||
33 | * Authentication is by means of a single secret API key set as |
||
34 | * the integrationKey parameter when creating the gateway object. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 3 | public function getIntegrationKey() |
|
42 | |||
43 | /** |
||
44 | * Set Integration key |
||
45 | * |
||
46 | * @param string $value |
||
47 | * @return Gateway provides a fluent interface. |
||
48 | */ |
||
49 | 18 | public function setIntegrationKey($value) |
|
53 | |||
54 | |||
55 | /** |
||
56 | * Authorize Request. |
||
57 | * |
||
58 | * @param array $parameters |
||
59 | * |
||
60 | * @return \Omnipay\Ebanx\Message\AuthorizeRequest |
||
61 | */ |
||
62 | 9 | public function authorize(array $parameters = array()) |
|
66 | |||
67 | |||
68 | /** |
||
69 | * Capture Request. |
||
70 | * |
||
71 | * @param array $parameters |
||
72 | * |
||
73 | * @return \Omnipay\Ebanx\Message\CaptureRequest |
||
74 | */ |
||
75 | 9 | public function capture(array $parameters = array()) |
|
79 | |||
80 | /** |
||
81 | * Cancel Request. |
||
82 | * |
||
83 | * @param array $parameters |
||
84 | * |
||
85 | * @return \Omnipay\Ebanx\Message\CancelRequest |
||
86 | */ |
||
87 | 3 | public function cancel(array $parameters = array()) |
|
88 | { |
||
89 | 3 | return $this->createRequest('\Omnipay\Ebanx\Message\CancelRequest', $parameters); |
|
90 | } |
||
91 | |||
92 | /** |
||
93 | * Refund Request. |
||
94 | * |
||
95 | * @param array $parameters |
||
96 | * |
||
97 | * @return \Omnipay\Ebanx\Message\RefundRequest |
||
98 | */ |
||
99 | 9 | public function refund(array $parameters = array()) |
|
103 | |||
104 | /** |
||
105 | * Cancel Refund Request. |
||
106 | * |
||
107 | * @param array $parameters |
||
108 | * |
||
109 | * @return \Omnipay\Ebanx\Message\CancelRefundRequest |
||
110 | */ |
||
111 | 3 | public function cancelRefund(array $parameters = array()) |
|
112 | { |
||
113 | 3 | return $this->createRequest('\Omnipay\Ebanx\Message\CancelRefundRequest', $parameters); |
|
114 | } |
||
115 | |||
116 | /** |
||
117 | * Fetch Transaction Request. |
||
118 | * |
||
119 | * @param array $parameters |
||
120 | * |
||
121 | * @return \Omnipay\Ebanx\Message\FetchTransactionRequest |
||
122 | */ |
||
123 | 3 | public function fetchTransaction(array $parameters = array()) |
|
127 | |||
128 | /** |
||
129 | * Purchase Request. |
||
130 | * |
||
131 | * @param array $parameters |
||
132 | * |
||
133 | * @return \Omnipay\Ebanx\Message\PurchaseRequest |
||
134 | */ |
||
135 | 9 | public function purchase(array $parameters = array()) |
|
139 | |||
140 | |||
141 | /** |
||
142 | * Payment Page Request. |
||
143 | * |
||
144 | * @param array $parameters |
||
145 | * |
||
146 | * @return \Omnipay\Ebanx\Message\PaymentPageRequest |
||
147 | */ |
||
148 | 3 | public function paymentPage(array $parameters = array()) |
|
149 | { |
||
150 | 3 | return $this->createRequest('\Omnipay\Ebanx\Message\PaymentPageRequest', $parameters); |
|
151 | } |
||
152 | |||
153 | /** |
||
154 | * Create Card Request. |
||
155 | * |
||
156 | * @param array $parameters |
||
157 | * |
||
158 | * @return \Omnipay\Ebanx\Message\CreateCardRequest |
||
159 | */ |
||
160 | 9 | public function createCard(array $parameters = array()) |
|
164 | } |
||
165 |