1 | <?php |
||
19 | class Gateway extends AbstractGateway |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 2 | public function getName() |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 58 | public function getDefaultParameters() |
|
42 | |||
43 | /** |
||
44 | * Get the unified purse. |
||
45 | * |
||
46 | * @return string merchant purse |
||
47 | */ |
||
48 | 14 | public function getPurse() |
|
52 | |||
53 | /** |
||
54 | * Set the unified purse. |
||
55 | * |
||
56 | * @param $value |
||
57 | * @return self |
||
58 | */ |
||
59 | 58 | public function setPurse($value) |
|
63 | |||
64 | /** |
||
65 | * Get the unified secret. |
||
66 | * @return string merchant secret - sign key |
||
67 | */ |
||
68 | public function getSecret() |
||
72 | |||
73 | /** |
||
74 | * Set the unified secret. |
||
75 | * @param string $value merchant secret - sign key |
||
76 | * @return self |
||
77 | */ |
||
78 | public function setSecret($value) |
||
82 | |||
83 | /** |
||
84 | * Get the merchant purse. |
||
85 | * |
||
86 | * @return string merchant purse |
||
87 | */ |
||
88 | 16 | public function getCheckoutId() |
|
92 | |||
93 | /** |
||
94 | * Set the merchant purse. |
||
95 | * |
||
96 | * @param string $value merchant purse |
||
97 | * |
||
98 | * @return self |
||
99 | */ |
||
100 | 58 | public function setCheckoutId($value) |
|
104 | |||
105 | /** |
||
106 | * Get the sign algorithm. |
||
107 | * |
||
108 | * @return string sign algorithm |
||
109 | */ |
||
110 | 2 | public function getSignAlgorithm() |
|
114 | |||
115 | /** |
||
116 | * Set the sign algorithm. |
||
117 | * |
||
118 | * @param string $value sign algorithm |
||
119 | * |
||
120 | * @return self |
||
121 | */ |
||
122 | 6 | public function setSignAlgorithm($value) |
|
126 | |||
127 | /** |
||
128 | * Get the sign key. |
||
129 | * |
||
130 | * @return string sign key |
||
131 | */ |
||
132 | 4 | public function getSignKey() |
|
136 | |||
137 | /** |
||
138 | * Set the sign key. |
||
139 | * |
||
140 | * @param string $value sign key |
||
141 | * |
||
142 | * @return self |
||
143 | */ |
||
144 | 58 | public function setSignKey($value) |
|
148 | |||
149 | /** |
||
150 | * Get the test key. |
||
151 | * |
||
152 | * @return string test key |
||
153 | */ |
||
154 | 4 | public function getTestKey() |
|
158 | |||
159 | /** |
||
160 | * Set the test key. |
||
161 | * |
||
162 | * @param string $value test key |
||
163 | * |
||
164 | * @return self |
||
165 | */ |
||
166 | 58 | public function setTestKey($value) |
|
170 | |||
171 | /** |
||
172 | * @param array $parameters |
||
173 | * |
||
174 | * @return \Omnipay\InterKassa\Message\PurchaseRequest|\Omnipay\InterKassa\Message\OldPurchaseRequest |
||
175 | */ |
||
176 | 6 | public function purchase(array $parameters = []) |
|
186 | |||
187 | /** |
||
188 | * @param array $parameters |
||
189 | * |
||
190 | * @return \Omnipay\InterKassa\Message\CompletePurchaseRequest|\Omnipay\InterKassa\Message\OldCompletePurchaseRequest |
||
191 | */ |
||
192 | 6 | public function completePurchase(array $parameters = []) |
|
202 | |||
203 | /** |
||
204 | * Whether the request is designed for API v2. |
||
205 | * @return boolean |
||
206 | */ |
||
207 | 12 | public function isOldApi() |
|
211 | } |
||
212 |