Morningtime_Internetkassa - Version 1.3.2.4

Version Notes

Stable Release

Download this release

Release Info

Developer Magento Core Team
Extension Morningtime_Internetkassa
Version 1.3.2.4
Comparing to
See all releases


Version 1.3.2.4

Files changed (23) hide show
  1. app/code/community/Morningtime/Internetkassa/Block/Form.php +25 -0
  2. app/code/community/Morningtime/Internetkassa/Block/Info.php +50 -0
  3. app/code/community/Morningtime/Internetkassa/Block/Redirect.php +42 -0
  4. app/code/community/Morningtime/Internetkassa/Helper/Data.php +21 -0
  5. app/code/community/Morningtime/Internetkassa/Helper/ViewerList.php +308 -0
  6. app/code/community/Morningtime/Internetkassa/Model/Internetkassa.php +655 -0
  7. app/code/community/Morningtime/Internetkassa/Model/Source/Currencies.php +49 -0
  8. app/code/community/Morningtime/Internetkassa/Model/Source/Issuers.php +37 -0
  9. app/code/community/Morningtime/Internetkassa/Model/Source/Languages.php +42 -0
  10. app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethod.php +103 -0
  11. app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethods.php +42 -0
  12. app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethodsList.php +273 -0
  13. app/code/community/Morningtime/Internetkassa/controllers/OgoneController.php +469 -0
  14. app/code/community/Morningtime/Internetkassa/etc/config.xml +182 -0
  15. app/code/community/Morningtime/Internetkassa/etc/system.xml +251 -0
  16. app/design/adminhtml/default/default/template/morningtime/internetkassa/info.phtml +27 -0
  17. app/design/adminhtml/default/default/template/morningtime/internetkassa/pdf/info.phtml +24 -0
  18. app/design/frontend/default/default/template/morningtime/internetkassa/form.phtml +47 -0
  19. app/design/frontend/default/default/template/morningtime/internetkassa/info.phtml +25 -0
  20. app/etc/modules/Morningtime_Internetkassa.xml +30 -0
  21. app/locale/en_US/Morningtime_Internetkassa.csv +24 -0
  22. app/locale/nl_NL/Morningtime_Internetkassa.csv +24 -0
  23. package.xml +78 -0
app/code/community/Morningtime/Internetkassa/Block/Form.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Morningtime_Internetkassa_Block_Form extends Mage_Payment_Block_Form
19
+ {
20
+ protected function _construct()
21
+ {
22
+ $this->setTemplate('morningtime/internetkassa/form.phtml');
23
+ parent::_construct();
24
+ }
25
+ }
app/code/community/Morningtime/Internetkassa/Block/Info.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Morningtime_Internetkassa_Block_Info extends Mage_Payment_Block_Info
19
+ {
20
+ protected function _construct()
21
+ {
22
+ parent::_construct();
23
+ $this->setTemplate('morningtime/internetkassa/info.phtml');
24
+ }
25
+
26
+ public function toPdf()
27
+ {
28
+ $this->setTemplate('morningtime/internetkassa/pdf/info.phtml');
29
+ return $this->toHtml();
30
+ }
31
+
32
+ /**
33
+ * Gets Payment Method Title
34
+ *
35
+ * @return string
36
+ */
37
+ public function getIssuerPaymentMethod()
38
+ {
39
+ $list = Mage::getModel('internetkassa/source_paymentMethodsList')->getPMList();
40
+ $ccType = $this->getInfo()->getCcType();
41
+
42
+ for ($i = 0; $i < sizeof($list); $i++) {
43
+ $pm = $list[$i];
44
+ if($pm->getPmName() == $ccType){
45
+ return $pm;
46
+ }
47
+ }
48
+ return false;
49
+ }
50
+ }
app/code/community/Morningtime/Internetkassa/Block/Redirect.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Morningtime_Internetkassa_Block_Redirect extends Mage_Core_Block_Abstract
19
+ {
20
+ protected function _toHtml()
21
+ {
22
+ $standard = Mage::getModel('internetkassa/internetkassa');
23
+ $form = new Varien_Data_Form();
24
+ $form->setAction($standard->getInternetkassaUrl())
25
+ ->setId('internetkassa_payment_checkout')
26
+ ->setName('internetkassa_payment_checkout')
27
+ ->setMethod('POST')
28
+ ->setUseContainer(true);
29
+
30
+ $form = $standard->addInternetkassaFields($form);
31
+
32
+ $formHTML = $form->toHtml();
33
+
34
+ $html = '<html><body>';
35
+ $html.= $this->__('You will be redirected to the Internetkassa in a few seconds.');
36
+ $html.= $formHTML;
37
+ $html.= '<script type="text/javascript">document.getElementById("internetkassa_payment_checkout").submit();</script>';
38
+ $html.= '</body></html>';
39
+
40
+ return $html;
41
+ }
42
+ }
app/code/community/Morningtime/Internetkassa/Helper/Data.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Morningtime_Internetkassa_Helper_Data extends Mage_Core_Helper_Abstract
19
+ {
20
+
21
+ }
app/code/community/Morningtime/Internetkassa/Helper/ViewerList.php ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * PaymentMethod model
20
+ *
21
+ * @author Morningtime
22
+ */
23
+
24
+ class Morningtime_Internetkassa_Helper_ViewerList extends Mage_Core_Helper_Abstract
25
+ {
26
+
27
+ public function getPMList(){
28
+
29
+ $pmList = array();
30
+ // Cards: General
31
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
32
+ ->setPmName('AIRPLUS')
33
+ ->setPmValue('CreditCard')
34
+ ->setPmBrand('AIRPLUS')
35
+ ->setPmUrlLogo('AIRPLUS_choice.gif')
36
+ ->setPmFamily('Cards: General');
37
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
38
+ ->setPmName('American Express')
39
+ ->setPmValue('CreditCard')
40
+ ->setPmBrand('American Express')
41
+ ->setPmUrlLogo('American Express_choice.gif')
42
+ ->setPmFamily('Cards: General');
43
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
44
+ ->setPmName('Aurora')
45
+ ->setPmValue('CreditCard')
46
+ ->setPmBrand('Aurora')
47
+ ->setPmUrlLogo('Aurora_choice.gif')
48
+ ->setPmFamily('Cards: General');
49
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
50
+ ->setPmName('Aurore')
51
+ ->setPmValue('CreditCard')
52
+ ->setPmBrand('Aurore')
53
+ ->setPmUrlLogo('Aurore_choice.gif')
54
+ ->setPmFamily('Cards: General');
55
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
56
+ ->setPmName('Cofinoga')
57
+ ->setPmValue('CreditCard')
58
+ ->setPmBrand('Cofinoga')
59
+ ->setPmUrlLogo('Cofinoga_choice.gif')
60
+ ->setPmFamily('Cards: General');
61
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
62
+ ->setPmName('Dankort')
63
+ ->setPmValue('CreditCard')
64
+ ->setPmBrand('Dankort')
65
+ ->setPmUrlLogo('Dankort_choice.gif')
66
+ ->setPmFamily('Cards: General');
67
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
68
+ ->setPmName('Diners Club')
69
+ ->setPmValue('CreditCard')
70
+ ->setPmBrand('Diners Club')
71
+ ->setPmUrlLogo('Diners Club_choice.gif')
72
+ ->setPmFamily('Cards: General');
73
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
74
+ ->setPmName('JCB')
75
+ ->setPmValue('CreditCard')
76
+ ->setPmBrand('JCB')
77
+ ->setPmUrlLogo('JCB_choice.gif')
78
+ ->setPmFamily('Cards: General');
79
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
80
+ ->setPmName('MaestroUK')
81
+ ->setPmValue('CreditCard')
82
+ ->setPmBrand('MaestroUK')
83
+ ->setPmUrlLogo('MaestroUK_choice.gif')
84
+ ->setPmFamily('Cards: General');
85
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
86
+ ->setPmName('MasterCard')
87
+ ->setPmValue('CreditCard')
88
+ ->setPmBrand('MasterCard')
89
+ ->setPmUrlLogo('MasterCard_choice.gif')
90
+ ->setPmFamily('Cards: General');
91
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
92
+ ->setPmName('Solo')
93
+ ->setPmValue('CreditCard')
94
+ ->setPmBrand('Solo')
95
+ ->setPmUrlLogo('Solo_choice.gif')
96
+ ->setPmFamily('Cards: General');
97
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
98
+ ->setPmName('UATP')
99
+ ->setPmValue('CreditCard')
100
+ ->setPmBrand('UATP')
101
+ ->setPmUrlLogo('UATP_choice.gif')
102
+ ->setPmFamily('Cards: General');
103
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
104
+ ->setPmName('VISA')
105
+ ->setPmValue('CreditCard')
106
+ ->setPmBrand('VISA')
107
+ ->setPmUrlLogo('VISA_choice.gif')
108
+ ->setPmFamily('Cards: General');
109
+
110
+ // Cards: exceptions
111
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
112
+ ->setPmName('BCMC')
113
+ ->setPmValue('CreditCard')
114
+ ->setPmBrand('BCMC')
115
+ ->setPmUrlLogo('BCMC_choice.gif')
116
+ ->setPmFamily('Cards: exceptions');
117
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
118
+ ->setPmName('Maestro')
119
+ ->setPmValue('CreditCard')
120
+ ->setPmBrand('Maestro')
121
+ ->setPmUrlLogo('Maestro_choice.gif')
122
+ ->setPmFamily('Cards: exceptions');
123
+
124
+ // Cards: Online Credit 
125
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
126
+ ->setPmName('NetReserve ')
127
+ ->setPmValue('CreditCard ')
128
+ ->setPmBrand('NetReserve ')
129
+ ->setPmUrlLogo('NetReserve_choice.gif')
130
+ ->setPmFamily('Cards: Online Credit ');
131
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
132
+ ->setPmName('UNEUROCOM ')
133
+ ->setPmValue('UNEUROCOM ')
134
+ ->setPmBrand('UNEUROCOM ')
135
+ ->setPmUrlLogo('UNEUROCOM_choice.gif')
136
+ ->setPmFamily('Cards: Online Credit ');
137
+
138
+
139
+ // WebBanking
140
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
141
+ ->setPmName('CBC Online')
142
+ ->setPmValue('CBC Online')
143
+ ->setPmBrand('CBC Online')
144
+ ->setPmUrlLogo('CBC Online_choice.gif')
145
+ ->setPmFamily('WebBanking');
146
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
147
+ ->setPmName('CENTEA Online')
148
+ ->setPmValue('CENTEA Online')
149
+ ->setPmBrand('CENTEA Online')
150
+ ->setPmUrlLogo('CENTEA Online_choice.gif')
151
+ ->setPmFamily('WebBanking');
152
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
153
+ ->setPmName('Dexia Direct Net')
154
+ ->setPmValue('Dexia Direct Net')
155
+ ->setPmBrand('Dexia Direct Net')
156
+ ->setPmUrlLogo('Dexia Direct Net_choice.gif')
157
+ ->setPmFamily('WebBanking');
158
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
159
+ ->setPmName('eDankort')
160
+ ->setPmValue('eDankort')
161
+ ->setPmBrand('eDankort')
162
+ ->setPmUrlLogo('eDankort_choice.gif')
163
+ ->setPmFamily('WebBanking');
164
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
165
+ ->setPmName('EPS')
166
+ ->setPmValue('EPS')
167
+ ->setPmBrand('EPS')
168
+ ->setPmUrlLogo('EPS_choice.gif')
169
+ ->setPmFamily('WebBanking');
170
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
171
+ ->setPmName('iDEAL')
172
+ ->setPmValue('iDEAL')
173
+ ->setPmBrand('iDEAL')
174
+ ->setPmUrlLogo('iDEAL_choice.gif')
175
+ ->setPmFamily('WebBanking');
176
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
177
+ ->setPmName('ING HomePay')
178
+ ->setPmValue('ING HomePay')
179
+ ->setPmBrand('ING HomePay')
180
+ ->setPmUrlLogo('ING HomePay_choice.gif')
181
+ ->setPmFamily('WebBanking');
182
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
183
+ ->setPmName('KBC Online')
184
+ ->setPmValue('KBC Online')
185
+ ->setPmBrand('KBC Online')
186
+ ->setPmUrlLogo('KBC Online_choice.gif')
187
+ ->setPmFamily('WebBanking');
188
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
189
+ ->setPmName('PostFinance Debit Direct')
190
+ ->setPmValue('PostFinance Debit Direct')
191
+ ->setPmBrand('PostFinance Debit Direct')
192
+ ->setPmUrlLogo('PostFinance Debit Direct_choice.gif')
193
+ ->setPmFamily('WebBanking');
194
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
195
+ ->setPmName('PostFinance yellownet')
196
+ ->setPmValue('PostFinance yellownet')
197
+ ->setPmBrand('PostFinance yellownet')
198
+ ->setPmUrlLogo('PostFinance yellownet_choice.gif')
199
+ ->setPmFamily('WebBanking');
200
+
201
+ // Direct Debits
202
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
203
+ ->setPmName('Direct Debits DE')
204
+ ->setPmValue('Direct Debits DE')
205
+ ->setPmBrand('Direct Debits DE')
206
+ ->setPmUrlLogo('Direct Debits DE_choice.gif')
207
+ ->setPmFamily('Direct Debits');
208
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
209
+ ->setPmName('Direct Debits NL')
210
+ ->setPmValue('Direct Debits NL')
211
+ ->setPmBrand('Direct Debits NL')
212
+ ->setPmUrlLogo('Direct Debits NL_choice.gif')
213
+ ->setPmFamily('Direct Debits');
214
+
215
+ // Offline payment
216
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
217
+ ->setPmName('Acceptgiro ')
218
+ ->setPmValue('Acceptgiro ')
219
+ ->setPmBrand('Acceptgiro ')
220
+ ->setPmUrlLogo('Acceptgiro _choice.gif')
221
+ ->setPmFamily('Offline payment ');
222
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
223
+ ->setPmName('Bank transfer ')
224
+ ->setPmValue('Bank transfer ')
225
+ ->setPmBrand('Bank transfer ')
226
+ ->setPmUrlLogo('Bank transfer _choice.gif')
227
+ ->setPmFamily('Offline payment ');
228
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
229
+ ->setPmName('Payment on Delivery ')
230
+ ->setPmValue('Payment on Delivery ')
231
+ ->setPmBrand('Payment on Delivery ')
232
+ ->setPmUrlLogo('Payment on Delivery _choice.gif')
233
+ ->setPmFamily('Offline payment ');
234
+
235
+
236
+ // Micro
237
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
238
+ ->setPmName('MiniTix')
239
+ ->setPmValue('MiniTix')
240
+ ->setPmBrand('MiniTix')
241
+ ->setPmUrlLogo('MiniTix_choice.gif')
242
+ ->setPmFamily('Micro');
243
+
244
+ // Mobile
245
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
246
+ ->setPmName('TUNZ')
247
+ ->setPmValue('TUNZ')
248
+ ->setPmBrand('TUNZ')
249
+ ->setPmUrlLogo('TUNZ_choice.gif')
250
+ ->setPmFamily('Mobile');
251
+
252
+ // Others
253
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
254
+ ->setPmName('PAYPAL')
255
+ ->setPmValue('PAYPAL')
256
+ ->setPmBrand('PAYPAL')
257
+ ->setPmUrlLogo('PAYPAL_choice.gif')
258
+ ->setPmFamily('Others');
259
+ $pmList[] = Mage::getModel('internetkassa/paymentMethod')
260
+ ->setPmName('Wallie')
261
+ ->setPmValue('Wallie')
262
+ ->setPmBrand('Wallie')
263
+ ->setPmUrlLogo('Wallie_choice.gif')
264
+ ->setPmFamily('Others');
265
+
266
+ return $pmList;
267
+ }
268
+
269
+ public function getLangList(){
270
+
271
+ return array(
272
+ array('value' => 'en_US', 'label' => Mage::helper('internetkassa')->__('English (default)')),
273
+ array('value' => 'fr_FR', 'label' => Mage::helper('internetkassa')->__('French')),
274
+ array('value' => 'nl_NL', 'label' => Mage::helper('internetkassa')->__('Dutch')),
275
+ array('value' => 'nl_BE', 'label' => Mage::helper('internetkassa')->__('Flemish')),
276
+ array('value' => 'it_IT', 'label' => Mage::helper('internetkassa')->__('Italian')),
277
+ array('value' => 'de_DE', 'label' => Mage::helper('internetkassa')->__('German')),
278
+ array('value' => 'es_ES', 'label' => Mage::helper('internetkassa')->__('Spanish')),
279
+ array('value' => 'no_NO', 'label' => Mage::helper('internetkassa')->__('Norwegian')),
280
+ array('value' => 'tr_TR', 'label' => Mage::helper('internetkassa')->__('Turkish')),
281
+ );
282
+
283
+ }
284
+
285
+ public function getCurrencyList(){
286
+
287
+ return array(
288
+
289
+ array('value' => 'AED', 'label' => Mage::helper('internetkassa')->__('United Arab Emirates Dirham')),
290
+ array('value' => 'AUD', 'label' => Mage::helper('internetkassa')->__('Australian Dollar')),
291
+ array('value' => 'CAD', 'label' => Mage::helper('internetkassa')->__('Canadian Dollar')),
292
+ array('value' => 'CHF', 'label' => Mage::helper('internetkassa')->__('Swiss Franc')),
293
+ array('value' => 'CNY', 'label' => Mage::helper('internetkassa')->__('Chinese Yuan Renminbi')),
294
+ array('value' => 'CYP', 'label' => Mage::helper('internetkassa')->__('Cyprus Pound')),
295
+ array('value' => 'CZK', 'label' => Mage::helper('internetkassa')->__('Czech koruna')),
296
+ array('value' => 'DKK', 'label' => Mage::helper('internetkassa')->__('Danish Krone')),
297
+ array('value' => 'EEK', 'label' => Mage::helper('internetkassa')->__('Estonian Kroon')),
298
+ array('value' => 'GBP', 'label' => Mage::helper('internetkassa')->__('Pound sterling')),
299
+ array('value' => 'EUR', 'label' => Mage::helper('internetkassa')->__('Euro')),
300
+ array('value' => 'HKD', 'label' => Mage::helper('internetkassa')->__('Hong Kong Dollar')),
301
+ array('value' => 'HRK', 'label' => Mage::helper('internetkassa')->__('Croatian Kuna')),
302
+ array('value' => 'USD', 'label' => Mage::helper('internetkassa')->__('US Dollar')),
303
+ );
304
+
305
+ }
306
+ }
307
+
308
+ ?>
app/code/community/Morningtime/Internetkassa/Model/Internetkassa.php ADDED
@@ -0,0 +1,655 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Morningtime_Internetkassa_Model_Internetkassa extends Mage_Payment_Model_Method_Abstract
19
+ {
20
+ protected $_code = 'internetkassa';
21
+
22
+ protected $_formBlockType = 'internetkassa/form';
23
+ protected $_infoBlockType = 'internetkassa/info';
24
+
25
+ /*
26
+ * Switch the payment provider
27
+ */
28
+ public function getIssuerUrls() {
29
+ $issuer = Mage::getStoreConfig('payment/internetkassa/issuer');
30
+
31
+ switch($issuer) {
32
+ case "RABO":
33
+ return array("prod" => "https://i-kassa.rabobank.nl/ncol/prod/orderstandard.asp",
34
+ "test" => "https://i-kassa.rabobank.nl/ncol/test/orderstandard.asp");
35
+ break;
36
+
37
+ case "ABNAMRO":
38
+ return array("prod" => "https://internetkassa.abnamro.nl/ncol/prod/orderstandard.asp",
39
+ "test" => "https://internetkassa.abnamro.nl/ncol/test/orderstandard.asp");
40
+ break;
41
+
42
+ case "NEOS":
43
+ return array("prod" => "https://www.secure.neos-solution.com/ncol/prod/orderstandard.asp",
44
+ "test" => "https://www.secure.neos-solution.com/ncol/test/orderstandard.asp");
45
+ break;
46
+
47
+ case "TWYP":
48
+ return array("prod" => "https://twyp.secure-ing.com/ncol/prod/orderstandard.asp",
49
+ "test" => "https://twyp.secure-ing.com/ncol/test/orderstandard.asp");
50
+ break;
51
+
52
+ case "OGONE":
53
+ return array("prod" => "https://secure.ogone.com/ncol/prod/orderstandard.asp",
54
+ "test" => "https://secure.ogone.com/ncol/test/orderstandard.asp");
55
+ break;
56
+
57
+ }
58
+
59
+ }
60
+
61
+ const TEST_MERCHANT_kEY = '58 6d fc 9c 34 91 9b 86 3f fd 64 63 c9 13 4a 26 ba 29 74 1e c7 e9 80 79';
62
+ const TEST_CODE_SIRET = '00000000000001';
63
+ const TEST_CODE_SITE = '001';
64
+
65
+ protected $_customer;
66
+ protected $_checkout;
67
+ protected $_quote;
68
+ protected $_order;
69
+ protected $_allowCurrencyCodes;
70
+ protected $_allowedParamToSend;
71
+
72
+ /**
73
+ * Availability options
74
+ */
75
+ protected $_isGateway = true;
76
+ protected $_canAuthorize = true;
77
+ protected $_canCapture = true;
78
+ protected $_canCapturePartial = false;
79
+ protected $_canRefund = false;
80
+ protected $_canVoid = false;
81
+ protected $_canUseInternal = false;
82
+ protected $_canUseCheckout = true;
83
+ protected $_canUseForMultishipping = true;
84
+
85
+ protected $moduleTitle;
86
+ protected $moduleDebugMode;
87
+
88
+ /**
89
+ * Internetkassa Settings
90
+ *
91
+ **/
92
+ protected $internetkassa_PSPID;
93
+ protected $internetkassa_SHA1PASS;
94
+
95
+ protected $internetkassa_Currency;
96
+ protected $internetkassa_Language;
97
+ /* Optional fields for design */
98
+ /* Static template page */
99
+ protected $internetkassa_TITLE; /* Title for static template */
100
+ protected $internetkassa_BGCOLOR; /* Background color for static template */
101
+ protected $internetkassa_TXTCOLOR; /* Text color for static template */
102
+ protected $internetkassa_TBLBGCOLOR; /* Table background color for static template */
103
+ protected $internetkassa_TBLTXTCOLOR; /* Table text color for static template */
104
+ protected $internetkassa_BUTTONBGCOLOR; /* Button background color for static template */
105
+ protected $internetkassa_BUTTONTXTCOLOR; /* Button text color for static template */
106
+ protected $internetkassa_FONTTYPE; /* Font Type for static template: default = Verdana */
107
+ protected $internetkassa_LOGO; /* Logo filename for static template: send logo to support with your PSPID in the subject */
108
+ /* or dynamic template page */
109
+ protected $internetkassa_TP; /* The full URL of the Template Page hosted on the merchant's site and containing the "payment string" eg: http://www.MyEcommerceSite.com/TemplatePage.htm or templateSTD3.htm */
110
+ /* Post-payment redirection */
111
+ protected $internetkassa_accepturl; /* demo_accepturl.htm */
112
+ protected $internetkassa_declineurl; /* demo_declineurl.htm */
113
+ protected $internetkassa_exceptionurl; /* demo_exceptionurl.htm */
114
+ protected $internetkassa_cancelurl; /* demo_cancelurl.htm */
115
+ /* Link to your website in case of standard confirmation page built by Internetkassa */
116
+ protected $internetkassa_homeurl;
117
+ protected $internetkassa_catalogurl;
118
+ /* Other optional fields */
119
+ protected $internetkassa_CN; /* Optional client name */
120
+ protected $internetkassa_EMAIL; /* Optional client email */
121
+ protected $internetkassa_PM; /* Optional Payment Method : <EM>CreditCard, iDEAL, ING HomePay, KBC Online, CBC Online, DEXIA NetBanking</EM> */
122
+ protected $internetkassa_BRAND; /* Optional, can be deduced from the card number */
123
+ protected $internetkassa_SHASign;
124
+ protected $internetkassa_Signature;
125
+ protected $internetkassa_ownerZIP;
126
+ protected $internetkassa_owneraddress;
127
+ protected $internetkassa_ownercty;
128
+ protected $internetkassa_Alias;
129
+ protected $internetkassa_AliasUsage;
130
+ protected $internetkassa_AliasOperationCOM; /* Optional order description */
131
+ protected $internetkassa_COMPLUS; /* Optional additional info for post-payment feedback */
132
+ protected $internetkassa_PARAMPLUS; /* Optional params for post-payment feedback */
133
+ protected $internetkassa_PARAMVAR; /* Optional url Variable for post-payment feedback */
134
+ protected $internetkassa_USERID; /* Optional userid for account with User Manager. */
135
+ protected $internetkassa_CreditCode; /* Optional CreditCode for Cofinoga/NetReserve. */
136
+
137
+
138
+ /* Getters */
139
+ public function getTitle(){
140
+ if($this->moduleTitle == null)
141
+ $this->moduleTitle = Mage::getStoreConfig('payment/internetkassa/title');
142
+
143
+ return $this->moduleTitle;
144
+ }
145
+
146
+ public function getDebugMode(){
147
+ if($this->moduleDebugMode == null)
148
+ $this->moduleDebugMode = Mage::getStoreConfig('payment/internetkassa/test');
149
+
150
+ return $this->moduleDebugMode;
151
+ }
152
+
153
+
154
+ public function getInternetkassaPSPID(){
155
+
156
+ if($this->internetkassa_PSPID == null)
157
+ $this->internetkassa_PSPID = Mage::getStoreConfig('payment/internetkassa/PSPID');
158
+
159
+ return $this->internetkassa_PSPID;
160
+ }
161
+
162
+ public function getInternetkassaSHA1PASS(){
163
+
164
+ if($this->internetkassa_SHA1PASS == null)
165
+ $this->internetkassa_SHA1PASS = Mage::getStoreConfig('payment/internetkassa/SHA1PASS');
166
+
167
+ return $this->internetkassa_SHA1PASS;
168
+ }
169
+
170
+ public function getInternetkassaCurrency(){
171
+
172
+ if($this->internetkassa_Currency == null)
173
+ $this->internetkassa_Currency = Mage::getStoreConfig('payment/internetkassa/Currency');
174
+
175
+ return $this->internetkassa_Currency;
176
+ }
177
+
178
+ public function getInternetkassaLanguage(){
179
+ if($this->internetkassa_Language == null)
180
+ $this->internetkassa_Language = Mage::getStoreConfig('payment/internetkassa/Language');
181
+
182
+ return $this->internetkassa_Language;
183
+ }
184
+
185
+ public function getInternetkassaTITLE(){
186
+ if($this->internetkassa_TITLE == null)
187
+ $this->internetkassa_TITLE = Mage::getStoreConfig('payment/internetkassa/TITLE');
188
+
189
+ return $this->internetkassa_TITLE;
190
+ }
191
+
192
+ public function getInternetkassaBGCOLOR(){
193
+ if($this->internetkassa_BGCOLOR == null)
194
+ $this->internetkassa_BGCOLOR = Mage::getStoreConfig('payment/internetkassa/BGCOLOR');
195
+
196
+ return $this->internetkassa_BGCOLOR;
197
+ }
198
+
199
+ public function getInternetkassaTXTCOLOR(){
200
+ if($this->internetkassa_TXTCOLOR == null)
201
+ $this->internetkassa_TXTCOLOR = Mage::getStoreConfig('payment/internetkassa/TXTCOLOR');
202
+
203
+ return $this->internetkassa_TXTCOLOR;
204
+ }
205
+
206
+ public function getInternetkassaTBLBGCOLOR(){
207
+ if($this->internetkassa_TBLBGCOLOR == null)
208
+ $this->internetkassa_TBLBGCOLOR = Mage::getStoreConfig('payment/internetkassa/TBLBGCOLOR');
209
+
210
+ return $this->internetkassa_TBLBGCOLOR;
211
+ }
212
+
213
+ public function getInternetkassaTBLTXTCOLOR(){
214
+ if($this->internetkassa_TBLTXTCOLOR == null)
215
+ $this->internetkassa_TBLTXTCOLOR = Mage::getStoreConfig('payment/internetkassa/TBLTXTCOLOR');
216
+
217
+ return $this->internetkassa_TBLTXTCOLOR;
218
+ }
219
+
220
+ public function getInternetkassaBUTTONBGCOLOR(){
221
+ if($this->internetkassa_BUTTONBGCOLOR == null)
222
+ $this->internetkassa_BUTTONBGCOLOR = Mage::getStoreConfig('payment/internetkassa/BUTTONBGCOLOR');
223
+
224
+ return $this->internetkassa_BUTTONBGCOLOR;
225
+ }
226
+
227
+ public function getInternetkassaBUTTONTXTCOLOR(){
228
+ if($this->internetkassa_BUTTONTXTCOLOR == null)
229
+ $this->internetkassa_BUTTONTXTCOLOR = Mage::getStoreConfig('payment/internetkassa/BUTTONTXTCOLOR');
230
+
231
+ return $this->internetkassa_BUTTONTXTCOLOR;
232
+ }
233
+
234
+ public function getInternetkassaFONTTYPE(){
235
+ if($this->internetkassa_FONTTYPE == null)
236
+ $this->internetkassa_FONTTYPE = Mage::getStoreConfig('payment/internetkassa/FONTTYPE');
237
+
238
+ return $this->internetkassa_FONTTYPE;
239
+ }
240
+
241
+ public function getInternetkassaLOGO(){
242
+ if($this->internetkassa_LOGO == null)
243
+ $this->internetkassa_LOGO = Mage::getStoreConfig('payment/internetkassa/LOGO');
244
+
245
+ return $this->internetkassa_LOGO;
246
+ }
247
+
248
+ public function getInternetkassaTP(){
249
+ if($this->internetkassa_TP == null)
250
+ $this->internetkassa_TP = Mage::getStoreConfig('payment/internetkassa/TP');
251
+
252
+ return $this->internetkassa_TP;
253
+ }
254
+
255
+ public function getInternetkassaAcceptUrl(){
256
+ if($this->internetkassa_accepturl == null)
257
+ $this->internetkassa_accepturl = Mage::getStoreConfig('payment/internetkassa/accepturl');
258
+
259
+ return $this->internetkassa_accepturl;
260
+ }
261
+
262
+ public function getInternetkassaDeclineUrl(){
263
+ if($this->internetkassa_declineurl == null)
264
+ $this->internetkassa_declineurl = Mage::getStoreConfig('payment/internetkassa/declineurl');
265
+
266
+ return $this->internetkassa_declineurl;
267
+ }
268
+
269
+ public function getInternetkassaExceptionUrl(){
270
+ if($this->internetkassa_exceptionurl == null)
271
+ $this->internetkassa_exceptionurl = Mage::getStoreConfig('payment/internetkassa/exceptionurl');
272
+
273
+ return $this->internetkassa_exceptionurl;
274
+ }
275
+
276
+ public function getInternetkassaCancelUrl(){
277
+ if($this->internetkassa_cancelurl == null)
278
+ $this->internetkassa_cancelurl = Mage::getStoreConfig('payment/internetkassa/cancelurl');
279
+
280
+ return $this->internetkassa_cancelurl;
281
+ }
282
+
283
+ public function getInternetkassaHomeUrl(){
284
+ if($this->internetkassa_homeurl == null)
285
+ $this->internetkassa_homeurl = Mage::getStoreConfig('payment/internetkassa/homeurl');
286
+
287
+ return $this->internetkassa_homeurl;
288
+ }
289
+
290
+ public function getInternetkassaCatalogUrl(){
291
+ if($this->internetkassa_catalogurl == null)
292
+ $this->internetkassa_catalogurl = Mage::getStoreConfig('payment/internetkassa/catalogurl');
293
+
294
+ return $this->internetkassa_catalogurl;
295
+ }
296
+
297
+ public function getInternetkassaCN(){
298
+ if($this->internetkassa_CN == null)
299
+ $this->internetkassa_CN = Mage::getStoreConfig('payment/internetkassa/CN');
300
+
301
+ return $this->internetkassa_CN;
302
+ }
303
+
304
+ public function getInternetkassaEMAIL(){
305
+ if($this->internetkassa_EMAIL == null)
306
+ $this->internetkassa_EMAIL = Mage::getStoreConfig('payment/internetkassa/EMAIL');
307
+
308
+ return $this->internetkassa_EMAIL;
309
+ }
310
+
311
+ public function getInternetkassaPM(){
312
+ if($this->internetkassa_PM == null)
313
+ $this->internetkassa_PM = Mage::getStoreConfig('payment/internetkassa/PM');
314
+
315
+ return $this->internetkassa_PM;
316
+ }
317
+
318
+ public function getInternetkassaBRAND(){
319
+ if($this->internetkassa_BRAND == null)
320
+ $this->internetkassa_BRAND = Mage::getStoreConfig('payment/internetkassa/BRAND');
321
+
322
+ return $this->internetkassa_BRAND;
323
+ }
324
+
325
+
326
+ public function getInternetkassaSignature(){
327
+ if($this->internetkassa_Signature == null)
328
+ $this->internetkassa_Signature = Mage::getStoreConfig('payment/internetkassa/Signature');
329
+
330
+ return $this->internetkassa_Signature;
331
+ }
332
+
333
+ public function getInternetkassaOwnerZIP(){
334
+ if($this->internetkassa_ownerZIP == null)
335
+ $this->internetkassa_ownerZIP = Mage::getStoreConfig('payment/internetkassa/ownerZIP');
336
+
337
+ return $this->internetkassa_ownerZIP;
338
+ }
339
+
340
+ public function getInternetkassaOwnerAddress(){
341
+ if($this->internetkassa_owneraddress == null)
342
+ $this->internetkassa_owneraddress = Mage::getStoreConfig('payment/internetkassa/owneraddress');
343
+
344
+ return $this->internetkassa_owneraddress;
345
+ }
346
+
347
+ public function getInternetkassaOwnerCty(){
348
+ if($this->internetkassa_ownercty == null)
349
+ $this->internetkassa_ownercty = Mage::getStoreConfig('payment/internetkassa/ownercty');
350
+
351
+ return $this->internetkassa_ownercty;
352
+ }
353
+
354
+ public function getInternetkassaAlias(){
355
+ if($this->internetkassa_Alias == null)
356
+ $this->internetkassa_Alias = Mage::getStoreConfig('payment/internetkassa/Alias');
357
+
358
+ return $this->internetkassa_Alias;
359
+ }
360
+
361
+ public function getInternetkassaAliasUsage(){
362
+ if($this->internetkassa_AliasUsage == null)
363
+ $this->internetkassa_AliasUsage = Mage::getStoreConfig('payment/internetkassa/AliasUsage');
364
+
365
+ return $this->internetkassa_AliasUsage;
366
+ }
367
+
368
+ public function getInternetkassaAliasOperationCOM(){
369
+ if($this->internetkassa_OperationCOM == null)
370
+ $this->internetkassa_OperationCOM = Mage::getStoreConfig('payment/internetkassa/OperationCOM');
371
+
372
+ return $this->internetkassa_OperationCOM;
373
+ }
374
+
375
+ public function getInternetkassaCOMPLUS(){
376
+ if($this->internetkassa_COMPLUS == null)
377
+ $this->internetkassa_COMPLUS = Mage::getStoreConfig('payment/internetkassa/COMPLUS');
378
+
379
+ return $this->internetkassa_COMPLUS;
380
+ }
381
+
382
+ public function getInternetkassaPARAMPLUS(){
383
+ if($this->internetkassa_PARAMPLUS == null)
384
+ $this->internetkassa_PARAMPLUS = Mage::getStoreConfig('payment/internetkassa/PARAMPLUS');
385
+
386
+ return $this->internetkassa_PARAMPLUS;
387
+ }
388
+
389
+ public function getInternetkassaPARAMVAR(){
390
+ if($this->internetkassa_PARAMVAR == null)
391
+ $this->internetkassa_PARAMVAR = Mage::getStoreConfig('payment/internetkassa/PARAMVAR');
392
+
393
+ return $this->internetkassa_PARAMVAR;
394
+ }
395
+
396
+ public function getInternetkassaUSERID(){
397
+ if($this->internetkassa_USERID == null)
398
+ $this->internetkassa_USERID = Mage::getStoreConfig('payment/internetkassa/USERID');
399
+
400
+ return $this->internetkassa_USERID;
401
+ }
402
+
403
+ public function getInternetkassaCreditCode(){
404
+ if($this->internetkassa_CreditCode == null)
405
+ $this->internetkassa_CreditCode = Mage::getStoreConfig('payment/internetkassa/CreditCode');
406
+
407
+ return $this->internetkassa_CreditCode;
408
+ }
409
+
410
+ /**
411
+ * Return the url for the getaway
412
+ * @return
413
+ */
414
+ public function getInternetkassaUrl(){
415
+
416
+ $setIssuerUrls = $this->getIssuerUrls();
417
+
418
+ if($this->getDebugMode())
419
+ return $setIssuerUrls["test"];
420
+ else
421
+ return $setIssuerUrls["prod"];
422
+ }
423
+
424
+ /**
425
+ * Assign data to info model instance
426
+ *
427
+ * @param mixed $data
428
+ * @return Mage_Internetkassa_Model_Method_Internetkassa
429
+ */
430
+
431
+ public function assignData($data)
432
+ {
433
+ if (!($data instanceof Varien_Object)) {
434
+ $data = new Varien_Object($data);
435
+ }
436
+ $info = $this->getInfoInstance();
437
+ $info->setCcType($data->getCcType());
438
+
439
+ return $this;
440
+ }
441
+
442
+
443
+ public function validate()
444
+ {
445
+ $errorMsg = false;
446
+ $info = $this->getInfoInstance();
447
+
448
+ $ccType = $info->getCcType();
449
+
450
+ if(empty($ccType)){
451
+ $errorMsg = $this->__('U dient een betaalmethode te kiezen!');
452
+ }
453
+
454
+ if($errorMsg){
455
+ Mage::throwException($errorMsg);
456
+ }
457
+
458
+ return $this;
459
+ }
460
+
461
+ protected function getSuccessURL()
462
+ {
463
+ return Mage::getUrl('/internetkassa/ogone/success', array('_secure' => true));
464
+ }
465
+
466
+ protected function getErrorURL()
467
+ {
468
+ return Mage::getUrl('/internetkassa/ogone/error', array('_secure' => true));
469
+ }
470
+
471
+ /**
472
+ * Capture payment
473
+ *
474
+ * @param Varien_Object $orderPayment
475
+ * @return Mage_Payment_Model_Abstract
476
+ */
477
+ public function capture(Varien_Object $payment, $amount)
478
+ {
479
+ $payment->setStatus(self::STATUS_APPROVED)
480
+ ->setLastTransId($this->getTransactionId());
481
+
482
+ return $this;
483
+ }
484
+
485
+
486
+ /**
487
+ * add all needed fields for internetkassa
488
+ * @return
489
+ * @param $forms Object
490
+ */
491
+ public function addInternetkassaFields($form){
492
+
493
+ // get payment mode
494
+ $payment = $this->getQuote()->getPayment();
495
+
496
+ $ccType = $payment->getCcType();
497
+
498
+ $list = Mage::getModel('internetkassa/source_paymentMethodsList')->getPMList();
499
+ for ($i = 0; $i < sizeof($list); $i++) {
500
+ if($list[$i]->getPmName() == $ccType){
501
+ $this->internetkassa_PM = $list[$i]->getPmValue();
502
+ $this->internetkassa_BRAND = $list[$i]->getPmBrand();
503
+ }
504
+ }
505
+
506
+ // set values
507
+ // customer information
508
+ $this->internetkassa_CN = $this->getCustomer()->getFirstname() . ' ' . $this->getCustomer()->getLastname();
509
+ $this->internetkassa_EMAIL = $this->getCustomer()->getEmail();
510
+ //$this->internetkassa_owneraddress =
511
+ //$this->internetkassa_ownerZIP =
512
+ //$this->internetkassa_ownercty =
513
+
514
+ // order information
515
+ $form->addField("amount", 'hidden', array('name' => 'amount', 'value' => round($this->getOrder()->getBaseGrandTotal(), 2)*100));
516
+ $form->addField("orderID", 'hidden', array('name' => 'orderID', 'value' => $this->getOrder()->getRealOrderId()));
517
+
518
+ $form->addField("PSPID", 'hidden', array('name' => 'PSPID', 'value' => $this->getInternetkassaPSPID()));
519
+
520
+ $form->addField("Currency", 'hidden', array('name' => 'Currency', 'value' => $this->getInternetkassaCurrency()));
521
+
522
+ $form->addField("Language", 'hidden', array('name' => 'Language', 'value' => $this->getInternetkassaLanguage()));
523
+
524
+ $form->addField("PAGE_TITLE", 'hidden', array('name' => 'PAGE_TITLE', 'value' => $this->getInternetkassaTITLE()));
525
+ $form->addField("BGCOLOR", 'hidden', array('name' => 'Language', 'value' => $this->getInternetkassaLanguage()));
526
+ $form->addField("TXTCOLOR", 'hidden', array('name' => 'TXTCOLOR', 'value' => $this->getInternetkassaTXTCOLOR()));
527
+ $form->addField("TBLBGCOLOR", 'hidden', array('name' => 'TBLBGCOLOR', 'value' => $this->getInternetkassaTBLBGCOLOR()));
528
+ $form->addField("TBLTXTCOLOR", 'hidden', array('name' => 'TBLTXTCOLOR', 'value' => $this->getInternetkassaTBLTXTCOLOR()));
529
+ $form->addField("BUTTONBGCOL", 'hidden', array('name' => 'BUTTONBGCOL', 'value' => $this->getInternetkassaBUTTONBGCOL()));
530
+ $form->addField("BUTTONTXTCOLOR", 'hidden', array('name' => 'BUTTONTXTCOLOR', 'value' => $this->getInternetkassaBUTTONTXTCOLOR()));
531
+ $form->addField("FONTTYPE", 'hidden', array('name' => 'FONTTYPE', 'value' => $this->getInternetkassaFONTTYPE()));
532
+ $form->addField("LOGO", 'hidden', array('name' => 'LOGO', 'value' => $this->getInternetkassaLOGO()));
533
+ $form->addField("TP", 'hidden', array('name' => 'TP', 'value' => $this->getInternetkassaTP()));
534
+
535
+ $form->addField("accepturl", 'hidden', array('name' => 'accepturl', 'value' => $this->getInternetkassaAccepturl()));
536
+ $form->addField("declineurl", 'hidden', array('name' => 'declineurl', 'value' => $this->getInternetkassaDeclineurl()));
537
+ $form->addField("exceptionurl", 'hidden', array('name' => 'exceptionurl', 'value' => $this->getInternetkassaExceptionurl()));
538
+ $form->addField("cancelurl", 'hidden', array('name' => 'cancelurl', 'value' => $this->getInternetkassaCancelurl()));
539
+ $form->addField("homeurl", 'hidden', array('name' => 'homeurl', 'value' => $this->getInternetkassaHomeurl()));
540
+ $form->addField("catalogurl", 'hidden', array('name' => 'catalogurl', 'value' => $this->getInternetkassaCatalogurl()));
541
+
542
+ $form->addField("CN", 'hidden', array('name' => 'CN', 'value' => $this->getInternetkassaCN()));
543
+ $form->addField("EMAIL", 'hidden', array('name' => 'EMAIL', 'value' => $this->getInternetkassaEMAIL()));
544
+ $form->addField("PM", 'hidden', array('name' => 'PM', 'value' => $this->getInternetkassaPM()));
545
+ $form->addField("BRAND", 'hidden', array('name' => 'BRAND', 'value' => $this->getInternetkassaBRAND()));
546
+
547
+ $form->addField("Signature", 'hidden', array('name' => 'Signature', 'value' => $this->getInternetkassaSignature()));
548
+ $form->addField("ownerZIP", 'hidden', array('name' => 'ownerZIP', 'value' => $this->getInternetkassaOwnerZIP()));
549
+ $form->addField("owneraddress", 'hidden', array('name' => 'owneraddress', 'value' => $this->getInternetkassaOwneraddress()));
550
+ $form->addField("ownercty", 'hidden', array('name' => 'ownercty', 'value' => $this->getInternetkassaOwnercty()));
551
+ $form->addField("Alias", 'hidden', array('name' => 'Alias', 'value' => $this->getInternetkassaAlias()));
552
+ $form->addField("AliasUsage", 'hidden', array('name' => 'AliasUsage', 'value' => $this->getInternetkassaAliasUsage()));
553
+ $form->addField("AliasOperationCOM", 'hidden', array('name' => 'AliasOperationCOM', 'value' => $this->getInternetkassaAliasOperationCOM()));
554
+ $form->addField("COMPLUS", 'hidden', array('name' => 'COMPLUS', 'value' => $this->getInternetkassaCOMPLUS()));
555
+ $form->addField("PARAMPLUS", 'hidden', array('name' => 'PARAMPLUS', 'value' => $this->getInternetkassaPARAMPLUS()));
556
+ $form->addField("PARAMVAR", 'hidden', array('name' => 'PARAMVAR', 'value' => $this->getInternetkassaPARAMVAR()));
557
+ $form->addField("USERID", 'hidden', array('name' => 'USERID', 'value' => $this->getInternetkassaUSERID()));
558
+ $form->addField("CreditCode", 'hidden', array('name' => 'CreditCode', 'value' => $this->getInternetkassaCreditCode()));
559
+
560
+ $form->addField("SHASign", 'hidden', array('name' => 'SHASign', 'value' =>
561
+
562
+ $this->signSHAOrder(
563
+ $this->getOrder()->getRealOrderId(),
564
+ round($this->getOrder()->getBaseGrandTotal(),2)*100,
565
+ $this->getInternetkassaCurrency(),
566
+ $this->getInternetkassaPSPID(),
567
+ $this->getInternetkassaSHA1PASS()
568
+ )
569
+ ));
570
+
571
+ return $form;
572
+
573
+ }
574
+
575
+ /**
576
+ * Enter description here...
577
+ *
578
+ * @param string $orderID
579
+ * @param double $amount
580
+ * @param string $currency
581
+ * @param string $PSPID
582
+ * @param string $passSha
583
+ * @return sha1 signature for this parameters
584
+ */
585
+ protected function signSHAOrder($orderID, $amount, $currency, $PSPID, $passSha){
586
+ return sha1($orderID.$amount.$currency.$PSPID.$passSha);
587
+ }
588
+
589
+ /**
590
+ * Return Order Place Redirect URL
591
+ *
592
+ * @return string Order Redirect URL
593
+ */
594
+ public function getOrderPlaceRedirectUrl(){
595
+ return Mage::getUrl('internetkassa/ogone/redirect');
596
+ }
597
+
598
+ public function getCustomer()
599
+ {
600
+ if (empty($this->_customer)) {
601
+ $this->_customer = Mage::getSingleton('customer/session')->getCustomer();
602
+ }
603
+ return $this->_customer;
604
+ }
605
+
606
+ public function getCheckout()
607
+ {
608
+ if (empty($this->_checkout)) {
609
+ $this->_checkout = Mage::getSingleton('checkout/session');
610
+ }
611
+ return $this->_checkout;
612
+ }
613
+
614
+ public function getQuote()
615
+ {
616
+ if (empty($this->_quote)) {
617
+ if (!$this->getCheckout()->getQuoteId()) {
618
+ $this->getCheckout()->setQuoteId($this->getCheckout()->getInternetkassaQuoteId());
619
+ }
620
+ $this->_quote = $this->getCheckout()->getQuote();
621
+ }
622
+ return $this->_quote;
623
+ }
624
+
625
+ public function getOrder()
626
+ {
627
+ if (empty($this->_order)) {
628
+ $order = Mage::getModel('sales/order');
629
+ $order->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
630
+ $this->_order = $order;
631
+ }
632
+ return $this->_order;
633
+ }
634
+
635
+
636
+ /**
637
+ * Checking response
638
+ *
639
+ * @param array $response
640
+ * @return bool
641
+ */
642
+ public function checkResponse($response)
643
+ {
644
+ //TODO manage debugging
645
+ if (isset(
646
+ $response['orderID'], $response['amount'],
647
+ $response['STATUS'], $response['PAYID'],
648
+ $response['PM'],$response['BRAND'])) {
649
+ return true;
650
+ }
651
+
652
+ return false;
653
+ }
654
+ }
655
+ ?>
app/code/community/Morningtime/Internetkassa/Model/Source/Currencies.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * PaymentMethod model
20
+ *
21
+ * @author morningtime
22
+ */
23
+
24
+ class Morningtime_Internetkassa_Model_Source_Currencies
25
+ {
26
+
27
+ public function toOptionArray()
28
+ {
29
+
30
+ return array(
31
+
32
+ array('value' => 'AED', 'label' => Mage::helper('internetkassa')->__('United Arab Emirates Dirham')),
33
+ array('value' => 'AUD', 'label' => Mage::helper('internetkassa')->__('Australian Dollar')),
34
+ array('value' => 'CAD', 'label' => Mage::helper('internetkassa')->__('Canadian Dollar')),
35
+ array('value' => 'CHF', 'label' => Mage::helper('internetkassa')->__('Swiss Franc')),
36
+ array('value' => 'CNY', 'label' => Mage::helper('internetkassa')->__('Chinese Yuan Renminbi')),
37
+ array('value' => 'CYP', 'label' => Mage::helper('internetkassa')->__('Cyprus Pound')),
38
+ array('value' => 'CZK', 'label' => Mage::helper('internetkassa')->__('Czech koruna')),
39
+ array('value' => 'DKK', 'label' => Mage::helper('internetkassa')->__('Danish Krone')),
40
+ array('value' => 'EEK', 'label' => Mage::helper('internetkassa')->__('Estonian Kroon')),
41
+ array('value' => 'GBP', 'label' => Mage::helper('internetkassa')->__('Pound Sterling')),
42
+ array('value' => 'EUR', 'label' => Mage::helper('internetkassa')->__('Euro')),
43
+ array('value' => 'HKD', 'label' => Mage::helper('internetkassa')->__('Hong Kong Dollar')),
44
+ array('value' => 'HRK', 'label' => Mage::helper('internetkassa')->__('Croatian Kuna')),
45
+ array('value' => 'USD', 'label' => Mage::helper('internetkassa')->__('US Dollar')),
46
+ );
47
+
48
+ }
49
+ }
app/code/community/Morningtime/Internetkassa/Model/Source/Issuers.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * PaymentMethod model
20
+ *
21
+ * @author morningtime
22
+ */
23
+
24
+ class Morningtime_Internetkassa_Model_Source_Issuers
25
+ {
26
+ public function toOptionArray()
27
+ {
28
+ return array(
29
+ array('value' => 'RABO', 'label' => Mage::helper('internetkassa')->__('Rabo Internetkassa')),
30
+ array('value' => 'ABNAMRO', 'label' => Mage::helper('internetkassa')->__('ABN AMRO Internetkassa')),
31
+ array('value' => 'TWYP', 'label' => Mage::helper('internetkassa')->__('ING Bank (The Way You Pay)')),
32
+ array('value' => 'NEOS', 'label' => Mage::helper('internetkassa')->__('Fortis Bank (NEOS Solutions)')),
33
+ array('value' => 'OGONE', 'label' => Mage::helper('internetkassa')->__('Ogone')),
34
+ );
35
+
36
+ }
37
+ }
app/code/community/Morningtime/Internetkassa/Model/Source/Languages.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * PaymentMethod model
20
+ *
21
+ * @author morningtime
22
+ */
23
+
24
+ class Morningtime_Internetkassa_Model_Source_Languages
25
+ {
26
+
27
+ public function toOptionArray()
28
+ {
29
+ return array(
30
+ array('value' => 'en_US', 'label' => Mage::helper('internetkassa')->__('English (default)')),
31
+ array('value' => 'fr_FR', 'label' => Mage::helper('internetkassa')->__('French')),
32
+ array('value' => 'nl_NL', 'label' => Mage::helper('internetkassa')->__('Dutch')),
33
+ array('value' => 'nl_BE', 'label' => Mage::helper('internetkassa')->__('Flemish')),
34
+ array('value' => 'it_IT', 'label' => Mage::helper('internetkassa')->__('Italian')),
35
+ array('value' => 'de_DE', 'label' => Mage::helper('internetkassa')->__('German')),
36
+ array('value' => 'es_ES', 'label' => Mage::helper('internetkassa')->__('Spanish')),
37
+ array('value' => 'no_NO', 'label' => Mage::helper('internetkassa')->__('Norwegian')),
38
+ array('value' => 'tr_TR', 'label' => Mage::helper('internetkassa')->__('Turkish')),
39
+ );
40
+
41
+ }
42
+ }
app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethod.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * PaymentMethod model
20
+ *
21
+ * @author morningtime
22
+ */
23
+
24
+ class Morningtime_Internetkassa_Model_Source_PaymentMethod extends Varien_Object
25
+ {
26
+
27
+ protected $_pmName;
28
+ protected $_pmValue;
29
+ protected $_pmBrand;
30
+ protected $_pmUrlLogo;
31
+ protected $_pmFamily;
32
+ protected $_isActive;
33
+
34
+ public function __construct()
35
+ {
36
+ parent::__construct();
37
+ }
38
+
39
+ public function __PaymentMethod(
40
+ $pmName, $pmValue, $pmBrand, $pmUrlLogo,
41
+ $pmFamily, $isActive
42
+ ){
43
+
44
+ $this->_pmName = $pmName;
45
+ $this->_pmValue = $pmValue;
46
+ $this->_pmBrand = $pmBrand;
47
+ $this->_pmUrlLogo = $pmUrlLogo;
48
+ $this->_pmFamily = $pmFamily;
49
+ $this->_isActive = $isActive;
50
+
51
+ }
52
+
53
+ // getters
54
+ public function getPmName(){
55
+ return $this->_pmName;
56
+ }
57
+
58
+ public function getPmValue(){
59
+ return $this->_pmValue;
60
+ }
61
+
62
+ public function getPmBrand(){
63
+ return $this->_pmBrand;
64
+ }
65
+
66
+ public function getPmUrlLogo(){
67
+ return $this->_pmUrlLogo;
68
+ }
69
+
70
+ public function getPmFamily(){
71
+ return $this->_pmFamily;
72
+ }
73
+
74
+ public function isActive(){
75
+ return $this->_isActive;
76
+ }
77
+
78
+ // setters
79
+ public function setPmName($pmName){
80
+ $this->_pmName = $pmName;
81
+ }
82
+
83
+ public function setPmValue($pmValue){
84
+ $this->_pmValue = $pmValue;
85
+ }
86
+
87
+ public function setPmBrand($pmBrand){
88
+ $this->_pmBrand = $pmBrand;
89
+ }
90
+
91
+ public function setPmUrlLogo($pmUrlLogo){
92
+ $this->_pmUrlLogo = $pmUrlLogo;
93
+ }
94
+
95
+ public function setPmFamily($pmFamily){
96
+ $this->_pmFamily = $pmFamily;
97
+ }
98
+
99
+ public function setIsActive($isActive){
100
+ $this->_isActive = $isActive;
101
+ }
102
+
103
+ }
app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethods.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package Mage_Internetkassa
17
+ * @copyright Copyright (c) 2008 ALTIC Charly Clairmont (CCH)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * */
20
+
21
+ /**
22
+ * PaymentMethod model
23
+ *
24
+ * @author altic teams
25
+ */
26
+
27
+ class Morningtime_Internetkassa_Model_Source_PaymentMethods
28
+ {
29
+
30
+ public function toOptionArray(){
31
+
32
+ $list = Mage::getModel('internetkassa/source_paymentMethodsList')->getPMList();
33
+
34
+ for ($i = 0; $i < sizeof($list); $i++) {
35
+ $pm = $list[$i];
36
+ $pmArrayOption[] = array('value' => $pm->getPmName(), 'label' => $pm->getPmName());
37
+ }
38
+
39
+ return $pmArrayOption;
40
+ }
41
+
42
+ }
app/code/community/Morningtime/Internetkassa/Model/Source/PaymentMethodsList.php ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package Mage_Ogone
17
+ * @copyright Copyright (c) 2008 ALTIC Charly Clairmont (CCH)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * */
20
+
21
+ /**
22
+ * PaymentMethod model
23
+ *
24
+ * @author altic teams
25
+ */
26
+
27
+ class Morningtime_Internetkassa_Model_Source_PaymentMethodsList
28
+ {
29
+
30
+ public function getPMList(){
31
+
32
+ $pmList = array();
33
+
34
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
35
+ $pm->__PaymentMethod('=== Cards: Commons ===','Cards: exceptions',
36
+ '','_choice.gif','', false);
37
+ $pmList[] = $pm;
38
+
39
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
40
+ $pm->__PaymentMethod('CB','CreditCard',
41
+ '','Carte%20bleue_choice.gif','Cards: General', false);
42
+ $pmList[] = $pm;
43
+
44
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
45
+ $pm->__PaymentMethod('AIRPLUS','CreditCard',
46
+ 'AIRPLUS','AIRPLUS _choice.gif','Cards: General', false);
47
+ $pmList[] = $pm;
48
+
49
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
50
+ $pm->__PaymentMethod('American Express','CreditCard',
51
+ 'American Express','American Express _choice.gif',
52
+ 'Cards: General', false);
53
+ $pmList[] = $pm;
54
+
55
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
56
+ $pm->__PaymentMethod('Aurora','CreditCard',
57
+ 'Aurora','Aurora _choice.gif','Cards: General'
58
+ , false);
59
+ $pmList[] = $pm;
60
+
61
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
62
+ $pm->__PaymentMethod('Aurore','CreditCard',
63
+ 'Aurore','Aurore _choice.gif','Cards: General', false);
64
+ $pmList[] = $pm;
65
+
66
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
67
+ $pm->__PaymentMethod('Cofinoga','CreditCard',
68
+ 'Cofinoga','Cofinoga _choice.gif','Cards: General', false);
69
+ $pmList[] = $pm;
70
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
71
+ $pm->__PaymentMethod('Dankort','CreditCard',
72
+ 'Dankort','Dankort _choice.gif',
73
+ 'Cards: General', false);
74
+ $pmList[] = $pm;
75
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
76
+ $pm->__PaymentMethod('Diners Club','CreditCard',
77
+ 'Diners Club','Diners Club _choice.gif','Cards: General', false);
78
+ $pmList[] = $pm;
79
+
80
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
81
+ $pm->__PaymentMethod('JCB','CreditCard',
82
+ 'JCB','JCB _choice.gif','Cards: General', false);
83
+ $pmList[] = $pm;
84
+
85
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
86
+ $pm->__PaymentMethod('MaestroUK','CreditCard',
87
+ 'MaestroUK','MaestroUK _choice.gif','Cards: General', false);
88
+ $pmList[] = $pm;
89
+
90
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
91
+ $pm->__PaymentMethod('MasterCard','CreditCard',
92
+ 'MasterCard','Eurocard_choice.gif','Cards: General', false);
93
+ $pmList[] = $pm;
94
+
95
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
96
+ $pm->__PaymentMethod('Solo','CreditCard',
97
+ 'Solo','Solo _choice.gif','Cards: General', false);
98
+ $pmList[] = $pm;
99
+
100
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
101
+ $pm->__PaymentMethod('UATP','CreditCard',
102
+ 'UATP','UATP _choice.gif','Cards: General', false);
103
+ $pmList[] = $pm;
104
+
105
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
106
+ $pm->__PaymentMethod('VISA','CreditCard',
107
+ 'VISA','VISA _choice.gif','Cards: General', false);
108
+ $pmList[] = $pm;
109
+
110
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
111
+ $pm->__PaymentMethod('=== Cards: exceptions ===','Cards: exceptions',
112
+ '','_choice.gif','', false);
113
+ $pmList[] = $pm;
114
+
115
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
116
+ $pm->__PaymentMethod('BCMC','CreditCard',
117
+ 'BCMC','BCMC _choice.gif','Cards: exceptions', false);
118
+ $pmList[] = $pm;
119
+
120
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
121
+ $pm->__PaymentMethod('Maestro','CreditCard',
122
+ 'Maestro','Maestro _choice.gif',
123
+ 'Cards: exceptions', false);
124
+ $pmList[] = $pm;
125
+
126
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
127
+ $pm->__PaymentMethod('=== Cards: Online Credit ===','Cards: Online Credit',
128
+ '','_choice.gif','', false);
129
+ $pmList[] = $pm;
130
+
131
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
132
+ $pm->__PaymentMethod('NetReserve','CreditCard',
133
+ 'NetReserve','NetReserve _choice.gif',
134
+ 'Cards: Online Credit', false);
135
+ $pmList[] = $pm;
136
+
137
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
138
+ $pm->__PaymentMethod('UNEUROCOM','UNEUROCOM',
139
+ 'UNEUROCOM','UNEUROCOM _choice.gif',
140
+ 'Cards: Online Credit', false);
141
+ $pmList[] = $pm;
142
+
143
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
144
+ $pm->__PaymentMethod('=== WebBanking ===','WebBanking',
145
+ '','_choice.gif','', false);
146
+ $pmList[] = $pm;
147
+
148
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
149
+ $pm->__PaymentMethod('CBC Online','CBC Online',
150
+ 'CBC Online','CBC Online _choice.gif',
151
+ 'WebBanking', false);
152
+ $pmList[] = $pm;
153
+
154
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
155
+ $pm->__PaymentMethod('CENTEA Online','CENTEA Online',
156
+ 'CENTEA Online','CENTEA Online _choice.gif',
157
+ 'WebBanking', false);
158
+ $pmList[] = $pm;
159
+
160
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
161
+ $pm->__PaymentMethod('Dexia Direct Net','Dexia Direct Net',
162
+ 'Dexia Direct Net','Dexia Direct Net _choice.gif',
163
+ 'WebBanking', false);
164
+ $pmList[] = $pm;
165
+
166
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
167
+ $pm->__PaymentMethod('eDankort','eDankort',
168
+ 'eDankort','eDankort _choice.gif','WebBanking', false);
169
+ $pmList[] = $pm;
170
+
171
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
172
+ $pm->__PaymentMethod('EPS','EPS',
173
+ 'EPS','EPS _choice.gif','WebBanking', false);
174
+ $pmList[] = $pm;
175
+
176
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
177
+ $pm->__PaymentMethod('iDEAL','iDEAL',
178
+ 'iDEAL','iDEAL _choice.gif','WebBanking', false);
179
+ $pmList[] = $pm;
180
+
181
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
182
+ $pm->__PaymentMethod('ING HomePay','ING HomePay',
183
+ 'ING HomePay','ING HomePay _choice.gif','WebBanking', false);
184
+ $pmList[] = $pm;
185
+
186
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
187
+ $pm->__PaymentMethod('KBC Online','KBC Online',
188
+ 'KBC Online','KBC Online _choice.gif','WebBanking', false);
189
+ $pmList[] = $pm;
190
+
191
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
192
+ $pm->__PaymentMethod('PostFinance Debit Direct','PostFinance Debit Direct',
193
+ 'PostFinance Debit Direct','PostFinance Debit Direct _choice.gif','WebBanking', false);
194
+ $pmList[] = $pm;
195
+
196
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
197
+ $pm->__PaymentMethod('PostFinance yellownet','PostFinance yellownet',
198
+ 'PostFinance yellownet','PostFinance yellownet _choice.gif','WebBanking', false);
199
+ $pmList[] = $pm;
200
+
201
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
202
+ $pm->__PaymentMethod('=== Direct Debit ===','Direct Debits',
203
+ '','_choice.gif','', false);
204
+ $pmList[] = $pm;
205
+
206
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
207
+ $pm->__PaymentMethod('Direct Debits DE','Direct Debits DE',
208
+ 'Direct Debits DE','Direct Debits DE _choice.gif','Direct Debits', false);
209
+ $pmList[] = $pm;
210
+
211
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
212
+ $pm->__PaymentMethod('Direct Debits NL','Direct Debits NL',
213
+ 'Direct Debits NL','Direct Debits NL _choice.gif','Direct Debits', false);
214
+ $pmList[] = $pm;
215
+
216
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
217
+ $pm->__PaymentMethod('=== Offline payment ===','Offline payment',
218
+ '','_choice.gif','', false);
219
+ $pmList[] = $pm;
220
+
221
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
222
+ $pm->__PaymentMethod('Acceptgiro','Acceptgiro',
223
+ 'Acceptgiro','Acceptgiro _choice.gif','Offline payment', false);
224
+ $pmList[] = $pm;
225
+
226
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
227
+ $pm->__PaymentMethod('Bank transfer','Bank transfer',
228
+ 'Bank transfer','Bank transfer _choice.gif','Offline payment', false);
229
+ $pmList[] = $pm;
230
+
231
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
232
+ $pm->__PaymentMethod('Payment on Delivery','Payment on Delivery',
233
+ 'Payment on Delivery','Payment on Delivery _choice.gif','Offline payment', false);
234
+ $pmList[] = $pm;
235
+
236
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
237
+ $pm->__PaymentMethod('=== Micro ===','Micro',
238
+ '','_choice.gif','', false);
239
+ $pmList[] = $pm;
240
+
241
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
242
+ $pm->__PaymentMethod('MiniTix','MiniTix',
243
+ 'MiniTix','MiniTix _choice.gif','Micro', false);
244
+ $pmList[] = $pm;
245
+
246
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
247
+ $pm->__PaymentMethod('=== Mobile ===','Mobile',
248
+ '','_choice.gif','', false);
249
+ $pmList[] = $pm;
250
+
251
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
252
+ $pm->__PaymentMethod('TUNZ','TUNZ',
253
+ 'TUNZ','TUNZ _choice.gif','Mobile', false);
254
+ $pmList[] = $pm;
255
+
256
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
257
+ $pm->__PaymentMethod('=== Others ===','Others',
258
+ '','_choice.gif','', false);
259
+ $pmList[] = $pm;
260
+
261
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
262
+ $pm->__PaymentMethod('PAYPAL','PAYPAL',
263
+ 'PAYPAL','PAYPAL _choice.gif','Others', false);
264
+ $pmList[] = $pm;
265
+
266
+ $pm = Mage::getModel('internetkassa/source_paymentMethod');
267
+ $pm->__PaymentMethod('Wallie','Wallie',
268
+ 'Wallie','Wallie _choice.gif','Others', false);
269
+ $pmList[] = $pm;
270
+
271
+ return $pmList;
272
+ }
273
+ }
app/code/community/Morningtime/Internetkassa/controllers/OgoneController.php ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * Internetkassa Payment Front Controller
20
+ *
21
+ * @category Morningtime
22
+ * @package Morningtime_Internetkassa
23
+ * @name Morningtime_Internetkassa_InternetkassaController
24
+ * @author Magento Core Team <core@magentocommerce.com>, ALTIC
25
+ */
26
+ class Morningtime_Internetkassa_OgoneController extends Mage_Core_Controller_Front_Action
27
+ {
28
+ /**
29
+ * Get Checkout Singleton
30
+ *
31
+ * @return Mage_Checkout_Model_Session
32
+ */
33
+ public function getCheckout()
34
+ {
35
+ return Mage::getSingleton('checkout/session');
36
+ }
37
+
38
+ /**
39
+ * Order instance
40
+ */
41
+ protected $_order;
42
+ protected $_internetkassaResponse = null;
43
+
44
+ protected function _expireAjax()
45
+ {
46
+ if (!Mage::getSingleton('checkout/session')->getQuote()->hasItems()) {
47
+ $this->getResponse()->setHeader('HTTP/1.1','403 Session Expired');
48
+ exit();
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Get singleton with internetkassa order transaction information
54
+ *
55
+ * @return Morningtime_Internetkassa_Model_Internetkassa
56
+ */
57
+ public function getInternetkassa()
58
+ {
59
+ return Mage::getSingleton('internetkassa/internetkassa');
60
+ }
61
+
62
+ /**
63
+ * Get order
64
+ *
65
+ * @param none
66
+ * @return Mage_Sales_Model_Order
67
+ */
68
+ public function getOrder()
69
+ {
70
+ if ($this->_order == null) {
71
+ $session = Mage::getSingleton('checkout/session');
72
+ $this->_order = Mage::getModel('sales/order');
73
+ $this->_order->loadByIncrementId($session->getLastRealOrderId());
74
+ }
75
+ return $this->_order;
76
+ }
77
+
78
+ /**
79
+ * seting response after returning from internetkassa
80
+ *
81
+ * @param array $response
82
+ * @return object $this
83
+ */
84
+ protected function setInternetkassaResponse($response)
85
+ {
86
+ if (count($response)) {
87
+ $this->_internetkassaResponse = $response;
88
+ }
89
+ return $this;
90
+ }
91
+
92
+ /**
93
+ * Checking response and Internetkassa session variables
94
+ *
95
+ * @return unknown
96
+ */
97
+ protected function _checkResponse()
98
+ {
99
+
100
+ if (!$this->_internetkassaResponse) {
101
+ Mage::throwException($this->__('No HTML response! Missing POST/GET vars in return URL from payment processor.'));
102
+ return false;
103
+ }
104
+
105
+ //check for valid response
106
+ if ($this->getInternetkassa()->checkResponse($this->_internetkassaResponse)) {
107
+
108
+ $order = Mage::getModel('sales/order')
109
+ ->loadByIncrementId($this->_internetkassaResponse['orderID']);
110
+
111
+ $orderId = $order->getId();
112
+ if(!isset($orderId)){
113
+ Mage::throwException($this->__('Order identifier is not valid!'));
114
+ return false;
115
+ }
116
+
117
+ // test the amount
118
+ if( $this->_internetkassaResponse['amount']*100 !=
119
+ round($order->getBaseGrandTotal(), 2)*100 ){
120
+ Mage::throwException($this->__('Amount order is not valid!'));
121
+ return false;
122
+ }
123
+
124
+ // test the payment method
125
+ $payment = $this->getInternetkassa()->getQuote()->getPayment();
126
+ $ccType = $payment->getCcType();
127
+
128
+ $list = Mage::getModel('internetkassa/source_paymentMethodsList')->getPMList();
129
+ $orderInternetkassaPM = "";
130
+ $orderInternetkassaBrand = "";
131
+
132
+ for ($i = 0; $i < sizeof($list); $i++) {
133
+ if($list[$i]->getPmName() == $ccType){
134
+ $orderInternetkassaPM = $list[$i]->getPmValue();
135
+ $orderInternetkassaBrand = $list[$i]->getPmBrand();
136
+ }
137
+ }
138
+
139
+ if($orderInternetkassaPM == null && $orderInternetkassaBrand == null && $ccType != "CB" ){
140
+ Mage::throwException($this->__('No payment method found for this order!'));
141
+ return false;
142
+ }
143
+
144
+ if( $orderInternetkassaPM != $this->_internetkassaResponse['PM'] ||
145
+ ($orderInternetkassaBrand != $this->_internetkassaResponse['BRAND'] && $ccType != "CB")){
146
+ Mage::throwException($this->__('No payment method or brand not valid for this order!'));
147
+ return false;
148
+ }
149
+
150
+ // compute the feedback sha1 sign to compare it
151
+ $feedbackSign = strtoupper(sha1(
152
+ $this->_internetkassaResponse['orderID'].
153
+ $this->_internetkassaResponse['currency'].
154
+ $this->_internetkassaResponse['amount'].
155
+ $this->_internetkassaResponse['PM'].
156
+ $this->_internetkassaResponse['ACCEPTANCE'].
157
+ $this->_internetkassaResponse['STATUS'].
158
+ $this->_internetkassaResponse['CARDNO'].
159
+ $this->_internetkassaResponse['PAYID'].
160
+ $this->_internetkassaResponse['NCERROR'].
161
+ $this->_internetkassaResponse['BRAND'].
162
+ $this->getInternetkassa()->getInternetkassaSHA1PASS()
163
+ ));
164
+
165
+ if($this->_internetkassaResponse['SHASIGN'] != $feedbackSign){
166
+ Mage::throwException($this->__('Feedback signature (SHA1Sign) is not valid!'));
167
+ return false;
168
+ }
169
+
170
+ return true;
171
+ }
172
+
173
+ return true;
174
+ }
175
+
176
+ /**
177
+ * When a customer chooses Internetkassa Payment on Checkout/Payment page
178
+ *
179
+ */
180
+ public function redirectAction()
181
+ {
182
+ $session = Mage::getSingleton('checkout/session');
183
+
184
+ $order = $this->getOrder();
185
+
186
+ if (!$order->getId()) {
187
+ $this->norouteAction();
188
+ return;
189
+ }
190
+
191
+ $order->addStatusToHistory(
192
+ $order->getStatus(),
193
+ $this->__('Customer was redirected to Internetkassa.')
194
+ );
195
+ $order->save();
196
+
197
+ $this->getResponse()
198
+ ->setBody($this->getLayout()
199
+ ->createBlock('internetkassa/redirect')
200
+ ->setOrder($order)
201
+ ->toHtml());
202
+
203
+ }
204
+
205
+ /**
206
+ * Transaction result: 1. cancelled
207
+ *
208
+ * Payment cancelled by user: redirect back to checkout/cart
209
+ * We do not reset the cart, allowing user to re-order
210
+ */
211
+ public function cancelAction()
212
+ {
213
+ if ($this->getRequest()->isPost()) {
214
+ $this->setInternetkassaResponse($this->getRequest()->getPost());
215
+ } else if ($this->getRequest()->isGet()) {
216
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
217
+ }
218
+
219
+ $order = Mage::getModel('sales/order')
220
+ ->loadByIncrementId($this->_internetkassaResponse['orderID']);
221
+
222
+ $order->cancel();
223
+
224
+ $order->addStatusToHistory($order->getStatus(),
225
+ $this->__('Payment was canceled by customer.')
226
+ . "<br />Status: " . $this->_internetkassaResponse['STATUS']
227
+ . "<br />Error Code: " . $this->_internetkassaResponse['NCERROR']
228
+ );
229
+ $order->save();
230
+
231
+ $session = $this->getCheckout();
232
+ $session->addError($this->__('You cancelled the payment. Please try again.'));
233
+ $this->_redirect('checkout/cart');
234
+ }
235
+
236
+ /**
237
+ * Transaction result: 2. declined
238
+ *
239
+ * Payment declined by processor: redirect back to checkout/cart
240
+ * We do not reset the cart
241
+ */
242
+ public function declineAction()
243
+ {
244
+ if ($this->getRequest()->isPost()) {
245
+ $this->setInternetkassaResponse($this->getRequest()->getPost());
246
+ } else if ($this->getRequest()->isGet()) {
247
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
248
+ }
249
+
250
+ $order = Mage::getModel('sales/order')
251
+ ->loadByIncrementId($this->_internetkassaResponse['orderID']);
252
+
253
+ $order->addStatusToHistory($order->getStatus(),
254
+ $this->__('Payment was declined by processor.')
255
+ . "<br />Status: " . $this->_internetkassaResponse['STATUS']
256
+ . "<br />Error Code: " . $this->_internetkassaResponse['NCERROR']
257
+ );
258
+ $order->save();
259
+
260
+ $session = $this->getCheckout();
261
+ $session->addError($this->__('The payment processor declined your payment. Please try again.'));
262
+ $this->_redirect('checkout/cart');
263
+ }
264
+
265
+ /**
266
+ * Transaction result: 3. exception
267
+ *
268
+ * An exception occurred at the processor
269
+ * We have to reset the cart for precaution
270
+ */
271
+ public function exceptionAction()
272
+ {
273
+ if ($this->getRequest()->isPost()) {
274
+ $this->setInternetkassaResponse($this->getRequest()->getPost());
275
+ } else if ($this->getRequest()->isGet()) {
276
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
277
+ }
278
+
279
+ $order = Mage::getModel('sales/order')
280
+ ->loadByIncrementId($this->_internetkassaResponse['orderID']);
281
+
282
+ $order->cancel();
283
+
284
+ $order->addStatusToHistory($order->getStatus(),
285
+ $this->__('There was an exception. Payment failed.')
286
+ . "<br />Status: " . $this->_internetkassaResponse['STATUS']
287
+ . "<br />Error Code: " . $this->_internetkassaResponse['NCERROR']
288
+ );
289
+ $order->save();
290
+
291
+ $session = $this->getCheckout();
292
+ $session->setQuoteId($session->getInternetkassaQuoteId(true));
293
+ $session->getQuote()->setIsActive(false)->save();
294
+ $session->unsInternetkassaQuoteId();
295
+ $session->addError($this->__('There was an exception. Your order was cancelled. Please try again.'));
296
+ $this->_redirect('checkout/cart');
297
+ }
298
+
299
+ /**
300
+ * Transaction result: 4. success
301
+ *
302
+ * Client has returned from processor successfully
303
+ */
304
+ public function successAction()
305
+ {
306
+ if ($this->getRequest()->isPost()) {
307
+ $this->setInternetkassaResponse($this->getRequest()->getPost());
308
+ } else if ($this->getRequest()->isGet()) {
309
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
310
+ }
311
+
312
+ if ($this->_checkResponse()) {
313
+
314
+ $order = Mage::getModel('sales/order');
315
+ $order->loadByIncrementId($this->_internetkassaResponse['orderID']);
316
+
317
+ if ($this->_internetkassaResponse['STATUS'] == '5' ||
318
+ $this->_internetkassaResponse['STATUS'] == '9' // status 9 is for direct sales...
319
+ ) {
320
+ $order->addStatusToHistory(
321
+ $order->getStatus(),
322
+ $this->__('Customer successfully returned from Internetkassa.')
323
+ . "\n<br>Payment Method:" .$this->_internetkassaResponse['PM']
324
+ . "\n<br>Operator:" .$this->_internetkassaResponse['BRAND']
325
+ . "\n<br>Card No:" . $this->_internetkassaResponse['CARDNO']
326
+ . "\n<br>TransactionId:" . $this->_internetkassaResponse['PAYID']
327
+ ."\n<br>\n<br>Operator Code :" . $this->_internetkassaResponse['ACCEPTANCE']
328
+ ."\n<br>\n<br>Error Code:" . $this->_internetkassaResponse['NCERROR']
329
+ );
330
+
331
+ if ($order->canInvoice()) {
332
+ $invoice = $order->prepareInvoice();
333
+ $invoice->register()->capture();
334
+ Mage::getModel('core/resource_transaction')
335
+ ->addObject($invoice)
336
+ ->addObject($invoice->getOrder())
337
+ ->save();
338
+ }
339
+
340
+ // $order->sendNewOrderEmail();
341
+ $order->save();
342
+
343
+ $this->_redirect('checkout/onepage/success');
344
+ return;
345
+
346
+ } else {
347
+ $order->cancel();
348
+ $order->addStatusToHistory($order->getStatus(), $this->__('An unexpected error occurred.'));
349
+
350
+ $session = Mage::getSingleton('checkout/session');
351
+ $session->addError($this->__('An unexpected error occurred. Your order was cancelled. Please try again.'));
352
+ $redirectTo = 'checkout/cart';
353
+ return;
354
+ }
355
+ } else {
356
+ $this->norouteAction();
357
+ return;
358
+ }
359
+ }
360
+
361
+ /**
362
+ * Post-payment processing
363
+ *
364
+ * Imagine a customer does not properly redirect after paying
365
+ * This function is called by the Internetkassa dashboard, to re-repeat the call
366
+ */
367
+ public function processAction() {
368
+
369
+ if ($this->getRequest()->isPost()) {
370
+ $this->setInternetkassaResponse($this->getRequest()->getPost());
371
+ } else if ($this->getRequest()->isGet()) {
372
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
373
+ }
374
+
375
+ if ($this->_checkResponse()) {
376
+
377
+ $order = Mage::getModel('sales/order');
378
+ $order->loadByIncrementId($this->_internetkassaResponse['orderID']);
379
+
380
+ if ($this->_internetkassaResponse['STATUS'] == '5' ||
381
+ $this->_internetkassaResponse['STATUS'] == '9'
382
+ ) {
383
+ $order->addStatusToHistory(
384
+ $order->getStatus(),
385
+ $this->__('Automatic update: payment successful!')
386
+ . "<br />Payment Method:" .$this->_internetkassaResponse['PM']
387
+ . "<br />Operator:" .$this->_internetkassaResponse['BRAND']
388
+ . "<br />Card No:" . $this->_internetkassaResponse['CARDNO']
389
+ . "<br />TransactionId:" . $this->_internetkassaResponse['PAYID']
390
+ . "<br />Status :" . $this->_internetkassaResponse['STATUS']
391
+ . "<br />Operator Code :" . $this->_internetkassaResponse['ACCEPTANCE']
392
+ . "<br />Error Code:" . $this->_internetkassaResponse['NCERROR']
393
+ );
394
+
395
+ if ($order->canInvoice()) {
396
+ $invoice = $order->prepareInvoice();
397
+ $invoice->register()->capture();
398
+ Mage::getModel('core/resource_transaction')
399
+ ->addObject($invoice)
400
+ ->addObject($invoice->getOrder())
401
+ ->save();
402
+ }
403
+
404
+ $order->sendNewOrderEmail();
405
+ $order->save();
406
+
407
+ $this->norouteAction();
408
+ return;
409
+
410
+ } else {
411
+ /**
412
+ * All other response cancel the order
413
+ * but we save the status
414
+ */
415
+ $order->cancel();
416
+ $order->addStatusToHistory(
417
+ $order->getStatus(),
418
+ $this->__('Automatic update: customer was rejected by Internetkassa')
419
+ . "\n<br>\n<br>Status :" . $this->_internetkassaResponse['STATUS']
420
+ . "\n<br>\n<br>Error Code:" . $this->_internetkassaResponse['NCERROR']
421
+ );
422
+
423
+ $this->norouteAction();
424
+ return;
425
+ }
426
+ } else {
427
+ $this->norouteAction();
428
+ return;
429
+ }
430
+ }
431
+
432
+ /**
433
+ * Error action. If request params to Internetkassa has mistakes,
434
+ * i.e. SHA1Sign check failed
435
+ */
436
+ public function errorAction()
437
+ {
438
+ if ($this->getRequest()->isGet()) {
439
+ $this->setInternetkassaResponse($this->getRequest()->getParams());
440
+ }
441
+
442
+ $session = Mage::getSingleton('checkout/session');
443
+ $errorMsg = $this->__('An unexpected error occurred. Payment failed.')
444
+ . "<br />Status: " .$this->_internetkassaResponse['STATUS'];
445
+ $session->addError($errorMsg);
446
+
447
+ $order = Mage::getModel('sales/order');
448
+ $order->loadByIncrementId($this->_internetkassaResponse['orderID']);
449
+
450
+ if (!$order->getId()) {
451
+ $this->norouteAction();
452
+ return;
453
+ }
454
+ if ($order instanceof Mage_Sales_Model_Order && $order->getId()) {
455
+ $order->addStatusToHistory(
456
+ $order->getStatus(),
457
+ $this->__('Customer returned from Internetkassa.') . $errorMsg
458
+ );
459
+
460
+ $order->save();
461
+ }
462
+
463
+ // $this->loadLayout();
464
+ // $this->renderLayout();
465
+ Mage::getSingleton('checkout/session')->unsLastRealOrderId();
466
+ $this->_redirect('ideal/error');
467
+ }
468
+
469
+ }
app/code/community/Morningtime/Internetkassa/etc/config.xml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /**
4
+ * Magento Internetkassa extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Morningtime
14
+ * @package Morningtime_Internetkassa
15
+ * @copyright Copyright (c) 2009 Morningtime Internet
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Morningtime_Internetkassa>
22
+ <version>0.1.0</version>
23
+ </Morningtime_Internetkassa>
24
+ </modules>
25
+ <global>
26
+ <models>
27
+ <internetkassa>
28
+ <class>Morningtime_Internetkassa_Model</class>
29
+ </internetkassa>
30
+ </models>
31
+ <blocks>
32
+ <internetkassa>
33
+ <class>Morningtime_Internetkassa_Block</class>
34
+ </internetkassa>
35
+ </blocks>
36
+ <resources>
37
+ <internetkassa_write>
38
+ <connection>
39
+ <use>core_write</use>
40
+ </connection>
41
+ </internetkassa_write>
42
+ <internetkassa_read>
43
+ <connection>
44
+ <use>core_read</use>
45
+ </connection>
46
+ </internetkassa_read>
47
+ </resources>
48
+ <helpers>
49
+ <internetkassa>
50
+ <class>Morningtime_Internetkassa_Helper</class>
51
+ </internetkassa>
52
+ </helpers>
53
+ <payment>
54
+ <internetkassa>
55
+ <languages>
56
+ <US>
57
+ <code>US</code>
58
+ <name>US ENglish</name>
59
+ </US>
60
+ <NL>
61
+ <code>NL</code>
62
+ <name>Dutch</name>
63
+ </NL>
64
+ </languages>
65
+ <currencies>
66
+ <EUR>
67
+ <code>978</code>
68
+ <name>Euro</name>
69
+ </EUR>
70
+ <CAD>
71
+ <code>124</code>
72
+ <name>Canadian Dollar</name>
73
+ </CAD>
74
+ <CHF>
75
+ <code>756</code>
76
+ <name>Swiss Franc</name>
77
+ </CHF>
78
+ <SEK>
79
+ <code>752</code>
80
+ <name>Swedish Krone</name>
81
+ </SEK>
82
+ <GBP>
83
+ <code>826</code>
84
+ <name>Pound Sterling</name>
85
+ </GBP>
86
+ <USD>
87
+ <code>840</code>
88
+ <name>US Dollar</name>
89
+ </USD>
90
+ </currencies>
91
+ </internetkassa>
92
+ </payment>
93
+ </global>
94
+
95
+ <adminhtml>
96
+ <translate>
97
+ <modules>
98
+ <Morningtime_Internetkassa>
99
+ <files>
100
+ <default>Morningtime_Internetkassa.csv</default>
101
+ </files>
102
+ </Morningtime_Internetkassa>
103
+ </modules>
104
+ </translate>
105
+ </adminhtml>
106
+
107
+ <frontend>
108
+ <blocks>
109
+ <internetkassa>
110
+ <class>Morningtime_Internetkassa_Block</class>
111
+ </internetkassa>
112
+ </blocks>
113
+ <routers>
114
+ <internetkassa>
115
+ <use>standard</use>
116
+ <args>
117
+ <module>Morningtime_Internetkassa</module>
118
+ <frontName>internetkassa</frontName>
119
+ </args>
120
+ </internetkassa>
121
+ </routers>
122
+ <translate>
123
+ <modules>
124
+ <Morningtime_Internetkassa>
125
+ <files>
126
+ <default>Morningtime_Internetkassa.csv</default>
127
+ </files>
128
+ </Morningtime_Internetkassa>
129
+ </modules>
130
+ </translate>
131
+ </frontend>
132
+
133
+ <default>
134
+ <payment>
135
+ <internetkassa>
136
+ <active>0</active>
137
+ <model>internetkassa/internetkassa</model>
138
+ <title>Internetkassa</title>
139
+ <order_status>Pending</order_status>
140
+ <ogone_logo>https://secure.ogone.com/images/ogone.gif</ogone_logo>
141
+ <SHA1PASS></SHA1PASS>
142
+ <PSPID></PSPID>
143
+ <Currency>EUR</Currency>
144
+ <Language>nl_NL</Language>
145
+ <PAGE_TITLE></PAGE_TITLE>
146
+ <BGCOLOR>#AF390A</BGCOLOR>
147
+ <TXTCOLOR>#CDC40F</TXTCOLOR>
148
+ <TBLBGCOLOR>#CDC40F</TBLBGCOLOR>
149
+ <TBLTXTCOLOR>#000000</TBLTXTCOLOR>
150
+ <BUTTONBGCOL>#763642</BUTTONBGCOL>
151
+ <BUTTONTXTCOLOR>#CDC40F</BUTTONTXTCOLOR>
152
+ <FONTTYPE>Verdana</FONTTYPE>
153
+ <LOGO></LOGO>
154
+ <TP></TP>
155
+ <accepturl>{{unsecure_base_url}}internetkassa/ogone/success</accepturl>
156
+ <declineurl>{{unsecure_base_url}}internetkassa/ogone/decline</declineurl>
157
+ <exceptionurl>{{unsecure_base_url}}internetkassa/ogone/exception</exceptionurl>
158
+ <cancelurl>{{unsecure_base_url}}internetkassa/ogone/cancel</cancelurl>
159
+ <homeurl>{{unsecure_base_url}}</homeurl>
160
+ <catalogurl>{{unsecure_base_url}}</catalogurl>
161
+ <CN></CN>
162
+ <EMAIL></EMAIL>
163
+ <PM></PM>
164
+ <BRAND></BRAND>
165
+ <SHASign></SHASign>
166
+ <Signature></Signature>
167
+ <ownerZIP></ownerZIP>
168
+ <owneraddress></owneraddress>
169
+ <ownercty></ownercty>
170
+ <Alias></Alias>
171
+ <AliasUsage></AliasUsage>
172
+ <AliasOperationCOM></AliasOperationCOM>
173
+ <COMPLUS></COMPLUS>
174
+ <PARAMPLUS></PARAMPLUS>
175
+ <PARAMVAR></PARAMVAR>
176
+ <USERID></USERID>
177
+ <CreditCode></CreditCode>
178
+ <allowspecific>0</allowspecific>
179
+ </internetkassa>
180
+ </payment>
181
+ </default>
182
+ </config>
app/code/community/Morningtime/Internetkassa/etc/system.xml ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /**
4
+ * Magento Internetkassa extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Morningtime
14
+ * @package Morningtime_Internetkassa
15
+ * @copyright Copyright (c) 2009 Morningtime Internet
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <sections>
21
+ <payment>
22
+ <groups>
23
+ <internetkassa translate="label" module="internetkassa">
24
+ <label>Internetkassa</label>
25
+ <frontend_type>text</frontend_type>
26
+ <sort_order>0</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ <fields>
31
+ <title translate="label">
32
+ <label>Title</label>
33
+ <frontend_type>text</frontend_type>
34
+ <sort_order>30</sort_order>
35
+ <show_in_default>1</show_in_default>
36
+ <show_in_website>1</show_in_website>
37
+ <show_in_store>0</show_in_store>
38
+ </title>
39
+ <order_status translate="label">
40
+ <label>New order status</label>
41
+ <frontend_type>select</frontend_type>
42
+ <source_model>adminhtml/system_config_source_order_status_new</source_model>
43
+ <sort_order>320</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>0</show_in_store>
47
+ </order_status>
48
+ <active translate="label">
49
+ <label>Enabled</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>10</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>0</show_in_store>
56
+ </active>
57
+ <test translate="label">
58
+ <label>Test mode</label>
59
+ <frontend_type>select</frontend_type>
60
+ <source_model>adminhtml/system_config_source_yesno</source_model>
61
+ <sort_order>20</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>0</show_in_store>
65
+ </test>
66
+ <issuer translate="label">
67
+ <label>Issuer</label>
68
+ <frontend_type>select</frontend_type>
69
+ <source_model>internetkassa/source_issuers</source_model>
70
+ <sort_order>25</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>0</show_in_store>
74
+ </issuer>
75
+ <PSPID translate="label">
76
+ <label>PSPID</label>
77
+ <frontend_type>text</frontend_type>
78
+ <sort_order>40</sort_order>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>0</show_in_store>
82
+ </PSPID>
83
+ <SHA1PASS translate="label">
84
+ <label>SHA1PASS</label>
85
+ <frontend_type>text</frontend_type>
86
+ <sort_order>50</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>0</show_in_store>
90
+ </SHA1PASS>
91
+ <Currency>
92
+ <label>Currency</label>
93
+ <frontend_type>multiselect</frontend_type>
94
+ <source_model>internetkassa/source_currencies</source_model>
95
+ <sort_order>60</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>0</show_in_store>
99
+ </Currency>
100
+ <Language>
101
+ <label>Language</label>
102
+ <frontend_type>select</frontend_type>
103
+ <source_model>internetkassa/source_languages</source_model>
104
+ <sort_order>70</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>0</show_in_store>
108
+ </Language>
109
+ <PAGE_TITLE>
110
+ <label>PAGE_TITLE</label>
111
+ <frontend_type>text</frontend_type>
112
+ <sort_order>80</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>1</show_in_website>
115
+ <show_in_store>0</show_in_store>
116
+ </PAGE_TITLE>
117
+ <BGCOLOR>
118
+ <label>BGCOLOR</label>
119
+ <frontend_type>text</frontend_type>
120
+ <sort_order>90</sort_order>
121
+ <show_in_default>1</show_in_default>
122
+ <show_in_website>1</show_in_website>
123
+ <show_in_store>0</show_in_store>
124
+ </BGCOLOR>
125
+ <TXTCOLOR>
126
+ <label>TXTCOLOR</label>
127
+ <frontend_type>text</frontend_type>
128
+ <sort_order>100</sort_order>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>0</show_in_store>
132
+ </TXTCOLOR>
133
+ <TBLBGCOLOR>
134
+ <label>TBLBGCOLOR</label>
135
+ <frontend_type>text</frontend_type>
136
+ <sort_order>110</sort_order>
137
+ <show_in_default>1</show_in_default>
138
+ <show_in_website>1</show_in_website>
139
+ <show_in_store>0</show_in_store>
140
+ </TBLBGCOLOR>
141
+ <TBLTXTCOLOR>
142
+ <label>TBLTXTCOLOR</label>
143
+ <frontend_type>text</frontend_type>
144
+ <sort_order>120</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>0</show_in_store>
148
+ </TBLTXTCOLOR>
149
+ <BUTTONBGCOL>
150
+ <label>BUTTONBGCOL</label>
151
+ <frontend_type>text</frontend_type>
152
+ <sort_order>130</sort_order>
153
+ <show_in_default>1</show_in_default>
154
+ <show_in_website>1</show_in_website>
155
+ <show_in_store>0</show_in_store>
156
+ </BUTTONBGCOL>
157
+ <BUTTONTXTCOLOR>
158
+ <label>BUTTONTXTCOLOR</label>
159
+ <frontend_type>text</frontend_type>
160
+ <sort_order>140</sort_order>
161
+ <show_in_default>1</show_in_default>
162
+ <show_in_website>1</show_in_website>
163
+ <show_in_store>0</show_in_store>
164
+ </BUTTONTXTCOLOR>
165
+ <FONTTYPE>
166
+ <label>FONTTYPE</label>
167
+ <frontend_type>text</frontend_type>
168
+ <sort_order>150</sort_order>
169
+ <show_in_default>1</show_in_default>
170
+ <show_in_website>1</show_in_website>
171
+ <show_in_store>0</show_in_store>
172
+ </FONTTYPE>
173
+ <LOGO>
174
+ <label>LOGO</label>
175
+ <frontend_type>text</frontend_type>
176
+ <sort_order>160</sort_order>
177
+ <show_in_default>1</show_in_default>
178
+ <show_in_website>1</show_in_website>
179
+ <show_in_store>0</show_in_store>
180
+ </LOGO>
181
+ <TP>
182
+ <label>TP</label>
183
+ <frontend_type>text</frontend_type>
184
+ <sort_order>170</sort_order>
185
+ <show_in_default>1</show_in_default>
186
+ <show_in_website>1</show_in_website>
187
+ <show_in_store>0</show_in_store>
188
+ </TP>
189
+ <accepturl>
190
+ <label>accepturl</label>
191
+ <frontend_type>text</frontend_type>
192
+ <sort_order>180</sort_order>
193
+ <show_in_default>1</show_in_default>
194
+ <show_in_website>1</show_in_website>
195
+ <show_in_store>0</show_in_store>
196
+ </accepturl>
197
+ <declineurl>
198
+ <label>declineurl</label>
199
+ <frontend_type>text</frontend_type>
200
+ <sort_order>190</sort_order>
201
+ <show_in_default>1</show_in_default>
202
+ <show_in_website>1</show_in_website>
203
+ <show_in_store>0</show_in_store>
204
+ </declineurl>
205
+ <exceptionurl>
206
+ <label>exceptionurl</label>
207
+ <frontend_type>text</frontend_type>
208
+ <sort_order>200</sort_order>
209
+ <show_in_default>1</show_in_default>
210
+ <show_in_website>1</show_in_website>
211
+ <show_in_store>0</show_in_store>
212
+ </exceptionurl>
213
+ <cancelurl>
214
+ <label>cancelurl</label>
215
+ <frontend_type>text</frontend_type>
216
+ <sort_order>210</sort_order>
217
+ <show_in_default>1</show_in_default>
218
+ <show_in_website>1</show_in_website>
219
+ <show_in_store>0</show_in_store>
220
+ </cancelurl>
221
+ <homeurl>
222
+ <label>homeurl</label>
223
+ <frontend_type>text</frontend_type>
224
+ <sort_order>220</sort_order>
225
+ <show_in_default>1</show_in_default>
226
+ <show_in_website>1</show_in_website>
227
+ <show_in_store>0</show_in_store>
228
+ </homeurl>
229
+ <catalogurl>
230
+ <label>catalogurl</label>
231
+ <frontend_type>text</frontend_type>
232
+ <sort_order>230</sort_order>
233
+ <show_in_default>1</show_in_default>
234
+ <show_in_website>1</show_in_website>
235
+ <show_in_store>0</show_in_store>
236
+ </catalogurl>
237
+ <cctypes>
238
+ <label>Payment Methods</label>
239
+ <frontend_type>multiselect</frontend_type>
240
+ <source_model>internetkassa/source_paymentMethods</source_model>
241
+ <sort_order>240</sort_order>
242
+ <show_in_default>1</show_in_default>
243
+ <show_in_website>1</show_in_website>
244
+ <show_in_store>0</show_in_store>
245
+ </cctypes>
246
+ </fields>
247
+ </internetkassa>
248
+ </groups>
249
+ </payment>
250
+ </sections>
251
+ </config>
app/design/adminhtml/default/default/template/morningtime/internetkassa/info.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Ogone Payment extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mage
13
+ * @package Mage_Ogone
14
+ * @copyright Copyright (c) 2008 ALTIC Charly Clairmont (CCH)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ *
17
+ * @file Ogone/info/Ogone.phtml
18
+ */
19
+ ?>
20
+ <?php if($_info = $this->getInfo()): ?>
21
+ <p><?php print $this->__('Paid with Ogone'); ?></p>
22
+ <?php if($_info->getIssuerPaymentMethod()){ ?>
23
+ <p><?php print $this->__('Card type'); ?>: <?php echo $_info->getPaymentMethod()->getValue(); ?></p>
24
+ <p><?php print $this->__('Processor'); ?>: <?php echo $_info->getPaymentMethod()->getBrand(); ?></p>
25
+ <?php } ?>
26
+ <?php else: ?>
27
+ <?php endif; ?>
app/design/adminhtml/default/default/template/morningtime/internetkassa/pdf/info.phtml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Ogone Payment extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mage
13
+ * @package Mage_Ogone
14
+ * @copyright Copyright (c) 2008 ALTIC Charly Clairmont (CCH)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ *
17
+ * @file Ogone/info/Ogone.phtml
18
+ */
19
+ ?>
20
+ <?php echo $this->__('Paid with Ogone') ?>
21
+ {{pdf_row_separator}}
22
+ <?php if($this->getIssuerPaymentMethod()->getValue()){ ?>
23
+ <?php print $this->__('Card type'); ?>: <?php echo $this->getPaymentMethod()->getValue(); ?>
24
+ <?php } ?>
app/design/frontend/default/default/template/morningtime/internetkassa/form.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ ?>
18
+ <fieldset class="form-list">
19
+ <?php
20
+ $_code=$this->getMethodCode() ;
21
+ $_method = $this->getMethod();
22
+ ?>
23
+ <p><?php print $this->__('Choose your payment method'); ?>:</p>
24
+ <span id="internetkassa-please-wait" style="display:none;" class="opc-please-wait">
25
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> &nbsp; <?php echo $this->__('Loading next step...') ?> &nbsp;
26
+ </span>
27
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
28
+ <?php
29
+ $list = Mage::getModel('internetkassa/source_paymentMethodsList')->getPMList();
30
+ if ($_method ) {
31
+ $availableTypes = $_method->getConfigData('cctypes');
32
+ if ($availableTypes) {
33
+ $availableTypes = explode(',', $availableTypes);
34
+
35
+ foreach ($availableTypes as $key=>$name) {
36
+ ?>
37
+ <li style="border-bottom: 1px solid #ddd; padding: 0.5em; margin: auto; height: auto;">
38
+ <img src="https://secure.ogone.com/images/<?php echo $name ?>_choice.gif" style="float: left; margin-right: 1em;">
39
+ <input type="radio" name="payment[cc_type]" value="<?php echo $name?>"> <?php echo $name?>
40
+ </li>
41
+ <?php
42
+ }
43
+ }
44
+ }
45
+ ?>
46
+ </ul>
47
+ </fieldset>
app/design/frontend/default/default/template/morningtime/internetkassa/info.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento Internetkassa extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Morningtime
13
+ * @package Morningtime_Internetkassa
14
+ * @copyright Copyright (c) 2009 Morningtime Internet
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ ?>
18
+ <?php if($_info = $this->getInfo()): ?>
19
+ <p><?php print $this->__('Paid with Internetkassa'); ?></p>
20
+ <?php if($_info->getIssuerPaymentMethod()){ ?>
21
+ <p><?php print $this->__('Card type'); ?>: <?php echo $_info->getPaymentMethod()->getValue(); ?></p>
22
+ <p><?php print $this->__('Processor'); ?>: <?php echo $_info->getPaymentMethod()->getBrand(); ?></p>
23
+ <?php } ?>
24
+ <?php else: ?>
25
+ <?php endif; ?>
app/etc/modules/Morningtime_Internetkassa.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ /**
4
+ * Magento Internetkassa extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Morningtime
14
+ * @package Morningtime_Internetkassa
15
+ * @copyright Copyright (c) 2009 Morningtime Internet
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Morningtime_Internetkassa>
22
+ <active>true</active>
23
+ <codePool>community</codePool>
24
+ <depends>
25
+ <Mage_Payment/>
26
+ </depends>
27
+ <version>0.1.0</version>
28
+ </Morningtime_Internetkassa>
29
+ </modules>
30
+ </config>
app/locale/en_US/Morningtime_Internetkassa.csv ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "You will be redirected to the Internetkassa in a few seconds.","You will be redirected to the Internetkassa in a few seconds."
2
+ "No HTML response! Missing POST/GET vars in return URL from payment processor.","No HTML response! Missing POST/GET vars in return URL from payment processor."
3
+ "Order identifier is not valid!","Order identifier is not valid!"
4
+ "Amount order is not valid!","Amount order is not valid!"
5
+ "No payment method found for this order!","No payment method found for this order!"
6
+ "No payment method or brand not valid for this order!","No payment method or brand not valid for this order!"
7
+ "Feedback signature (SHA1Sign) is not valid!","Feedback signature (SHA1Sign) is not valid!"
8
+ "Customer was redirected to Internetkassa.","Customer was redirected to Internetkassa."
9
+ "Payment was canceled by customer.","Payment was canceled by customer."
10
+ "You cancelled the payment. Please try again.","You cancelled the payment. Please try again."
11
+ "Payment was declined by processor.","Payment was declined by processor."
12
+ "The payment processor declined your payment. Please try again.","The payment processor declined your payment. Please try again."
13
+ "There was an exception. Payment failed.","There was an exception. Payment failed."
14
+ "There was an exception. Your order was cancelled. Please try again.","Er was een uitzondering. De betaling is mislukt. Probeer opnieuw."
15
+ "Customer successfully returned from Internetkassa.","Customer successfully returned from Internetkassa."
16
+ "An unexpected error occurred. Payment failed.","An unexpected error occurred. Payment failed."
17
+ "An unexpected error occurred. Your order was cancelled. Please try again.","An unexpected error occurred. Your order was cancelled. Please try again."
18
+ "Automatic update: payment successful!","Automatic update: payment successful!"
19
+ "Automatic update: customer was rejected by Internetkassa","Automatic update: customer was rejected by Internetkassa."
20
+ "Customer returned from Internetkassa.","Customer returned from Internetkassa."
21
+ "Paid with Internetkassa","Paid with Internetkassa"
22
+ "Card type","Card type"
23
+ "Processor","Processor"
24
+ "Choose your payment method","Choose your payment method"
app/locale/nl_NL/Morningtime_Internetkassa.csv ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "You will be redirected to the Internetkassa in a few seconds.","U wordt binnen enkele seconden naar de Internetkassa doorgestuurd."
2
+ "No HTML response! Missing POST/GET vars in return URL from payment processor.","Geen HTML antwoord! Er ontbreken POST/GET variabelen in de terugkeer-URL."
3
+ "Order identifier is not valid!","Order ID is niet geldig!"
4
+ "Amount order is not valid!","Bedrag is niet geldig!"
5
+ "No payment method found for this order!","Geen betaalmethode gevonden voor deze order!"
6
+ "No payment method or brand not valid for this order!","Geen betaalmethode of type gevonden voor deze order!"
7
+ "Feedback signature (SHA1Sign) is not valid!","Order is corrupt! SHA1Sign validatie mislukt."
8
+ "Customer was redirected to Internetkassa.","Klant is doorverwezen naar de Internetkassa."
9
+ "Payment was canceled by customer.","Betaling geannuleerd door klant."
10
+ "You cancelled the payment. Please try again.","U heeft de betaling geannuleerd. Probeer opnieuw."
11
+ "Payment was declined by processor.","Betaling geannuleerd door Internetkassa."
12
+ "The payment processor declined your payment. Please try again.","Internetkassa heeft uw betaling geweigerd. Probeer opnieuw."
13
+ "There was an exception. Payment failed.","Een uitzondering heeft plaatsgevonden. Betaling mislukt."
14
+ "There was an exception. Your order was cancelled. Please try again.","Er was een uitzondering. De betaling is mislukt. Probeer opnieuw."
15
+ "Customer successfully returned from Internetkassa.","Klant succesvol teruggekeerd van de Internetkassa."
16
+ "An unexpected error occurred. Payment failed.","Een onverwachtte error heeft plaatsgevonden. Betaling mislukt."
17
+ "An unexpected error occurred. Your order was cancelled. Please try again.","Een onverwachtte error heeft plaatsgevonden. Betaling mislukt. Probeer opnieuw."
18
+ "Automatic update: payment successful!","Automatische update: klant heeft betaald!"
19
+ "Automatic update: customer was rejected by Internetkassa","Automatische update: klant heeft NIET betaald!"
20
+ "Customer returned from Internetkassa.","Klant teruggekeerd van de Internetkassa."
21
+ "Paid with Internetkassa","Betaald met Internetkassa"
22
+ "Card type","Betaalmethode"
23
+ "Processor","Merk"
24
+ "Choose your payment method","Kies uw betaalmethode"
package.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Morningtime_Internetkassa</name>
4
+ <version>1.3.2.4</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>(Dutch only) - Internetkassa voor iDEAL Only, Rabobank, ABN AMRO, ING Bank (TWYP), Fortis (NEOS) en Ogone. Ondersteuning voor iDEAL, Credit Cards, Paypal en veel meer!</summary>
10
+ <description>(Dutch only) - Internetkassa voor de Rabobank, ABN AMRO, ING Bank (TWYP), Fortis (NEOS) en Ogone. Ondersteuning voor iDEAL, Credit Cards, Paypal en veel meer!
11
+
12
+ Installatie in twee stappen. 1. Magento, 2. Internetkassa
13
+
14
+ == 1. INSTALLATIE MAGENTO ==
15
+ Installeren via Magento Connect. Refresh cache en opnieuw inloggen in admin. Bekijk de instellingen op Systeem &gt; Configuratie &gt; Betaalwijzen &gt; Internetkassa.
16
+
17
+ De volgende instellingen wijzigen:
18
+
19
+ - Enabled: Yes
20
+ - Test mode: Yes
21
+ - Issuer: kies uw bank / systeem
22
+ - Currency: kies uw munteenheden
23
+ - PSPID: uw pspid van uw bank / systeem
24
+ - Language: kies transactie-taal
25
+ - Payment methods: selecteer uw betaal opties, bijvoorbeeld iDEAL
26
+ - Order status: in afwachting
27
+
28
+ == 2. INTERNETKASSA ==
29
+ - login op uw test account
30
+ - activeer gewenste betaalmethoden, bijv. iDEAL en VISA (vraag hulp bij bank)
31
+ - Ga naar "technische informatie":
32
+
33
+ Tabblad Algemeen:
34
+ - Standaard operatie: "Verkoop"
35
+ - Verwerking transacties: "Altijd online"
36
+
37
+ Tabblad Data en herkomst:
38
+ - Url van de pagina is http://www.uwdomein.nl/
39
+ - SHA1In versleuting: verzin een sterk wachtwoord
40
+
41
+ Tabblad Transactiefeedback
42
+ - Urls leeg laten (loopt via shop)
43
+ - " Ik wil transactie feedback parameters" aanvinken
44
+ - SHA1OUT versleuteling: vooer hetzelfde wachtwoord in als bij SHA1IN
45
+
46
+ KLAAR - na testen kunt u het test-account omzetten naar productie. Voer dan weer dezelfde instellingen in!
47
+
48
+ == COMMERCIELE HULP ==
49
+ Voor commerciele hulp bij installaties, stuur een email naar info@morningtime.com.
50
+
51
+ == ONDERSTEUNING VOOR: ==
52
+ - iDEAL Only Kassa's
53
+ - Rabo Internetkassa
54
+ - ABN AMRO Internetkassa
55
+ - ING Bank / The Way You Pay (TWYP)
56
+ - Fortis Bank (NEOS Solutions)
57
+ - Ogone
58
+
59
+ == BETAALMETHODEN ==
60
+ - iDEAL, PayPal, Wallie
61
+
62
+ - Credit Cards: CB, AIRPLUS, American Express, Aurora, Aurore, Cofinoga, Dankort, Diners Club, JCB, Maestro UK, MasterCard, Solo, UATP, VISA
63
+
64
+ - Web Money: NetREserve, UNEUROCOM,
65
+
66
+ - Internetbankieren: CBC Online, CENTEA Online, Dexia Direct Net, eDankort, EPS, iDEAL, ING HomePay, KBC Online, PostFinance Debit Direct, PostFInance yellownet, Direct Debits DE, NL
67
+
68
+ - Offline: Acceptgiro, Bank transfer, Payment on Delivery
69
+
70
+ - Micro </description>
71
+ <notes>Stable Release</notes>
72
+ <authors><author><name>Mathijs Koenraadt (MSc)</name><user>auto-converted</user><email>info@morningtime.com</email></author></authors>
73
+ <date>2009-10-09</date>
74
+ <time>16:27:14</time>
75
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="morningtime"><dir name="internetkassa"><file name="info.phtml" hash="3cbd827aa0a3a4edb008c7b990c3db66"/><dir name="pdf"><file name="info.phtml" hash="05579e93a584cc9ee43a53fea8ba6da5"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="morningtime"><dir name="internetkassa"><file name="form.phtml" hash="f4c3980157bf03ee737d179cef4324be"/><file name="info.phtml" hash="1109a89242b9700c6429e86b72e738d3"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Morningtime_Internetkassa.csv" hash="b1e3eb529b4ab6adfb7493b8192313c3"/></dir><dir name="nl_NL"><file name="Morningtime_Internetkassa.csv" hash="1b5a29d46a4e47e7e0c06e5a3f5e2355"/></dir></target><target name="mageetc"><dir name="modules"><file name="Morningtime_Internetkassa.xml" hash="9731708aa2a079f84a50c70c87177fd7"/></dir></target><target name="magecommunity"><dir name="Morningtime"><dir name="Internetkassa"><dir name="Block"><file name="Form.php" hash="a109336d61bdfa7005b41898bc38ff81"/><file name="Info.php" hash="77ab3da2e9b35057058b7bb567fa3ffc"/><file name="Redirect.php" hash="1592521ed0a9d8f21be8b96b73a1bbeb"/></dir><dir name="controllers"><file name="OgoneController.php" hash="17895b6250b8d2571477334368c4ab7c"/></dir><dir name="etc"><file name="config.xml" hash="4835402ef77506431675f3d85a166a31"/><file name="system.xml" hash="762c4baa15c3ea0a304f99288e4c7959"/></dir><dir name="Helper"><file name="Data.php" hash="fa86846926f40fa9c95a4de34ca763ef"/><file name="ViewerList.php" hash="71c28d4e03c522bbc44eb91aa7fef70d"/></dir><dir name="Model"><file name="Internetkassa.php" hash="df0955639a9c364ca74c62693f2e171c"/><dir name="Source"><file name="Currencies.php" hash="13eedd7e0079b6f240970247f9fd6398"/><file name="Issuers.php" hash="2583a4a262d8ba2bb9676b77961994ab"/><file name="Languages.php" hash="3c3ccf80a3b03d9684ca33615a3c4995"/><file name="PaymentMethod.php" hash="efa2989f80a115bedd6952c45b837ef9"/><file name="PaymentMethods.php" hash="26c106880b74c9a2b880e5cd772955c0"/><file name="PaymentMethodsList.php" hash="5d824bce2ea8b279874b19c45c4b755c"/></dir></dir></dir></dir></target></contents>
76
+ <compatible/>
77
+ <dependencies/>
78
+ </package>