1 | <?php |
||
20 | class Gateway extends AbstractGateway |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 2 | public function getName() |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 58 | public function getDefaultParameters() |
|
43 | |||
44 | /** |
||
45 | * Get the unified purse. |
||
46 | * |
||
47 | * @return string merchant purse |
||
48 | */ |
||
49 | 14 | public function getPurse() |
|
53 | |||
54 | /** |
||
55 | * Set the unified purse. |
||
56 | * |
||
57 | * @param $value |
||
58 | * @return self |
||
59 | */ |
||
60 | 58 | public function setPurse($value) |
|
64 | |||
65 | /** |
||
66 | * Get the merchant purse. |
||
67 | * |
||
68 | * @return string merchant purse |
||
69 | */ |
||
70 | 16 | public function getCheckoutId() |
|
74 | |||
75 | /** |
||
76 | * Set the merchant purse. |
||
77 | * |
||
78 | * @param string $value merchant purse |
||
79 | * |
||
80 | * @return self |
||
81 | */ |
||
82 | 58 | public function setCheckoutId($value) |
|
86 | |||
87 | /** |
||
88 | * Get the sign algorithm. |
||
89 | * |
||
90 | * @return string sign algorithm |
||
91 | */ |
||
92 | 2 | public function getSignAlgorithm() |
|
96 | |||
97 | /** |
||
98 | * Set the sign algorithm. |
||
99 | * |
||
100 | * @param string $value sign algorithm |
||
101 | * |
||
102 | * @return self |
||
103 | */ |
||
104 | 6 | public function setSignAlgorithm($value) |
|
108 | |||
109 | /** |
||
110 | * Get the sign key. |
||
111 | * |
||
112 | * @return string sign key |
||
113 | */ |
||
114 | 4 | public function getSignKey() |
|
118 | |||
119 | /** |
||
120 | * Set the sign key. |
||
121 | * |
||
122 | * @param string $value sign key |
||
123 | * |
||
124 | * @return self |
||
125 | */ |
||
126 | 58 | public function setSignKey($value) |
|
130 | |||
131 | /** |
||
132 | * Get the test key. |
||
133 | * |
||
134 | * @return string test key |
||
135 | */ |
||
136 | 4 | public function getTestKey() |
|
140 | |||
141 | /** |
||
142 | * Set the test key. |
||
143 | * |
||
144 | * @param string $value test key |
||
145 | * |
||
146 | * @return self |
||
147 | */ |
||
148 | 58 | public function setTestKey($value) |
|
152 | |||
153 | /** |
||
154 | * @param array $parameters |
||
155 | * |
||
156 | * @return \Omnipay\InterKassa\Message\PurchaseRequest|\Omnipay\InterKassa\Message\OldPurchaseRequest |
||
157 | */ |
||
158 | 6 | public function purchase(array $parameters = []) |
|
168 | |||
169 | /** |
||
170 | * @param array $parameters |
||
171 | * |
||
172 | * @return \Omnipay\InterKassa\Message\CompletePurchaseRequest|\Omnipay\InterKassa\Message\OldCompletePurchaseRequest |
||
173 | */ |
||
174 | 6 | public function completePurchase(array $parameters = []) |
|
184 | |||
185 | /** |
||
186 | * Whether the request is designed for API v2. |
||
187 | * @return boolean |
||
188 | */ |
||
189 | 12 | public function isOldApi() |
|
193 | } |
||
194 |