1 | <?php |
||
17 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | protected $zeroAmountAllowed = false; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $endpoint = 'https://sci.interkassa.com/'; |
||
28 | |||
29 | /** |
||
30 | * Get the unified purse. |
||
31 | * |
||
32 | * @return string merchant purse |
||
33 | */ |
||
34 | public function getPurse( ) |
||
38 | |||
39 | /** |
||
40 | * Set the unified purse. |
||
41 | * |
||
42 | * @param $value |
||
43 | * @return self |
||
44 | */ |
||
45 | public function setPurse( $value ) |
||
49 | |||
50 | /** |
||
51 | * Get the merchant purse. |
||
52 | * |
||
53 | * @return string merchant purse |
||
54 | */ |
||
55 | public function getCheckoutId( ) |
||
59 | |||
60 | /** |
||
61 | * Set the merchant purse. |
||
62 | * |
||
63 | * @param string $purse merchant purse |
||
64 | * |
||
65 | * @return self |
||
66 | */ |
||
67 | public function setCheckoutId( $purse ) |
||
71 | |||
72 | /** |
||
73 | * Get the sign algorithm. |
||
74 | * |
||
75 | * @return string sign algorithm |
||
76 | */ |
||
77 | public function getSignAlgorithm( ) |
||
81 | |||
82 | /** |
||
83 | * Set the sign algorithm. |
||
84 | * |
||
85 | * @param string $value sign algorithm |
||
86 | * |
||
87 | * @return self |
||
88 | */ |
||
89 | public function setSignAlgorithm( $value ) |
||
93 | |||
94 | /** |
||
95 | * Get the sign key. |
||
96 | * |
||
97 | * @return string sign key |
||
98 | */ |
||
99 | public function getSignKey( ) |
||
103 | |||
104 | /** |
||
105 | * Set the sign key. |
||
106 | * |
||
107 | * @param string $value sign key |
||
108 | * |
||
109 | * @return self |
||
110 | */ |
||
111 | public function setSignKey( $value ) |
||
115 | |||
116 | /** |
||
117 | * Get the test key. |
||
118 | * |
||
119 | * @return string test key |
||
120 | */ |
||
121 | public function getTestKey( ) |
||
125 | |||
126 | /** |
||
127 | * Set the test key. |
||
128 | * |
||
129 | * @param string $value test key |
||
130 | * |
||
131 | * @return self |
||
132 | */ |
||
133 | public function setTestKey( $value ) |
||
137 | |||
138 | /** |
||
139 | * Get the method for success return. |
||
140 | * |
||
141 | * @return mixed |
||
142 | */ |
||
143 | public function getReturnMethod( ) |
||
147 | |||
148 | /** |
||
149 | * Sets the method for success return. |
||
150 | * |
||
151 | * @param $returnMethod |
||
152 | * @return \Omnipay\Common\Message\AbstractRequest |
||
153 | */ |
||
154 | public function setReturnMethod( $returnMethod ) |
||
158 | |||
159 | /** |
||
160 | * Get the method for canceled payment return. |
||
161 | * |
||
162 | * @return mixed |
||
163 | */ |
||
164 | public function getCancelMethod( ) |
||
168 | |||
169 | /** |
||
170 | * Sets the method for canceled payment return. |
||
171 | * |
||
172 | * @param $cancelMethod |
||
173 | * @return \Omnipay\Common\Message\AbstractRequest |
||
174 | */ |
||
175 | public function setCancelMethod( $cancelMethod ) |
||
179 | |||
180 | /** |
||
181 | * Get the method for request notify. |
||
182 | * |
||
183 | * @return mixed |
||
184 | */ |
||
185 | public function getNotifyMethod() |
||
189 | |||
190 | /** |
||
191 | * Sets the method for request notify. |
||
192 | * |
||
193 | * @param $notifyMethod |
||
194 | * @return \Omnipay\Common\Message\AbstractRequest |
||
195 | */ |
||
196 | public function setNotifyMethod( $notifyMethod ) |
||
200 | |||
201 | /** |
||
202 | * Calculates sign for the $data. |
||
203 | * |
||
204 | * @param array $data |
||
205 | * @param string $signKey |
||
206 | * @return string |
||
207 | */ |
||
208 | public function calculateSign( $data, $signKey ) |
||
217 | |||
218 | /** |
||
219 | * Get the data for this request. |
||
220 | * @throws InvalidResponseException |
||
221 | * @throws \Omnipay\Common\Exception\InvalidRequestException |
||
222 | * @return array request data |
||
223 | */ |
||
224 | public function getData( ) |
||
247 | } |