1 | <?php |
||
23 | class Gateway extends AbstractGateway |
||
24 | { |
||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 2 | public function getName() |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 42 | public function getDefaultParameters() |
|
46 | |||
47 | /** |
||
48 | * Get the unified purse. |
||
49 | * |
||
50 | * @return string merchant purse |
||
51 | */ |
||
52 | 14 | public function getPurse() |
|
56 | |||
57 | /** |
||
58 | * Set the unified purse. |
||
59 | * |
||
60 | * @param $value |
||
61 | * @return self |
||
62 | */ |
||
63 | 42 | public function setPurse($value) |
|
67 | |||
68 | /** |
||
69 | * Get the unified secret. |
||
70 | * @return string merchant secret - sign key |
||
71 | */ |
||
72 | public function getSecret() |
||
76 | |||
77 | /** |
||
78 | * Set the unified secret. |
||
79 | * @param string $value merchant secret - sign key |
||
80 | * @return self |
||
81 | */ |
||
82 | public function setSecret($value) |
||
86 | |||
87 | /** |
||
88 | * Get the merchant purse. |
||
89 | * |
||
90 | * @return string merchant purse |
||
91 | */ |
||
92 | 16 | public function getCheckoutId() |
|
96 | |||
97 | /** |
||
98 | * Set the merchant purse. |
||
99 | * |
||
100 | * @param string $value merchant purse |
||
101 | * |
||
102 | * @return self |
||
103 | */ |
||
104 | 42 | public function setCheckoutId($value) |
|
108 | |||
109 | /** |
||
110 | * Get the sign algorithm. |
||
111 | * |
||
112 | * @return string sign algorithm |
||
113 | */ |
||
114 | 2 | public function getSignAlgorithm() |
|
118 | |||
119 | /** |
||
120 | * Set the sign algorithm. |
||
121 | * |
||
122 | * @param string $value sign algorithm |
||
123 | * |
||
124 | * @return self |
||
125 | */ |
||
126 | 6 | public function setSignAlgorithm($value) |
|
130 | |||
131 | /** |
||
132 | * Get the sign key. |
||
133 | * |
||
134 | * @return string sign key |
||
135 | */ |
||
136 | 4 | public function getSignKey() |
|
140 | |||
141 | /** |
||
142 | * Set the sign key. |
||
143 | * |
||
144 | * @param string $value sign key |
||
145 | * |
||
146 | * @return self |
||
147 | */ |
||
148 | 42 | public function setSignKey($value) |
|
152 | |||
153 | /** |
||
154 | * Get the test key. |
||
155 | * |
||
156 | * @return string test key |
||
157 | */ |
||
158 | 4 | public function getTestKey() |
|
162 | |||
163 | /** |
||
164 | * Set the test key. |
||
165 | * |
||
166 | * @param string $value test key |
||
167 | * |
||
168 | * @return self |
||
169 | */ |
||
170 | 42 | public function setTestKey($value) |
|
174 | |||
175 | /** |
||
176 | * @param array $parameters |
||
177 | * |
||
178 | * @return \Omnipay\InterKassa\Message\PurchaseRequest|\Omnipay\InterKassa\Message\OldPurchaseRequest |
||
179 | */ |
||
180 | 6 | public function purchase(array $parameters = []) |
|
190 | |||
191 | /** |
||
192 | * @param array $parameters |
||
193 | * |
||
194 | * @return \Omnipay\InterKassa\Message\CompletePurchaseRequest|\Omnipay\InterKassa\Message\OldCompletePurchaseRequest |
||
195 | */ |
||
196 | 6 | public function completePurchase(array $parameters = []) |
|
206 | |||
207 | /** |
||
208 | * Whether the request is designed for API v2. |
||
209 | * @return boolean |
||
210 | */ |
||
211 | 12 | public function isOldApi() |
|
215 | } |
||
216 |