estpay - Version 1.3.0

Version Notes

Initial public version of EstPay

Download this release

Release Info

Developer Multon
Extension estpay
Version 1.3.0
Comparing to
See all releases


Version 1.3.0

Files changed (58) hide show
  1. app/code/community/Eepohs/Estpay/Block/Abstract.php +98 -0
  2. app/code/community/Eepohs/Estpay/Block/Adminhtml/Initjs.php +78 -0
  3. app/code/community/Eepohs/Estpay/Block/Estcard.php +124 -0
  4. app/code/community/Eepohs/Estpay/Block/IPizza.php +106 -0
  5. app/code/community/Eepohs/Estpay/Block/Krediidipank.php +52 -0
  6. app/code/community/Eepohs/Estpay/Block/Lhv.php +57 -0
  7. app/code/community/Eepohs/Estpay/Block/Nordea.php +102 -0
  8. app/code/community/Eepohs/Estpay/Block/Sampo.php +52 -0
  9. app/code/community/Eepohs/Estpay/Block/Seb.php +52 -0
  10. app/code/community/Eepohs/Estpay/Block/Swedbank.php +53 -0
  11. app/code/community/Eepohs/Estpay/Controller/Abstract.php +108 -0
  12. app/code/community/Eepohs/Estpay/Helper/Data.php +71 -0
  13. app/code/community/Eepohs/Estpay/Model/Abstract.php +95 -0
  14. app/code/community/Eepohs/Estpay/Model/Estcard.php +86 -0
  15. app/code/community/Eepohs/Estpay/Model/IPizza.php +107 -0
  16. app/code/community/Eepohs/Estpay/Model/Krediidipank.php +53 -0
  17. app/code/community/Eepohs/Estpay/Model/Lhv.php +53 -0
  18. app/code/community/Eepohs/Estpay/Model/Nordea.php +92 -0
  19. app/code/community/Eepohs/Estpay/Model/Sampo.php +53 -0
  20. app/code/community/Eepohs/Estpay/Model/Seb.php +53 -0
  21. app/code/community/Eepohs/Estpay/Model/Swedbank.php +53 -0
  22. app/code/community/Eepohs/Estpay/controllers/EstcardController.php +53 -0
  23. app/code/community/Eepohs/Estpay/controllers/KrediidipankController.php +52 -0
  24. app/code/community/Eepohs/Estpay/controllers/LhvController.php +52 -0
  25. app/code/community/Eepohs/Estpay/controllers/NordeaController.php +53 -0
  26. app/code/community/Eepohs/Estpay/controllers/SampoController.php +52 -0
  27. app/code/community/Eepohs/Estpay/controllers/SebController.php +52 -0
  28. app/code/community/Eepohs/Estpay/controllers/SwedbankController.php +52 -0
  29. app/code/community/Eepohs/Estpay/etc/config.xml +240 -0
  30. app/code/community/Eepohs/Estpay/etc/system.xml +775 -0
  31. app/design/adminhtml/default/default/layout/eepohs/estpay.xml +53 -0
  32. app/design/adminhtml/default/default/template/eepohs/estpay/initjs.phtml +81 -0
  33. app/design/frontend/base/default/layout/eepohs/estpay.xml +125 -0
  34. app/design/frontend/base/default/template/eepohs/estpay/estcard.phtml +55 -0
  35. app/design/frontend/base/default/template/eepohs/estpay/krediidipank.phtml +55 -0
  36. app/design/frontend/base/default/template/eepohs/estpay/lhv.phtml +54 -0
  37. app/design/frontend/base/default/template/eepohs/estpay/nordea.phtml +55 -0
  38. app/design/frontend/base/default/template/eepohs/estpay/sampo.phtml +55 -0
  39. app/design/frontend/base/default/template/eepohs/estpay/seb.phtml +55 -0
  40. app/design/frontend/base/default/template/eepohs/estpay/swedbank.phtml +54 -0
  41. app/etc/modules/Eepohs_Estpay.xml +57 -0
  42. app/locale/en_US/Eepohs_Estpay.csv +3 -0
  43. app/locale/et_EE/Eepohs_Estpay.csv +3 -0
  44. js/eepohs/estpay.js +113 -0
  45. package.xml +25 -0
  46. skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_small.png +0 -0
  47. skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_x40px.png +0 -0
  48. skin/frontend/base/default/images/eepohs/estpay/estcard_logo_120x31.gif +0 -0
  49. skin/frontend/base/default/images/eepohs/estpay/krediidipank_logo_88x31.gif +0 -0
  50. skin/frontend/base/default/images/eepohs/estpay/lhv_logo_120x60.png +0 -0
  51. skin/frontend/base/default/images/eepohs/estpay/lhv_logo_88x31.png +0 -0
  52. skin/frontend/base/default/images/eepohs/estpay/nordea_logo_88x31.gif +0 -0
  53. skin/frontend/base/default/images/eepohs/estpay/sampo_logo_88x31.gif +0 -0
  54. skin/frontend/base/default/images/eepohs/estpay/seb_logo_88x31.gif +0 -0
  55. skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_eng.png +0 -0
  56. skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_est.png +0 -0
  57. skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_rus.png +0 -0
  58. skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_88x31.gif +0 -0
app/code/community/Eepohs/Estpay/Block/Abstract.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Abstract block for Estpay payment methods (different banks)
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Abstract extends Mage_Payment_Block_Form
47
+ {
48
+
49
+ /**
50
+ * Returns payment gateway URL
51
+ *
52
+ * @return string Gateway URL
53
+ */
54
+ public function getGatewayUrl()
55
+ {
56
+ return Mage::getStoreConfig('payment/' . $this->_code . '/gateway_url');
57
+ }
58
+
59
+ /**
60
+ * Adds payment mehtod logotypes after method name
61
+ * @return string
62
+ */
63
+ public function getMethodLabelAfterHtml()
64
+ {
65
+ $blockHtml = sprintf('<img src="%1$s" title="%2$s" alt="%2$s" class="payment-method-logo"/>', $this->getMethodLogoUrl(), ucfirst($this->_gateway) );
66
+ return $blockHtml;
67
+ }
68
+
69
+ /**
70
+ * Returns payment method logo URL
71
+ *
72
+ * @return string
73
+ */
74
+ public function getMethodLogoUrl()
75
+ {
76
+ return $this->getSkinUrl(sprintf('images/eepohs/estpay/%s_logo_88x31.gif', strtolower($this->_gateway)));
77
+ }
78
+
79
+ /**
80
+ * Checks if quick redirect is enabled and
81
+ * returns javascript block that redirects user
82
+ * to bank without intermediate page
83
+ *
84
+ * @since 2.0.0
85
+ * @return outstr javascript block
86
+ */
87
+ public function getQuickRedirectScript()
88
+ {
89
+ $outstr = '';
90
+ if (Mage::getStoreConfig('payment/' . $this->_code . '/quick_redirect')) {
91
+ $outstr = '<script type="text/javascript"><!--
92
+ if($("GatewayForm")){$("GatewayForm").submit();}
93
+ //--></script>';
94
+ }
95
+ return $outstr;
96
+ }
97
+
98
+ }
app/code/community/Eepohs/Estpay/Block/Adminhtml/Initjs.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * AdminHtml InitJS block for Estpay that loads custom JS
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Adminhtml_Initjs extends Mage_Adminhtml_Block_Template
47
+ {
48
+
49
+ /**
50
+ * Include JS in the head if section is Eepohs/Estpay
51
+ */
52
+ protected function _prepareLayout()
53
+ {
54
+ $section = $this->getAction()->getRequest()->getParam('section', false);
55
+ if ($section == 'payment') {
56
+ $this->getLayout()
57
+ ->getBlock('head')
58
+ ->addJs('eepohs/estpay.js');
59
+ }
60
+ parent::_prepareLayout();
61
+ }
62
+
63
+ protected function _toHtml()
64
+ {
65
+ $section = $this->getAction()->getRequest()->getParam('section', false);
66
+ if ($section == 'payment') {
67
+ return parent::_toHtml();
68
+ } else {
69
+ return '';
70
+ }
71
+ }
72
+
73
+ public function getModuleVersion()
74
+ {
75
+ return (string) Mage::getConfig()->getNode()->modules->Eepohs_Estpay->version;
76
+ }
77
+
78
+ }
app/code/community/Eepohs/Estpay/Block/Estcard.php ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for Estcard
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Estcard extends Eepohs_Estpay_Block_Abstract
47
+ {
48
+
49
+ protected $_code = 'eepohs_estcard';
50
+ protected $_gateway = 'estcard';
51
+
52
+ public function getFields()
53
+ {
54
+
55
+ $fields = array();
56
+ //NB! NETS does not support any field for reference ID
57
+ //it's needed to rely on session in case of Estcard/NETS
58
+ $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
59
+ $order = Mage::getModel('sales/order')->load($orderId);
60
+
61
+ $fields['action'] = 'gaf';
62
+ $fields['ver'] = '004'; // Old version was 002
63
+ $fields['id'] = Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
64
+ $fields['ecuno'] = sprintf('%012s', $order->getIncrementId());
65
+ $fields['eamount'] = sprintf("%012s", (round($order->getBaseGrandTotal(), 2) * 100));
66
+ $fields['cur'] = $order->getOrderCurrencyCode();
67
+ $fields['datetime'] = date("YmdHis");
68
+
69
+ switch (Mage::app()->getLocale()->getLocaleCode()) {
70
+ case 'et_EE':
71
+ $language = 'et';
72
+ break;
73
+ case 'ru_RU':
74
+ $language = 'ru';
75
+ break;
76
+ case 'fi_FI':
77
+ $language = 'fi';
78
+ break;
79
+ case 'de_DE':
80
+ $language = 'de';
81
+ break;
82
+ default:
83
+ $language = 'en';
84
+ break;
85
+ }
86
+ $fields['lang'] = $language;
87
+
88
+ // gaf004 related stuff
89
+ $fields['charEncoding'] = 'ISO-8859-1';
90
+ // $fields['charEncoding'] = 'UTF-8';
91
+ $fields['feedBackUrl'] = Mage::getUrl('estpay/' . $this->_gateway . '/return', array('_nosid' => true));
92
+ $fields['delivery'] = 'T';
93
+ // Hardcoded for test purposes T = Physical delivery,
94
+ // S = Electronic delivery
95
+
96
+ $data =
97
+ $fields['ver']
98
+ . sprintf("%-10s", $fields['id'])
99
+ . $fields['ecuno']
100
+ . $fields['eamount']
101
+ . $fields['cur']
102
+ . $fields['datetime']
103
+ . sprintf("%-128s", $fields['feedBackUrl'])
104
+ . $fields['delivery'];
105
+
106
+ $mac = sha1($data);
107
+ $key = openssl_pkey_get_private(Mage::getStoreConfig('payment/' . $this->_code . '/private_key'));
108
+ openssl_sign($data, $mac, $key);
109
+ $fields['mac'] = bin2hex($mac);
110
+ openssl_free_key($key);
111
+
112
+ return $fields;
113
+ }
114
+
115
+ /**
116
+ * Get Estcard method logo URL
117
+ * @return type
118
+ */
119
+ public function getMethodLogoUrl()
120
+ {
121
+ return $this->getSkinUrl(sprintf('images/eepohs/estpay/%s_logo_120x31.gif', strtolower($this->_gateway)));
122
+ }
123
+
124
+ }
app/code/community/Eepohs/Estpay/Block/IPizza.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for iPizza (Generic API)
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_IPizza extends Eepohs_Estpay_Block_Abstract
47
+ {
48
+
49
+ /**
50
+ * Populates and returns array of fields to be submitted
51
+ * to a bank for payment
52
+ *
53
+ * @return Array
54
+ */
55
+ public function getFields()
56
+ {
57
+
58
+ $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
59
+ $order = Mage::getModel('sales/order')->load($orderId);
60
+
61
+ $fields = array();
62
+
63
+ $fields['VK_SERVICE'] = '1002';
64
+ $fields['VK_VERSION'] = '008';
65
+ $fields['VK_SND_ID'] = Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id');
66
+ $fields['VK_REF'] = '';
67
+ $fields['VK_RETURN'] = Mage::getUrl('estpay/' . $this->_gateway . '/return');
68
+
69
+ switch (Mage::app()->getLocale()->getLocaleCode()) {
70
+ case 'et_EE':
71
+ $language = 'EST';
72
+ break;
73
+ case 'ru_RU':
74
+ $language = 'RUS';
75
+ break;
76
+ default:
77
+ $language = 'ENG';
78
+ break;
79
+ }
80
+
81
+ $fields['VK_LANG'] = $language;
82
+ $fields['VK_STAMP'] = $order->getIncrementId();
83
+
84
+ $fields['VK_AMOUNT'] = number_format($order->getBaseGrandTotal(), 2, '.', '');
85
+ $fields['VK_CURR'] = 'EUR';
86
+ $fields['VK_MSG'] = __('Order number') . ': ' . $order->getIncrementId();
87
+
88
+ $data = sprintf('%03d%s', strlen($fields['VK_SERVICE']), $fields['VK_SERVICE'])
89
+ . sprintf('%03d%s', strlen($fields['VK_VERSION']), $fields['VK_VERSION'])
90
+ . sprintf('%03d%s', strlen($fields['VK_SND_ID']), $fields['VK_SND_ID'])
91
+ . sprintf('%03d%s', strlen($fields['VK_STAMP']), $fields['VK_STAMP'])
92
+ . sprintf('%03d%s', strlen($fields['VK_AMOUNT']), $fields['VK_AMOUNT'])
93
+ . sprintf('%03d%s', strlen($fields['VK_CURR']), $fields['VK_CURR'])
94
+ . sprintf('%03d%s', strlen($fields['VK_REF']), $fields['VK_REF'])
95
+ . sprintf('%03d%s', strlen($fields['VK_MSG']), $fields['VK_MSG']);
96
+
97
+ $key = openssl_pkey_get_private(Mage::getStoreConfig('payment/' . $this->_code . '/private_key'), '');
98
+ $signature = null;
99
+ openssl_sign($data, $signature, $key);
100
+ $fields['VK_MAC'] = base64_encode($signature);
101
+ openssl_free_key($key);
102
+
103
+ return $fields;
104
+ }
105
+
106
+ }
app/code/community/Eepohs/Estpay/Block/Krediidipank.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for Krediidipank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Krediidipank extends Eepohs_Estpay_Block_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_krediidipank';
50
+ protected $_gateway = 'krediidipank';
51
+
52
+ }
app/code/community/Eepohs/Estpay/Block/Lhv.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for Swedbank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Lhv extends Eepohs_Estpay_Block_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_lhv';
50
+ protected $_gateway = 'lhv';
51
+
52
+ public function getMethodLogoUrl()
53
+ {
54
+ return $this->getSkinUrl('images/eepohs/estpay/lhv_logo_88x31.png');
55
+ }
56
+
57
+ }
app/code/community/Eepohs/Estpay/Block/Nordea.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for Nordea Bank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Nordea extends Eepohs_Estpay_Block_Abstract
47
+ {
48
+
49
+ protected $_code = 'eepohs_nordea';
50
+ protected $_gateway = 'nordea';
51
+
52
+ public function getFields()
53
+ {
54
+
55
+ $fields = array();
56
+ $helper = Mage::helper('estpay');
57
+ $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
58
+ $order = Mage::getModel('sales/order')->load($orderId);
59
+
60
+ $fields['SOLOPMT_VERSION'] = '0003';
61
+ $fields['SOLOPMT_STAMP'] = time();
62
+ $fields['SOLOPMT_RCV_ID'] = Mage::getStoreConfig('payment/' . $this->_code . '/service_provider');
63
+
64
+ /* Choose language (3 = english, 4 = estonian, 6 = latvian, 7 = lithuanian */
65
+ switch (Mage::app()->getLocale()->getLocaleCode()) {
66
+ case 'et_EE':
67
+ $language = '4';
68
+ break;
69
+ default:
70
+ $language = '3';
71
+ break;
72
+ }
73
+ $fields['SOLOPMT_LANGUAGE'] = $language;
74
+
75
+ $fields['SOLOPMT_AMOUNT'] = number_format($order->getBaseGrandTotal(), 2, '.', '');
76
+ $fields['SOLOPMT_REF'] = $helper->calcRef($order->getIncrementId());
77
+ $fields['SOLOPMT_DATE'] = 'EXPRESS';
78
+ $fields['SOLOPMT_MSG'] = __('Invoice number') . ' ' . $order->getIncrementId();
79
+ $fields['SOLOPMT_RETURN'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
80
+ $fields['SOLOPMT_CANCEL'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
81
+ $fields['SOLOPMT_REJECT'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
82
+ $fields['SOLOPMT_CONFIRM'] = 'YES';
83
+ $fields['SOLOPMT_KEYVERS'] = '0001';
84
+ $fields['SOLOPMT_CUR'] = 'EUR';
85
+
86
+ $data =
87
+ $fields['SOLOPMT_VERSION'] . '&' .
88
+ $fields['SOLOPMT_STAMP'] . '&' .
89
+ $fields['SOLOPMT_RCV_ID'] . '&' .
90
+ $fields['SOLOPMT_AMOUNT'] . '&' .
91
+ $fields['SOLOPMT_REF'] . '&' .
92
+ $fields['SOLOPMT_DATE'] . '&' .
93
+ $fields['SOLOPMT_CUR'] . '&' .
94
+ Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
95
+
96
+ $fields['STRING'] = $data;
97
+ $fields['SOLOPMT_MAC'] = strtoupper(md5($data));
98
+
99
+ return $fields;
100
+ }
101
+
102
+ }
app/code/community/Eepohs/Estpay/Block/Sampo.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for SampoPank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Sampo extends Eepohs_Estpay_Block_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_sampo';
50
+ protected $_gateway = 'sampo';
51
+
52
+ }
app/code/community/Eepohs/Estpay/Block/Seb.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for SEB
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Seb extends Eepohs_Estpay_Block_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_seb';
50
+ protected $_gateway = 'seb';
51
+
52
+ }
app/code/community/Eepohs/Estpay/Block/Swedbank.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay block for Swedbank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Block_Swedbank extends Eepohs_Estpay_Block_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_swedbank';
50
+ protected $_gateway = 'swedbank';
51
+
52
+
53
+ }
app/code/community/Eepohs/Estpay/Controller/Abstract.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Abstract controller for Estpay payment methods
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Controller_Abstract extends Mage_Core_Controller_Front_Action
47
+ {
48
+
49
+ /**
50
+ *
51
+ * @var Specifies model to be used to verify response from bank
52
+ */
53
+ protected $_model;
54
+
55
+ /**
56
+ * This action redirects user to bank for payment
57
+ */
58
+ public function redirectAction()
59
+ {
60
+
61
+ /* Send order confirmation */
62
+ if ( Mage::getStoreConfig('payment/' . $this->_code . '/order_confirmation') == '1' ) {
63
+ try {
64
+ $order = Mage::getModel('sales/order');
65
+ $order->load(Mage::getSingleton('checkout/session')->getLastOrderId());
66
+ $order->sendNewOrderEmail();
67
+ $order->save();
68
+ } catch ( Exception $e ) {
69
+ Mage::log(sprintf('%s(%s): %s', __METHOD__, __LINE__, print_r($e->getMessage(), true)));
70
+ }
71
+ }
72
+
73
+ $this->loadLayout();
74
+ $this->renderLayout();
75
+ }
76
+
77
+ /**
78
+ * This is return action handler for Estpay
79
+ * payment method
80
+ * It verifies signature and creates invoice.
81
+ * In case of verification failure it cancels the order
82
+ */
83
+ public function returnAction()
84
+ {
85
+
86
+ $session = Mage::getSingleton('checkout/session');
87
+ $orderId = $session->getLastRealOrderId();
88
+ if ( !$orderId ) {
89
+ $orderId = $this->getRequest()->getParam('VK_STAMP');
90
+ }
91
+ if ( !$orderId ) {
92
+ $this->_redirect('checkout/onepage/failure');
93
+ return;
94
+ }
95
+ $model = Mage::getModel($this->_model);
96
+ $model->setOrderId($orderId);
97
+ $verify = $model->verify($this->getRequest()->getParams());
98
+ if ( $verify === true ) {
99
+ $model->createInvoice();
100
+ $this->_redirect('checkout/onepage/success');
101
+ } else {
102
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
103
+ $order->cancel()->save();
104
+ $this->_redirect('checkout/onepage/failure');
105
+ }
106
+ }
107
+
108
+ }
app/code/community/Eepohs/Estpay/Helper/Data.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Helper class for Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Helper_Data extends Mage_Core_Helper_Abstract
47
+ {
48
+
49
+ /**
50
+ * Calculates reference number
51
+ *
52
+ * @param type $number
53
+ * @return string
54
+ */
55
+ public function calcRef($number)
56
+ {
57
+
58
+ $n = (string) $number;
59
+ $w = array(7, 3, 1);
60
+
61
+ $sl = $st = strlen($n);
62
+ $total = 0;
63
+ while ( $sl > 0 and substr($n, --$sl, 1) >= '0' ) {
64
+ $total += substr($n, ($st - 1) - $sl, 1) * $w[($sl % 3)];
65
+ }
66
+ $c = ((ceil(($total / 10)) * 10) - $total);
67
+ return $n . $c;
68
+ }
69
+
70
+ }
71
+
app/code/community/Eepohs/Estpay/Model/Abstract.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Abstract Estpay Model
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ abstract class Eepohs_Estpay_Model_Abstract extends Mage_Payment_Model_Method_Abstract
47
+ {
48
+
49
+ protected $_canAuthorize = true;
50
+ protected $_isGateway = true;
51
+ protected $_canUseCheckout = true;
52
+
53
+ /**
54
+ * Order Id to create invoice for
55
+ * @var string
56
+ */
57
+ protected $_orderId;
58
+
59
+ public function getOrderPlaceRedirectUrl()
60
+ {
61
+ return Mage::getUrl("estpay/" . $this->_gateway . "/redirect");
62
+ }
63
+
64
+ /**
65
+ * This method creates invoice for current order
66
+ */
67
+ public function createInvoice()
68
+ {
69
+ $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
70
+
71
+ if ( $order->canInvoice() ) {
72
+ $invoice = $order->prepareInvoice();
73
+ $invoice->pay()->register();
74
+ $invoice->save();
75
+
76
+ /* Send invoice */
77
+ if ( Mage::getStoreConfig('payment/' . $this->_code . '/invoice_confirmation') == '1' ) {
78
+ $invoice->sendEmail(true, '');
79
+ }
80
+
81
+ Mage::register('current_invoice', $invoice);
82
+ }
83
+
84
+ $order->setStatus(Mage_Sales_Model_Order::STATE_PROCESSING);
85
+ $order->save();
86
+ }
87
+
88
+ /**
89
+ * Abstract method to be overloaded by implementing classes.
90
+ * This is used to verify response from bank
91
+ *
92
+ * @return boolean
93
+ */
94
+ public abstract function verify(array $params = array());
95
+ }
app/code/community/Eepohs/Estpay/Model/Estcard.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for Estcard
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Estcard extends Eepohs_Estpay_Model_Abstract
47
+ {
48
+
49
+ protected $_code = 'eepohs_estcard';
50
+ protected $_formBlockType = 'estpay/estcard';
51
+ protected $_gateway = 'estcard';
52
+
53
+ public function verify(array $params = array())
54
+ {
55
+
56
+ $merchantId = Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
57
+
58
+ if ( !isset($params['id']) || $params['id'] != $merchantId ) {
59
+ Mage::log(sprintf('%s (%s): Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__, $params['id'], $merchantId));
60
+ return false;
61
+ }
62
+
63
+ $data =
64
+ sprintf("%03s", $params['ver'])
65
+ . sprintf("%-10s", $params['id'])
66
+ . sprintf("%012s", $params['ecuno'])
67
+ . sprintf("%06s", $params['receipt_no'])
68
+ . sprintf("%012s", $params['eamount'])
69
+ . sprintf("%3s", $params['cur'])
70
+ . $params['respcode']
71
+ . $params['datetime']
72
+ . sprintf("%-40s", urldecode($params['msgdata']))
73
+ . sprintf("%-40s", urldecode($params['actiontext']));
74
+ $mac = pack('H*', $params['mac']);
75
+
76
+ $key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
77
+ $result = openssl_verify($data, $mac, $key);
78
+ openssl_free_key($key);
79
+
80
+ if ( $result && $params['respcode'] == '000' )
81
+ return true;
82
+
83
+ return false;
84
+ }
85
+
86
+ }
app/code/community/Eepohs/Estpay/Model/IPizza.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for iPizza (Generic API)
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_IPizza extends Eepohs_Estpay_Model_Abstract
47
+ {
48
+
49
+ public function verify(array $params = array())
50
+ {
51
+
52
+ if ( !isset($params['VK_SERVICE']) || $params['VK_SERVICE'] != '1101' ) {
53
+ Mage::log(sprintf('%s (%s): IPizza return service is not 1101: %s', __METHOD__, __LINE__, $params['VK_SERVICE']));
54
+ return false;
55
+ }
56
+
57
+
58
+ $vkSndId = Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id');
59
+
60
+ if ( !isset($params['VK_REC_ID']) || $params['VK_REC_ID'] != $vkSndId ) {
61
+ Mage::log(sprintf('%s (%s): Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__, $params['VK_REC_ID'], $vkSndId));
62
+ return false;
63
+ }
64
+
65
+
66
+ $data = sprintf('%03d%s', strlen($params['VK_SERVICE']), $params['VK_SERVICE'])
67
+ . sprintf('%03d%s', strlen($params['VK_VERSION']), $params['VK_VERSION'])
68
+ . sprintf('%03d%s', strlen($params['VK_SND_ID']), $params['VK_SND_ID'])
69
+ . sprintf('%03d%s', strlen($params['VK_REC_ID']), $params['VK_REC_ID'])
70
+ . sprintf('%03d%s', strlen($params['VK_STAMP']), $params['VK_STAMP'])
71
+ . sprintf('%03d%s', strlen($params['VK_T_NO']), $params['VK_T_NO'])
72
+ . sprintf('%03d%s', strlen($params['VK_AMOUNT']), $params['VK_AMOUNT'])
73
+ . sprintf('%03d%s', strlen($params['VK_CURR']), $params['VK_CURR'])
74
+ . sprintf('%03d%s', strlen($params['VK_REC_ACC']), $params['VK_REC_ACC'])
75
+ . sprintf('%03d%s', strlen($params['VK_REC_NAME']), $params['VK_REC_NAME'])
76
+ . sprintf('%03d%s', strlen($params['VK_SND_ACC']), $params['VK_SND_ACC'])
77
+ . sprintf('%03d%s', strlen($params['VK_SND_NAME']), $params['VK_SND_NAME'])
78
+ . sprintf('%03d%s', strlen($params['VK_REF']), $params['VK_REF'])
79
+ . sprintf('%03d%s', strlen($params['VK_MSG']), $params['VK_MSG'])
80
+ . sprintf('%03d%s', strlen($params['VK_T_DATE']), $params['VK_T_DATE']);
81
+
82
+ $key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
83
+ $result = openssl_verify($data, base64_decode($params['VK_MAC']), $key);
84
+ openssl_free_key($key);
85
+ if ( $result ) {
86
+ return true;
87
+ }
88
+
89
+ return false;
90
+ }
91
+
92
+ /**
93
+ * Checks if private and public keys exist
94
+ * If they don't then method is not enabled
95
+ *
96
+ * @return Eepohs_Estpay_Model_Abstract
97
+ */
98
+ public function validate()
99
+ {
100
+ $key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
101
+ if ( $key === false ) {
102
+ Mage::throwException($this->_getHelper()->__('Public key for ' . $this->_code . ' not set'));
103
+ }
104
+ return parent::validate();
105
+ }
106
+
107
+ }
app/code/community/Eepohs/Estpay/Model/Krediidipank.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for Krediidipank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Krediidipank extends Eepohs_Estpay_Model_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_krediidipank';
50
+ protected $_formBlockType = 'estpay/krediidipank';
51
+ protected $_gateway = 'krediidipank';
52
+
53
+ }
app/code/community/Eepohs/Estpay/Model/Lhv.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for Swedbank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Lhv extends Eepohs_Estpay_Model_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_lhv';
50
+ protected $_formBlockType = 'estpay/lhv';
51
+ protected $_gateway = 'lhv';
52
+
53
+ }
app/code/community/Eepohs/Estpay/Model/Nordea.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for Nordea Bank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Nordea extends Eepohs_Estpay_Model_Abstract
47
+ {
48
+
49
+ protected $_code = 'eepohs_nordea';
50
+ protected $_formBlockType = 'estpay/nordea';
51
+ protected $_gateway = 'nordea';
52
+
53
+ /**
54
+ * Verifies response from Nordea
55
+ *
56
+ * @param array $params
57
+ *
58
+ * @return boolean
59
+ */
60
+ public function verify(array $params = array())
61
+ {
62
+
63
+ // No Express payment return data
64
+ if ( !isset($params['SOLOPMT_RETURN_PAID']) )
65
+ return false;
66
+
67
+ $data =
68
+ $params['SOLOPMT_RETURN_VERSION'] . '&' .
69
+ $params['SOLOPMT_RETURN_STAMP'] . '&' .
70
+ $params['SOLOPMT_RETURN_REF'] . '&' .
71
+ $params['SOLOPMT_RETURN_PAID'] . '&' .
72
+ Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
73
+
74
+ // Invalid MAC code
75
+ if ( $params['SOLOPMT_RETURN_MAC'] != strtoupper(md5($data)) ) {
76
+ Mage::log(sprintf("%s (%s): (Nordea) Invalid MAC code", __METHOD__, __LINE__));
77
+ return false;
78
+ }
79
+
80
+ $session = Mage::getSingleton('checkout/session');
81
+
82
+ $helper = Mage::helper('estpay');
83
+ // Reference number doesn't match.
84
+ if ( $helper->calcRef($session->getLastRealOrderId()) != $params['SOLOPMT_RETURN_REF'] ) {
85
+ Mage::log(sprintf("%s (%s): (Nordea): Reference number doesn't match (potential tampering attempt). IP logged: %s", __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']));
86
+ return false;
87
+ }
88
+
89
+ return true;
90
+ }
91
+
92
+ }
app/code/community/Eepohs/Estpay/Model/Sampo.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for SampoPank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Sampo extends Eepohs_Estpay_Model_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_sampo';
50
+ protected $_formBlockType = 'estpay/sampo';
51
+ protected $_gateway = 'sampo';
52
+
53
+ }
app/code/community/Eepohs/Estpay/Model/Seb.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for SEB
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Seb extends Eepohs_Estpay_Model_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_seb';
50
+ protected $_formBlockType = 'estpay/seb';
51
+ protected $_gateway = 'seb';
52
+
53
+ }
app/code/community/Eepohs/Estpay/Model/Swedbank.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay Model for Swedbank
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_Model_Swedbank extends Eepohs_Estpay_Model_IPizza
47
+ {
48
+
49
+ protected $_code = 'eepohs_swedbank';
50
+ protected $_formBlockType = 'estpay/swedbank';
51
+ protected $_gateway = 'swedbank';
52
+
53
+ }
app/code/community/Eepohs/Estpay/controllers/EstcardController.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for Estcard of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_EstcardController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/estcard';
50
+ protected $_code = 'eepohs_estcard';
51
+
52
+ }
53
+
app/code/community/Eepohs/Estpay/controllers/KrediidipankController.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for KrediidiPank of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_KrediidipankController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/krediidipank';
50
+ protected $_code = 'eepohs_krediidipank';
51
+
52
+ }
app/code/community/Eepohs/Estpay/controllers/LhvController.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for Swedbank of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) 2012, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_LhvController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/lhv';
50
+ protected $_code = 'eepohs_lhv';
51
+
52
+ }
app/code/community/Eepohs/Estpay/controllers/NordeaController.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for Nordea Bank of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) 2012, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_NordeaController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/nordea';
50
+ protected $_code = 'eepohs_nordea';
51
+
52
+ }
53
+
app/code/community/Eepohs/Estpay/controllers/SampoController.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for for SampoPank of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_SampoController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/sampo';
50
+ protected $_code = 'eepohs_sampo';
51
+
52
+ }
app/code/community/Eepohs/Estpay/controllers/SebController.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for SEB of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_SebController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/seb';
50
+ protected $_code = 'eepohs_seb';
51
+
52
+ }
app/code/community/Eepohs/Estpay/controllers/SwedbankController.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Controller for Swedbank of Estpay payment method
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ class Eepohs_Estpay_SwedbankController extends Eepohs_Estpay_Controller_Abstract
47
+ {
48
+
49
+ protected $_model = 'estpay/swedbank';
50
+ protected $_code = 'eepohs_swedbank';
51
+
52
+ }
app/code/community/Eepohs/Estpay/etc/config.xml ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay module configuration
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ -->
47
+ <config>
48
+ <modules>
49
+ <Eepohs_Estpay>
50
+ <version>$version$</version>
51
+ </Eepohs_Estpay>
52
+ </modules>
53
+ <global>
54
+ <models>
55
+ <estpay>
56
+ <class>Eepohs_Estpay_Model</class>
57
+ </estpay>
58
+ </models>
59
+ <helpers>
60
+ <estpay>
61
+ <class>Eepohs_Estpay_Helper</class>
62
+ </estpay>
63
+ </helpers>
64
+ <blocks>
65
+ <estpay>
66
+ <class>Eepohs_Estpay_Block</class>
67
+ </estpay>
68
+ </blocks>
69
+ </global>
70
+ <adminhtml>
71
+ <translate>
72
+ <modules>
73
+ <Eepohs_Estpay>
74
+ <files>
75
+ <default>Eepohs_Estpay.csv</default>
76
+ </files>
77
+ </Eepohs_Estpay>
78
+ </modules>
79
+ </translate>
80
+ <layout>
81
+ <updates>
82
+ <Eepohs_Estpay>
83
+ <file>eepohs/estpay.xml</file>
84
+ </Eepohs_Estpay>
85
+ </updates>
86
+ </layout>
87
+ <acl>
88
+ <resources>
89
+ <admin>
90
+ <children>
91
+ <system>
92
+ <children>
93
+ <config>
94
+ <children>
95
+ <Eepohs_Estpay>
96
+ <title>Eepohs Estpay</title>
97
+ </Eepohs_Estpay>
98
+ </children>
99
+ </config>
100
+ </children>
101
+ </system>
102
+ </children>
103
+ </admin>
104
+ </resources>
105
+ </acl>
106
+ </adminhtml>
107
+ <frontend>
108
+ <layout>
109
+ <updates>
110
+ <Eepohs_Estpay>
111
+ <file>eepohs/estpay.xml</file>
112
+ </Eepohs_Estpay>
113
+ </updates>
114
+ </layout>
115
+ <routers>
116
+ <estpay>
117
+ <use>standard</use>
118
+ <args>
119
+ <module>Eepohs_Estpay</module>
120
+ <frontName>estpay</frontName>
121
+ </args>
122
+ </estpay>
123
+ </routers>
124
+ <translate>
125
+ <modules>
126
+ <Eepohs_Estpay>
127
+ <files>
128
+ <default>Eepohs_Estpay.csv</default>
129
+ </files>
130
+ </Eepohs_Estpay>
131
+ </modules>
132
+ </translate>
133
+ </frontend>
134
+ <default>
135
+ <payment>
136
+ <eepohs_seb>
137
+ <active>0</active>
138
+ <title>SEB</title>
139
+ <order_status>pending</order_status>
140
+ <gateway_url>https://www.seb.ee/cgi-bin/unet3.sh/un3min.r</gateway_url>
141
+ <vk_snd_id></vk_snd_id>
142
+ <private_key></private_key>
143
+ <bank_certificate></bank_certificate>
144
+ <private_key></private_key>
145
+ <bank_certificate></bank_certificate>
146
+ <order_confirmation>0</order_confirmation>
147
+ <invoice_confirmation>1</invoice_confirmation>
148
+ <model>estpay/seb</model>
149
+ <payment_action>authorize</payment_action>
150
+ </eepohs_seb>
151
+ <eepohs_nordea>
152
+ <active>0</active>
153
+ <title>Nordea</title>
154
+ <order_status>pending</order_status>
155
+ <gateway_url>https://netbank.nordea.com/pnbepay/epayn.jsp</gateway_url>
156
+ <service_provider></service_provider>
157
+ <mac_key></mac_key>
158
+ <order_confirmation>0</order_confirmation>
159
+ <invoice_confirmation>1</invoice_confirmation>
160
+ <model>estpay/nordea</model>
161
+ <payment_action>authorize</payment_action>
162
+ </eepohs_nordea>
163
+ <eepohs_swedbank>
164
+ <active>0</active>
165
+ <title>Swedbank</title>
166
+ <order_status>pending</order_status>
167
+ <gateway_url>https://www.swedbank.ee/banklink</gateway_url>
168
+ <vk_snd_id></vk_snd_id>
169
+ <private_key></private_key>
170
+ <bank_certificate></bank_certificate>
171
+ <private_key></private_key>
172
+ <bank_certificate></bank_certificate>
173
+ <order_confirmation>0</order_confirmation>
174
+ <invoice_confirmation>1</invoice_confirmation>
175
+ <model>estpay/swedbank</model>
176
+ <payment_action>authorize</payment_action>
177
+ </eepohs_swedbank>
178
+ <eepohs_sampo>
179
+ <active>0</active>
180
+ <title>Sampo</title>
181
+ <order_status>pending</order_status>
182
+ <gateway_url>https://www2.sampopank.ee/ibank/pizza/pizza</gateway_url>
183
+ <vk_snd_id></vk_snd_id>
184
+ <private_key></private_key>
185
+ <bank_certificate></bank_certificate>
186
+ <private_key></private_key>
187
+ <bank_certificate></bank_certificate>
188
+ <order_confirmation>0</order_confirmation>
189
+ <invoice_confirmation>1</invoice_confirmation>
190
+ <model>estpay/sampo</model>
191
+ <payment_action>authorize</payment_action>
192
+ </eepohs_sampo>
193
+ <eepohs_krediidipank>
194
+ <active>0</active>
195
+ <title>Krediidipank</title>
196
+ <order_status>pending</order_status>
197
+ <gateway_url></gateway_url>
198
+ <vk_snd_id></vk_snd_id>
199
+ <private_key></private_key>
200
+ <bank_certificate></bank_certificate>
201
+ <private_key></private_key>
202
+ <bank_certificate></bank_certificate>
203
+ <order_confirmation>0</order_confirmation>
204
+ <invoice_confirmation>1</invoice_confirmation>
205
+ <model>estpay/krediidipank</model>
206
+ <payment_action>authorize</payment_action>
207
+ </eepohs_krediidipank>
208
+ <eepohs_estcard>
209
+ <active>0</active>
210
+ <title>VISA / Mastercard</title>
211
+ <order_status>pending</order_status>
212
+ <gateway_url>https://pos.estcard.ee/webpos/servlet/iPAYServlet</gateway_url>
213
+ <vk_snd_id></vk_snd_id>
214
+ <private_key></private_key>
215
+ <bank_certificate></bank_certificate>
216
+ <private_key></private_key>
217
+ <bank_certificate></bank_certificate>
218
+ <order_confirmation>0</order_confirmation>
219
+ <invoice_confirmation>1</invoice_confirmation>
220
+ <model>estpay/estcard</model>
221
+ <payment_action>authorize</payment_action>
222
+ </eepohs_estcard>
223
+ <eepohs_lhv>
224
+ <active>0</active>
225
+ <title>LHV</title>
226
+ <order_status>pending</order_status>
227
+ <gateway_url>https://www.lhv.ee/banklink</gateway_url>
228
+ <vk_snd_id></vk_snd_id>
229
+ <private_key></private_key>
230
+ <bank_certificate></bank_certificate>
231
+ <private_key></private_key>
232
+ <bank_certificate></bank_certificate>
233
+ <order_confirmation>0</order_confirmation>
234
+ <invoice_confirmation>1</invoice_confirmation>
235
+ <model>estpay/lhv</model>
236
+ <payment_action>authorize</payment_action>
237
+ </eepohs_lhv>
238
+ </payment>
239
+ </default>
240
+ </config>
app/code/community/Eepohs/Estpay/etc/system.xml ADDED
@@ -0,0 +1,775 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay module admin configuration
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ -->
47
+ <config>
48
+ <sections>
49
+ <payment>
50
+ <groups>
51
+ <eepohs_seb translate="label" module="estpay">
52
+ <label>SEB</label>
53
+ <sort_order>100</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ <fields>
58
+ <active translate="label">
59
+ <label>Enabled</label>
60
+ <frontend_type>select</frontend_type>
61
+ <source_model>adminhtml/system_config_source_yesno</source_model>
62
+ <sort_order>1</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ </active>
67
+ <title translate="label">
68
+ <label>Title</label>
69
+ <frontend_type>text</frontend_type>
70
+ <sort_order>2</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ </title>
75
+ <order_status translate="label">
76
+ <label>New Order Status</label>
77
+ <frontend_type>select</frontend_type>
78
+ <source_model>adminhtml/system_config_source_order_status</source_model>
79
+ <sort_order>3</sort_order>
80
+ <show_in_default>1</show_in_default>
81
+ <show_in_website>1</show_in_website>
82
+ <show_in_store>1</show_in_store>
83
+ </order_status>
84
+ <gateway_url translate="label">
85
+ <label>Gateway URL</label>
86
+ <frontend_type>text</frontend_type>
87
+ <sort_order>4</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ </gateway_url>
92
+ <vk_snd_id translate="label">
93
+ <label>Merchant ID</label>
94
+ <frontend_type>text</frontend_type>
95
+ <sort_order>5</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </vk_snd_id>
100
+ <private_key translate="label">
101
+ <label>Private Key</label>
102
+ <frontend_type>textarea</frontend_type>
103
+ <sort_order>6</sort_order>
104
+ <show_in_default>1</show_in_default>
105
+ <show_in_website>1</show_in_website>
106
+ <show_in_store>1</show_in_store>
107
+ </private_key>
108
+ <bank_certificate translate="label">
109
+ <label>Bank Certificate</label>
110
+ <frontend_type>textarea</frontend_type>
111
+ <sort_order>7</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ </bank_certificate>
116
+ <order_confirmation translate="label">
117
+ <label>Send Order Confirmation</label>
118
+ <frontend_type>select</frontend_type>
119
+ <source_model>adminhtml/system_config_source_yesno</source_model>
120
+ <sort_order>8</sort_order>
121
+ <show_in_default>1</show_in_default>
122
+ <show_in_website>1</show_in_website>
123
+ <show_in_store>1</show_in_store>
124
+ </order_confirmation>
125
+ <invoice_confirmation translate="label">
126
+ <label>Send Invoice</label>
127
+ <frontend_type>select</frontend_type>
128
+ <source_model>adminhtml/system_config_source_yesno</source_model>
129
+ <sort_order>9</sort_order>
130
+ <show_in_default>1</show_in_default>
131
+ <show_in_website>1</show_in_website>
132
+ <show_in_store>1</show_in_store>
133
+ </invoice_confirmation>
134
+ <quick_redirect translate="label">
135
+ <label>Quick Redirect</label>
136
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
137
+ </description>
138
+ <frontend_type>select</frontend_type>
139
+ <source_model>adminhtml/system_config_source_yesno</source_model>
140
+ <sort_order>10</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ </quick_redirect>
145
+ <sort_order translate="label">
146
+ <label>Sort order</label>
147
+ <frontend_type>text</frontend_type>
148
+ <sort_order>11</sort_order>
149
+ <show_in_default>1</show_in_default>
150
+ <show_in_website>1</show_in_website>
151
+ <show_in_store>1</show_in_store>
152
+ </sort_order>
153
+
154
+ </fields>
155
+ </eepohs_seb>
156
+ <eepohs_nordea translate="label" module="estpay">
157
+ <label>Nordea</label>
158
+ <sort_order>110</sort_order>
159
+ <show_in_default>1</show_in_default>
160
+ <show_in_website>1</show_in_website>
161
+ <show_in_store>1</show_in_store>
162
+ <fields>
163
+ <active translate="label">
164
+ <label>Enabled</label>
165
+ <frontend_type>select</frontend_type>
166
+ <source_model>adminhtml/system_config_source_yesno</source_model>
167
+ <sort_order>1</sort_order>
168
+ <show_in_default>1</show_in_default>
169
+ <show_in_website>1</show_in_website>
170
+ <show_in_store>1</show_in_store>
171
+ </active>
172
+ <title translate="label">
173
+ <label>Title</label>
174
+ <frontend_type>text</frontend_type>
175
+ <sort_order>2</sort_order>
176
+ <show_in_default>1</show_in_default>
177
+ <show_in_website>1</show_in_website>
178
+ <show_in_store>1</show_in_store>
179
+ </title>
180
+ <order_status translate="label">
181
+ <label>New Order Status</label>
182
+ <frontend_type>select</frontend_type>
183
+ <source_model>adminhtml/system_config_source_order_status</source_model>
184
+ <sort_order>3</sort_order>
185
+ <show_in_default>1</show_in_default>
186
+ <show_in_website>1</show_in_website>
187
+ <show_in_store>1</show_in_store>
188
+ </order_status>
189
+ <gateway_url translate="label">
190
+ <label>Gateway URL</label>
191
+ <frontend_type>text</frontend_type>
192
+ <sort_order>4</sort_order>
193
+ <show_in_default>1</show_in_default>
194
+ <show_in_website>1</show_in_website>
195
+ <show_in_store>1</show_in_store>
196
+ </gateway_url>
197
+ <service_provider translate="label">
198
+ <label>Service Provider's ID</label>
199
+ <frontend_type>text</frontend_type>
200
+ <sort_order>5</sort_order>
201
+ <show_in_default>1</show_in_default>
202
+ <show_in_website>1</show_in_website>
203
+ <show_in_store>1</show_in_store>
204
+ </service_provider>
205
+ <mac_key translate="label">
206
+ <label>MAC Key</label>
207
+ <frontend_type>text</frontend_type>
208
+ <sort_order>6</sort_order>
209
+ <show_in_default>1</show_in_default>
210
+ <show_in_website>1</show_in_website>
211
+ <show_in_store>1</show_in_store>
212
+ </mac_key>
213
+ <order_confirmation translate="label">
214
+ <label>Send Order Confirmation</label>
215
+ <frontend_type>select</frontend_type>
216
+ <source_model>adminhtml/system_config_source_yesno</source_model>
217
+ <sort_order>7</sort_order>
218
+ <show_in_default>1</show_in_default>
219
+ <show_in_website>1</show_in_website>
220
+ <show_in_store>1</show_in_store>
221
+ </order_confirmation>
222
+ <invoice_confirmation translate="label">
223
+ <label>Send Invoice</label>
224
+ <frontend_type>select</frontend_type>
225
+ <source_model>adminhtml/system_config_source_yesno</source_model>
226
+ <sort_order>8</sort_order>
227
+ <show_in_default>1</show_in_default>
228
+ <show_in_website>1</show_in_website>
229
+ <show_in_store>1</show_in_store>
230
+ </invoice_confirmation>
231
+ <quick_redirect translate="label">
232
+ <label>Quick Redirect</label>
233
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
234
+ </description>
235
+ <frontend_type>select</frontend_type>
236
+ <source_model>adminhtml/system_config_source_yesno</source_model>
237
+ <sort_order>10</sort_order>
238
+ <show_in_default>1</show_in_default>
239
+ <show_in_website>1</show_in_website>
240
+ <show_in_store>1</show_in_store>
241
+ </quick_redirect>
242
+ <sort_order translate="label">
243
+ <label>Sort order</label>
244
+ <frontend_type>text</frontend_type>
245
+ <sort_order>11</sort_order>
246
+ <show_in_default>1</show_in_default>
247
+ <show_in_website>1</show_in_website>
248
+ <show_in_store>1</show_in_store>
249
+ </sort_order>
250
+ </fields>
251
+ </eepohs_nordea>
252
+ <eepohs_swedbank translate="label" module="estpay">
253
+ <label>Swedbank</label>
254
+ <sort_order>120</sort_order>
255
+ <show_in_default>1</show_in_default>
256
+ <show_in_website>1</show_in_website>
257
+ <show_in_store>1</show_in_store>
258
+ <fields>
259
+ <active translate="label">
260
+ <label>Enabled</label>
261
+ <frontend_type>select</frontend_type>
262
+ <source_model>adminhtml/system_config_source_yesno</source_model>
263
+ <sort_order>1</sort_order>
264
+ <show_in_default>1</show_in_default>
265
+ <show_in_website>1</show_in_website>
266
+ <show_in_store>1</show_in_store>
267
+ </active>
268
+ <title translate="label">
269
+ <label>Title</label>
270
+ <frontend_type>text</frontend_type>
271
+ <sort_order>2</sort_order>
272
+ <show_in_default>1</show_in_default>
273
+ <show_in_website>1</show_in_website>
274
+ <show_in_store>1</show_in_store>
275
+ </title>
276
+ <order_status translate="label">
277
+ <label>New Order Status</label>
278
+ <frontend_type>select</frontend_type>
279
+ <source_model>adminhtml/system_config_source_order_status</source_model>
280
+ <sort_order>3</sort_order>
281
+ <show_in_default>1</show_in_default>
282
+ <show_in_website>1</show_in_website>
283
+ <show_in_store>1</show_in_store>
284
+ </order_status>
285
+ <gateway_url translate="label">
286
+ <label>Gateway URL</label>
287
+ <frontend_type>text</frontend_type>
288
+ <sort_order>4</sort_order>
289
+ <show_in_default>1</show_in_default>
290
+ <show_in_website>1</show_in_website>
291
+ <show_in_store>1</show_in_store>
292
+ </gateway_url>
293
+ <vk_snd_id translate="label">
294
+ <label>Merchant ID</label>
295
+ <frontend_type>text</frontend_type>
296
+ <sort_order>5</sort_order>
297
+ <show_in_default>1</show_in_default>
298
+ <show_in_website>1</show_in_website>
299
+ <show_in_store>1</show_in_store>
300
+ </vk_snd_id>
301
+ <private_key translate="label">
302
+ <label>Private Key</label>
303
+ <frontend_type>textarea</frontend_type>
304
+ <sort_order>6</sort_order>
305
+ <show_in_default>1</show_in_default>
306
+ <show_in_website>1</show_in_website>
307
+ <show_in_store>1</show_in_store>
308
+ </private_key>
309
+ <bank_certificate translate="label">
310
+ <label>Bank Certificate</label>
311
+ <frontend_type>textarea</frontend_type>
312
+ <sort_order>7</sort_order>
313
+ <show_in_default>1</show_in_default>
314
+ <show_in_website>1</show_in_website>
315
+ <show_in_store>1</show_in_store>
316
+ </bank_certificate>
317
+ <order_confirmation translate="label">
318
+ <label>Send Order Confirmation</label>
319
+ <frontend_type>select</frontend_type>
320
+ <source_model>adminhtml/system_config_source_yesno</source_model>
321
+ <sort_order>8</sort_order>
322
+ <show_in_default>1</show_in_default>
323
+ <show_in_website>1</show_in_website>
324
+ <show_in_store>1</show_in_store>
325
+ </order_confirmation>
326
+ <invoice_confirmation translate="label">
327
+ <label>Send Invoice</label>
328
+ <frontend_type>select</frontend_type>
329
+ <source_model>adminhtml/system_config_source_yesno</source_model>
330
+ <sort_order>9</sort_order>
331
+ <show_in_default>1</show_in_default>
332
+ <show_in_website>1</show_in_website>
333
+ <show_in_store>1</show_in_store>
334
+ </invoice_confirmation>
335
+ <quick_redirect translate="label">
336
+ <label>Quick Redirect</label>
337
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
338
+ </description>
339
+ <frontend_type>select</frontend_type>
340
+ <source_model>adminhtml/system_config_source_yesno</source_model>
341
+ <sort_order>10</sort_order>
342
+ <show_in_default>1</show_in_default>
343
+ <show_in_website>1</show_in_website>
344
+ <show_in_store>1</show_in_store>
345
+ </quick_redirect>
346
+ <sort_order translate="label">
347
+ <label>Sort order</label>
348
+ <frontend_type>text</frontend_type>
349
+ <sort_order>11</sort_order>
350
+ <show_in_default>1</show_in_default>
351
+ <show_in_website>1</show_in_website>
352
+ <show_in_store>1</show_in_store>
353
+ </sort_order>
354
+ </fields>
355
+ </eepohs_swedbank>
356
+ <eepohs_sampo translate="label" module="estpay">
357
+ <label>Sampo</label>
358
+ <sort_order>130</sort_order>
359
+ <show_in_default>1</show_in_default>
360
+ <show_in_website>1</show_in_website>
361
+ <show_in_store>1</show_in_store>
362
+ <fields>
363
+ <active translate="label">
364
+ <label>Enabled</label>
365
+ <frontend_type>select</frontend_type>
366
+ <source_model>adminhtml/system_config_source_yesno</source_model>
367
+ <sort_order>1</sort_order>
368
+ <show_in_default>1</show_in_default>
369
+ <show_in_website>1</show_in_website>
370
+ <show_in_store>1</show_in_store>
371
+ </active>
372
+ <title translate="label">
373
+ <label>Title</label>
374
+ <frontend_type>text</frontend_type>
375
+ <sort_order>2</sort_order>
376
+ <show_in_default>1</show_in_default>
377
+ <show_in_website>1</show_in_website>
378
+ <show_in_store>1</show_in_store>
379
+ </title>
380
+ <order_status translate="label">
381
+ <label>New Order Status</label>
382
+ <frontend_type>select</frontend_type>
383
+ <source_model>adminhtml/system_config_source_order_status</source_model>
384
+ <sort_order>3</sort_order>
385
+ <show_in_default>1</show_in_default>
386
+ <show_in_website>1</show_in_website>
387
+ <show_in_store>1</show_in_store>
388
+ </order_status>
389
+ <gateway_url translate="label">
390
+ <label>Gateway URL</label>
391
+ <frontend_type>text</frontend_type>
392
+ <sort_order>4</sort_order>
393
+ <show_in_default>1</show_in_default>
394
+ <show_in_website>1</show_in_website>
395
+ <show_in_store>1</show_in_store>
396
+ </gateway_url>
397
+ <vk_snd_id translate="label">
398
+ <label>Merchant ID</label>
399
+ <frontend_type>text</frontend_type>
400
+ <sort_order>5</sort_order>
401
+ <show_in_default>1</show_in_default>
402
+ <show_in_website>1</show_in_website>
403
+ <show_in_store>1</show_in_store>
404
+ </vk_snd_id>
405
+ <private_key translate="label">
406
+ <label>Private Key</label>
407
+ <frontend_type>textarea</frontend_type>
408
+ <sort_order>6</sort_order>
409
+ <show_in_default>1</show_in_default>
410
+ <show_in_website>1</show_in_website>
411
+ <show_in_store>1</show_in_store>
412
+ </private_key>
413
+ <bank_certificate translate="label">
414
+ <label>Bank Certificate</label>
415
+ <frontend_type>textarea</frontend_type>
416
+ <sort_order>7</sort_order>
417
+ <show_in_default>1</show_in_default>
418
+ <show_in_website>1</show_in_website>
419
+ <show_in_store>1</show_in_store>
420
+ </bank_certificate>
421
+ <order_confirmation translate="label">
422
+ <label>Send Order Confirmation</label>
423
+ <frontend_type>select</frontend_type>
424
+ <source_model>adminhtml/system_config_source_yesno</source_model>
425
+ <sort_order>8</sort_order>
426
+ <show_in_default>1</show_in_default>
427
+ <show_in_website>1</show_in_website>
428
+ <show_in_store>1</show_in_store>
429
+ </order_confirmation>
430
+ <invoice_confirmation translate="label">
431
+ <label>Send Invoice</label>
432
+ <frontend_type>select</frontend_type>
433
+ <source_model>adminhtml/system_config_source_yesno</source_model>
434
+ <sort_order>9</sort_order>
435
+ <show_in_default>1</show_in_default>
436
+ <show_in_website>1</show_in_website>
437
+ <show_in_store>1</show_in_store>
438
+ </invoice_confirmation>
439
+ <quick_redirect translate="label">
440
+ <label>Quick Redirect</label>
441
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
442
+ </description>
443
+ <frontend_type>select</frontend_type>
444
+ <source_model>adminhtml/system_config_source_yesno</source_model>
445
+ <sort_order>10</sort_order>
446
+ <show_in_default>1</show_in_default>
447
+ <show_in_website>1</show_in_website>
448
+ <show_in_store>1</show_in_store>
449
+ </quick_redirect>
450
+ <sort_order translate="label">
451
+ <label>Sort order</label>
452
+ <frontend_type>text</frontend_type>
453
+ <sort_order>11</sort_order>
454
+ <show_in_default>1</show_in_default>
455
+ <show_in_website>1</show_in_website>
456
+ <show_in_store>1</show_in_store>
457
+ </sort_order>
458
+ </fields>
459
+ </eepohs_sampo>
460
+ <eepohs_krediidipank translate="label" module="estpay">
461
+ <label>Krediidipank</label>
462
+ <sort_order>140</sort_order>
463
+ <show_in_default>1</show_in_default>
464
+ <show_in_website>1</show_in_website>
465
+ <show_in_store>1</show_in_store>
466
+ <fields>
467
+ <active translate="label">
468
+ <label>Enabled</label>
469
+ <frontend_type>select</frontend_type>
470
+ <source_model>adminhtml/system_config_source_yesno</source_model>
471
+ <sort_order>1</sort_order>
472
+ <show_in_default>1</show_in_default>
473
+ <show_in_website>1</show_in_website>
474
+ <show_in_store>1</show_in_store>
475
+ </active>
476
+ <title translate="label">
477
+ <label>Title</label>
478
+ <frontend_type>text</frontend_type>
479
+ <sort_order>2</sort_order>
480
+ <show_in_default>1</show_in_default>
481
+ <show_in_website>1</show_in_website>
482
+ <show_in_store>1</show_in_store>
483
+ </title>
484
+ <order_status translate="label">
485
+ <label>New Order Status</label>
486
+ <frontend_type>select</frontend_type>
487
+ <source_model>adminhtml/system_config_source_order_status</source_model>
488
+ <sort_order>3</sort_order>
489
+ <show_in_default>1</show_in_default>
490
+ <show_in_website>1</show_in_website>
491
+ <show_in_store>1</show_in_store>
492
+ </order_status>
493
+ <gateway_url translate="label">
494
+ <label>Gateway URL</label>
495
+ <frontend_type>text</frontend_type>
496
+ <sort_order>4</sort_order>
497
+ <show_in_default>1</show_in_default>
498
+ <show_in_website>1</show_in_website>
499
+ <show_in_store>1</show_in_store>
500
+ </gateway_url>
501
+ <vk_snd_id translate="label">
502
+ <label>Merchant ID</label>
503
+ <frontend_type>text</frontend_type>
504
+ <sort_order>5</sort_order>
505
+ <show_in_default>1</show_in_default>
506
+ <show_in_website>1</show_in_website>
507
+ <show_in_store>1</show_in_store>
508
+ </vk_snd_id>
509
+ <private_key translate="label">
510
+ <label>Private Key</label>
511
+ <frontend_type>textarea</frontend_type>
512
+ <sort_order>6</sort_order>
513
+ <show_in_default>1</show_in_default>
514
+ <show_in_website>1</show_in_website>
515
+ <show_in_store>1</show_in_store>
516
+ </private_key>
517
+ <bank_certificate translate="label">
518
+ <label>Bank Certificate</label>
519
+ <frontend_type>textarea</frontend_type>
520
+ <sort_order>7</sort_order>
521
+ <show_in_default>1</show_in_default>
522
+ <show_in_website>1</show_in_website>
523
+ <show_in_store>1</show_in_store>
524
+ </bank_certificate>
525
+ <order_confirmation translate="label">
526
+ <label>Send Order Confirmation</label>
527
+ <frontend_type>select</frontend_type>
528
+ <source_model>adminhtml/system_config_source_yesno</source_model>
529
+ <sort_order>8</sort_order>
530
+ <show_in_default>1</show_in_default>
531
+ <show_in_website>1</show_in_website>
532
+ <show_in_store>1</show_in_store>
533
+ </order_confirmation>
534
+ <invoice_confirmation translate="label">
535
+ <label>Send Invoice</label>
536
+ <frontend_type>select</frontend_type>
537
+ <source_model>adminhtml/system_config_source_yesno</source_model>
538
+ <sort_order>9</sort_order>
539
+ <show_in_default>1</show_in_default>
540
+ <show_in_website>1</show_in_website>
541
+ <show_in_store>1</show_in_store>
542
+ </invoice_confirmation>
543
+ <quick_redirect translate="label">
544
+ <label>Quick Redirect</label>
545
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
546
+ </description>
547
+ <frontend_type>select</frontend_type>
548
+ <source_model>adminhtml/system_config_source_yesno</source_model>
549
+ <sort_order>10</sort_order>
550
+ <show_in_default>1</show_in_default>
551
+ <show_in_website>1</show_in_website>
552
+ <show_in_store>1</show_in_store>
553
+ </quick_redirect>
554
+ <sort_order translate="label">
555
+ <label>Sort order</label>
556
+ <frontend_type>text</frontend_type>
557
+ <sort_order>11</sort_order>
558
+ <show_in_default>1</show_in_default>
559
+ <show_in_website>1</show_in_website>
560
+ <show_in_store>1</show_in_store>
561
+ </sort_order>
562
+ </fields>
563
+ </eepohs_krediidipank>
564
+ <eepohs_estcard translate="label" module="estpay">
565
+ <label>Estcard</label>
566
+ <sort_order>150</sort_order>
567
+ <show_in_default>1</show_in_default>
568
+ <show_in_website>1</show_in_website>
569
+ <show_in_store>1</show_in_store>
570
+ <fields>
571
+ <active translate="label">
572
+ <label>Enabled</label>
573
+ <frontend_type>select</frontend_type>
574
+ <source_model>adminhtml/system_config_source_yesno</source_model>
575
+ <sort_order>1</sort_order>
576
+ <show_in_default>1</show_in_default>
577
+ <show_in_website>1</show_in_website>
578
+ <show_in_store>1</show_in_store>
579
+ </active>
580
+ <title translate="label">
581
+ <label>Title</label>
582
+ <frontend_type>text</frontend_type>
583
+ <sort_order>2</sort_order>
584
+ <show_in_default>1</show_in_default>
585
+ <show_in_website>1</show_in_website>
586
+ <show_in_store>1</show_in_store>
587
+ </title>
588
+ <order_status translate="label">
589
+ <label>New Order Status</label>
590
+ <frontend_type>select</frontend_type>
591
+ <source_model>adminhtml/system_config_source_order_status</source_model>
592
+ <sort_order>3</sort_order>
593
+ <show_in_default>1</show_in_default>
594
+ <show_in_website>1</show_in_website>
595
+ <show_in_store>1</show_in_store>
596
+ </order_status>
597
+ <gateway_url translate="label">
598
+ <label>Gateway URL</label>
599
+ <frontend_type>text</frontend_type>
600
+ <sort_order>4</sort_order>
601
+ <show_in_default>1</show_in_default>
602
+ <show_in_website>1</show_in_website>
603
+ <show_in_store>1</show_in_store>
604
+ </gateway_url>
605
+ <merchant_id translate="label">
606
+ <label>Merchant ID</label>
607
+ <frontend_type>text</frontend_type>
608
+ <sort_order>5</sort_order>
609
+ <show_in_default>1</show_in_default>
610
+ <show_in_website>1</show_in_website>
611
+ <show_in_store>1</show_in_store>
612
+ </merchant_id>
613
+ <private_key translate="label">
614
+ <label>Private Key</label>
615
+ <frontend_type>textarea</frontend_type>
616
+ <sort_order>6</sort_order>
617
+ <show_in_default>1</show_in_default>
618
+ <show_in_website>1</show_in_website>
619
+ <show_in_store>1</show_in_store>
620
+ </private_key>
621
+ <bank_certificate translate="label">
622
+ <label>Bank Certificate</label>
623
+ <frontend_type>textarea</frontend_type>
624
+ <sort_order>7</sort_order>
625
+ <show_in_default>1</show_in_default>
626
+ <show_in_website>1</show_in_website>
627
+ <show_in_store>1</show_in_store>
628
+ </bank_certificate>
629
+ <order_confirmation translate="label">
630
+ <label>Send Order Confirmation</label>
631
+ <frontend_type>select</frontend_type>
632
+ <source_model>adminhtml/system_config_source_yesno</source_model>
633
+ <sort_order>8</sort_order>
634
+ <show_in_default>1</show_in_default>
635
+ <show_in_website>1</show_in_website>
636
+ <show_in_store>1</show_in_store>
637
+ </order_confirmation>
638
+ <invoice_confirmation translate="label">
639
+ <label>Send Invoice</label>
640
+ <frontend_type>select</frontend_type>
641
+ <source_model>adminhtml/system_config_source_yesno</source_model>
642
+ <sort_order>9</sort_order>
643
+ <show_in_default>1</show_in_default>
644
+ <show_in_website>1</show_in_website>
645
+ <show_in_store>1</show_in_store>
646
+ </invoice_confirmation>
647
+ <quick_redirect translate="label">
648
+ <label>Quick Redirect</label>
649
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
650
+ </description>
651
+ <frontend_type>select</frontend_type>
652
+ <source_model>adminhtml/system_config_source_yesno</source_model>
653
+ <sort_order>10</sort_order>
654
+ <show_in_default>1</show_in_default>
655
+ <show_in_website>1</show_in_website>
656
+ <show_in_store>1</show_in_store>
657
+ </quick_redirect>
658
+ <sort_order translate="label">
659
+ <label>Sort order</label>
660
+ <frontend_type>text</frontend_type>
661
+ <sort_order>11</sort_order>
662
+ <show_in_default>1</show_in_default>
663
+ <show_in_website>1</show_in_website>
664
+ <show_in_store>1</show_in_store>
665
+ </sort_order>
666
+ </fields>
667
+ </eepohs_estcard>
668
+ <eepohs_lhv translate="label" module="estpay">
669
+ <label>LHV</label>
670
+ <sort_order>160</sort_order>
671
+ <show_in_default>1</show_in_default>
672
+ <show_in_website>1</show_in_website>
673
+ <show_in_store>1</show_in_store>
674
+ <fields>
675
+ <active translate="label">
676
+ <label>Enabled</label>
677
+ <frontend_type>select</frontend_type>
678
+ <source_model>adminhtml/system_config_source_yesno</source_model>
679
+ <sort_order>1</sort_order>
680
+ <show_in_default>1</show_in_default>
681
+ <show_in_website>1</show_in_website>
682
+ <show_in_store>1</show_in_store>
683
+ </active>
684
+ <title translate="label">
685
+ <label>Title</label>
686
+ <frontend_type>text</frontend_type>
687
+ <sort_order>2</sort_order>
688
+ <show_in_default>1</show_in_default>
689
+ <show_in_website>1</show_in_website>
690
+ <show_in_store>1</show_in_store>
691
+ </title>
692
+ <order_status translate="label">
693
+ <label>New Order Status</label>
694
+ <frontend_type>select</frontend_type>
695
+ <source_model>adminhtml/system_config_source_order_status</source_model>
696
+ <sort_order>3</sort_order>
697
+ <show_in_default>1</show_in_default>
698
+ <show_in_website>1</show_in_website>
699
+ <show_in_store>1</show_in_store>
700
+ </order_status>
701
+ <gateway_url translate="label">
702
+ <label>Gateway URL</label>
703
+ <frontend_type>text</frontend_type>
704
+ <sort_order>4</sort_order>
705
+ <show_in_default>1</show_in_default>
706
+ <show_in_website>1</show_in_website>
707
+ <show_in_store>1</show_in_store>
708
+ </gateway_url>
709
+ <vk_snd_id translate="label">
710
+ <label>Merchant ID</label>
711
+ <frontend_type>text</frontend_type>
712
+ <sort_order>5</sort_order>
713
+ <show_in_default>1</show_in_default>
714
+ <show_in_website>1</show_in_website>
715
+ <show_in_store>1</show_in_store>
716
+ </vk_snd_id>
717
+ <private_key translate="label">
718
+ <label>Private Key</label>
719
+ <frontend_type>textarea</frontend_type>
720
+ <sort_order>6</sort_order>
721
+ <show_in_default>1</show_in_default>
722
+ <show_in_website>1</show_in_website>
723
+ <show_in_store>1</show_in_store>
724
+ </private_key>
725
+ <bank_certificate translate="label">
726
+ <label>Bank Certificate</label>
727
+ <frontend_type>textarea</frontend_type>
728
+ <sort_order>7</sort_order>
729
+ <show_in_default>1</show_in_default>
730
+ <show_in_website>1</show_in_website>
731
+ <show_in_store>1</show_in_store>
732
+ </bank_certificate>
733
+ <order_confirmation translate="label">
734
+ <label>Send Order Confirmation</label>
735
+ <frontend_type>select</frontend_type>
736
+ <source_model>adminhtml/system_config_source_yesno</source_model>
737
+ <sort_order>8</sort_order>
738
+ <show_in_default>1</show_in_default>
739
+ <show_in_website>1</show_in_website>
740
+ <show_in_store>1</show_in_store>
741
+ </order_confirmation>
742
+ <invoice_confirmation translate="label">
743
+ <label>Send Invoice</label>
744
+ <frontend_type>select</frontend_type>
745
+ <source_model>adminhtml/system_config_source_yesno</source_model>
746
+ <sort_order>9</sort_order>
747
+ <show_in_default>1</show_in_default>
748
+ <show_in_website>1</show_in_website>
749
+ <show_in_store>1</show_in_store>
750
+ </invoice_confirmation>
751
+ <quick_redirect translate="label">
752
+ <label>Quick Redirect</label>
753
+ <description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
754
+ </description>
755
+ <frontend_type>select</frontend_type>
756
+ <source_model>adminhtml/system_config_source_yesno</source_model>
757
+ <sort_order>10</sort_order>
758
+ <show_in_default>1</show_in_default>
759
+ <show_in_website>1</show_in_website>
760
+ <show_in_store>1</show_in_store>
761
+ </quick_redirect>
762
+ <sort_order translate="label">
763
+ <label>Sort order</label>
764
+ <frontend_type>text</frontend_type>
765
+ <sort_order>11</sort_order>
766
+ <show_in_default>1</show_in_default>
767
+ <show_in_website>1</show_in_website>
768
+ <show_in_store>1</show_in_store>
769
+ </sort_order>
770
+ </fields>
771
+ </eepohs_lhv>
772
+ </groups>
773
+ </payment>
774
+ </sections>
775
+ </config>
app/design/adminhtml/default/default/layout/eepohs/estpay.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay admin layout
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ -->
47
+ <layout>
48
+ <adminhtml_system_config_edit>
49
+ <reference name="content">
50
+ <block type="estpay/adminhtml_initjs" name="estpay_initjs" template="eepohs/estpay/initjs.phtml"></block>
51
+ </reference>
52
+ </adminhtml_system_config_edit>
53
+ </layout>
app/design/adminhtml/default/default/template/eepohs/estpay/initjs.phtml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+
7
+ /**
8
+ * Estpay custom JS and HTML blocks
9
+ *
10
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
11
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
12
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
13
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
14
+ *
15
+ * Copyright (c) $year$, Eepohs OÜ
16
+ * All rights reserved.
17
+ * Redistribution and use in source and binary forms, with or without
18
+ * modification, are permitted provided that the following conditions are met:
19
+ * Redistributions of source code must retain the above copyright notice, this
20
+ * list of conditions and the following disclaimer.
21
+ * Redistributions in binary form must reproduce the above copyright notice,
22
+ * this list of conditions and the following disclaimer in the documentation
23
+ * and/or other materials provided with the distribution.
24
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
28
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
34
+ * THE POSSIBILITY OF SUCH DAMAGE.
35
+ *
36
+ * @license http://opensource.org/licenses/bsd-license.php
37
+ * @version $version$
38
+ * @author Eepohs OÜ
39
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
40
+ *
41
+ * @package Eepohs
42
+ * @subpackage Estpay
43
+ * @category Payment methods
44
+ */
45
+ ?>
46
+ <style type="text/css">
47
+ .eepohs-logo.title-logo{
48
+ height: 14px;
49
+ margin-right: 10px;
50
+ float:left;
51
+ }
52
+ .support-info hr.separator{
53
+ margin: 10px 0px;
54
+ }
55
+ .entry-edit-head.eepohs-payment-method-head{
56
+ }
57
+ </style>
58
+ <script type="text/javascript">
59
+ //<![CDATA[
60
+ function initEepohsPayment() {
61
+ var estpay = new EepohsPayment();
62
+ estpay.addCss( 'entry-edit-head' ,['payment_eepohs_seb-head', 'payment_eepohs_nordea-head', 'payment_eepohs_swedbank-head', 'payment_eepohs_sampo-head', 'payment_eepohs_krediidipank-head', 'payment_eepohs_estcard-head', 'payment_eepohs_lhv-head']);
63
+ estpay.addLogoTypes(['payment_eepohs_seb-head', 'payment_eepohs_nordea-head', 'payment_eepohs_swedbank-head', 'payment_eepohs_sampo-head', 'payment_eepohs_krediidipank-head', 'payment_eepohs_estcard-head', 'payment_eepohs_lhv-head']);
64
+ estpay.addSupportInformation(['payment_eepohs_seb', 'payment_eepohs_swedbank', 'payment_eepohs_nordea', 'payment_eepohs_krediidipank', 'payment_eepohs_sampo', 'payment_eepohs_estcard', 'payment_eepohs_lhv']);
65
+ estpay.setModuleVersion('<?php echo $this->getModuleVersion() ?>');
66
+ }
67
+ //]]>
68
+ </script>
69
+ <div id="supportInfoTemplate" class="no-display support-info">
70
+ <hr class="separator"/>
71
+ <?php echo $this->__('
72
+ <h3>Eepohs customer support</h3>
73
+ Please contact Eepohs Customer Support if you have questions or problems: <br />
74
+ E-mail: <a href="mailto:support@eepohs.com">support@eepohs.com</a><br />
75
+ Phone: +372 6041104 (Mon-Fri 9.00-17.00 GMT+2)<br /><br />
76
+ Your module name is: Eepohs_Estpay<br />
77
+ Your module version is: ' . $this->getModuleVersion()); ?>
78
+ <div>
79
+ <a href="http://eepohs.com/" title="E-commerce for the masses" target="_blank"><img src="<?php echo $this->getSkinUrl('images/eepohs/estpay/eepohs_logo_x40px.png')?>" alt="Eepohs"/></a>
80
+ </div>
81
+ </div>
app/design/frontend/base/default/layout/eepohs/estpay.xml ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay frontend layout updates
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ -->
47
+ <layout version="0.1.0">
48
+ <estpay_seb_redirect>
49
+ <reference name="content">
50
+ <block type="estpay/seb" name="estpay_seb" template="eepohs/estpay/seb.phtml">
51
+ <block type="cms/block" name="estpay_seb_description">
52
+ <action method="setBlockId">
53
+ <block_id>estpay_seb_description</block_id>
54
+ </action>
55
+ </block>
56
+ </block>
57
+ </reference>
58
+ </estpay_seb_redirect>
59
+ <estpay_nordea_redirect>
60
+ <reference name="content">
61
+ <block type="estpay/nordea" name="estpay_nordea" template="eepohs/estpay/nordea.phtml">
62
+ <block type="cms/block" name="estpay_nordea_description">
63
+ <action method="setBlockId">
64
+ <block_id>estpay_nordea_description</block_id>
65
+ </action>
66
+ </block>
67
+ </block>
68
+ </reference>
69
+ </estpay_nordea_redirect>
70
+ <estpay_swedbank_redirect>
71
+ <reference name="content">
72
+ <block type="estpay/swedbank" name="estpay_swedbank" template="eepohs/estpay/swedbank.phtml">
73
+ <block type="cms/block" name="estpay_swedbank_description">
74
+ <action method="setBlockId">
75
+ <block_id>estpay_swedbank_description</block_id>
76
+ </action>
77
+ </block>
78
+ </block>
79
+ </reference>
80
+ </estpay_swedbank_redirect>
81
+ <estpay_sampo_redirect>
82
+ <reference name="content">
83
+ <block type="estpay/sampo" name="estpay_sampo" template="eepohs/estpay/sampo.phtml">
84
+ <block type="cms/block" name="estpay_sampo_description">
85
+ <action method="setBlockId">
86
+ <block_id>estpay_sampo_description</block_id>
87
+ </action>
88
+ </block>
89
+ </block>
90
+ </reference>
91
+ </estpay_sampo_redirect>
92
+ <estpay_krediidipank_redirect>
93
+ <reference name="content">
94
+ <block type="estpay/krediidipank" name="estpay_krediidipank" template="eepohs/estpay/krediidipank.phtml">
95
+ <block type="cms/block" name="estpay_krediidipank_description">
96
+ <action method="setBlockId">
97
+ <block_id>estpay_krediidipank_description</block_id>
98
+ </action>
99
+ </block>
100
+ </block>
101
+ </reference>
102
+ </estpay_krediidipank_redirect>
103
+ <estpay_estcard_redirect>
104
+ <reference name="content">
105
+ <block type="estpay/estcard" name="estpay_estcard" template="eepohs/estpay/estcard.phtml">
106
+ <block type="cms/block" name="estpay_estcard_description">
107
+ <action method="setBlockId">
108
+ <block_id>estpay_estcard_description</block_id>
109
+ </action>
110
+ </block>
111
+ </block>
112
+ </reference>
113
+ </estpay_estcard_redirect>
114
+ <estpay_lhv_redirect>
115
+ <reference name="content">
116
+ <block type="estpay/lhv" name="estpay_lhv" template="eepohs/estpay/lhv.phtml">
117
+ <block type="cms/block" name="estpay_lhv_description">
118
+ <action method="setBlockId">
119
+ <block_id>estpay_lhv_description</block_id>
120
+ </action>
121
+ </block>
122
+ </block>
123
+ </reference>
124
+ </estpay_lhv_redirect>
125
+ </layout>
app/design/frontend/base/default/template/eepohs/estpay/estcard.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for Estcard
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_estcard">
46
+ <?php echo $this->getChildHtml('estpay_estcard_description') ?>
47
+ <form id="GatewayForm" name="estcard" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo estcard_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
51
+ <?php endforeach; ?>
52
+ <button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
53
+ </form>
54
+ <?php echo $this->getQuickRedirectScript(); ?>
55
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/krediidipank.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for Krediidipank
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_krediidipank">
46
+ <?php echo $this->getChildHtml('estpay_sampo_description') ?>
47
+ <form id="GatewayForm" name="sampo" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo krediidipank_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
51
+ <?php endforeach; ?>
52
+ <button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
53
+ </form>
54
+ <?php echo $this->getQuickRedirectScript(); ?>
55
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/lhv.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for Swedbank
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_lhv">
46
+ <?php echo $this->getChildHtml('estpay_lhv_description') ?>
47
+ <form id="GatewayForm" name="lhv" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo lhv_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
51
+ <?php endforeach; ?>
52
+ </form>
53
+ <?php echo $this->getQuickRedirectScript(); ?>
54
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/nordea.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for Nordea Bank
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_nordea">
46
+ <?php echo $this->getChildHtml('estpay_nordea_description') ?>
47
+ <form id="GatewayForm" name="nordea" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo nordea_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
51
+ <?php endforeach; ?>
52
+ <button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
53
+ </form>
54
+ <?php echo $this->getQuickRedirectScript(); ?>
55
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/sampo.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for SampoPank
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_sampo">
46
+ <?php echo $this->getChildHtml('estpay_sampo_description') ?>
47
+ <form id="GatewayForm" name="sampo" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo sampo_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
51
+ <?php endforeach; ?>
52
+ <button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
53
+ </form>
54
+ <?php echo $this->getQuickRedirectScript(); ?>
55
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/seb.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for SEB
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_seb">
46
+ <?php echo $this->getChildHtml('estpay_seb_description') ?>
47
+ <form id="GatewayForm" name="seb" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo seb_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
51
+ <?php endforeach; ?>
52
+ <button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
53
+ </form>
54
+ <?php echo $this->getQuickRedirectScript(); ?>
55
+ </div>
app/design/frontend/base/default/template/eepohs/estpay/swedbank.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eepohs
4
+ * @subpackage Estpay
5
+ */
6
+ /**
7
+ * Estpay block template for Swedbank
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ ?>
45
+ <div class="payment_estpay_container payment_method_swedbank">
46
+ <?php echo $this->getChildHtml('estpay_swedbank_description') ?>
47
+ <form id="GatewayForm" name="swedbank" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
48
+ <input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo swedbank_logo"/>
49
+ <?php foreach ($this->getFields() as $key => $value): ?>
50
+ <input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
51
+ <?php endforeach; ?>
52
+ </form>
53
+ <?php echo $this->getQuickRedirectScript(); ?>
54
+ </div>
app/etc/modules/Eepohs_Estpay.xml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * @package Eepohs
5
+ * @subpackage Estpay
6
+ */
7
+
8
+ /**
9
+ * Estpay main configuration XML
10
+ *
11
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
12
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
13
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
15
+ *
16
+ * Copyright (c) $year$, Eepohs OÜ
17
+ * All rights reserved.
18
+ * Redistribution and use in source and binary forms, with or without
19
+ * modification, are permitted provided that the following conditions are met:
20
+ * Redistributions of source code must retain the above copyright notice, this
21
+ * list of conditions and the following disclaimer.
22
+ * Redistributions in binary form must reproduce the above copyright notice,
23
+ * this list of conditions and the following disclaimer in the documentation
24
+ * and/or other materials provided with the distribution.
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35
+ * THE POSSIBILITY OF SUCH DAMAGE.
36
+ *
37
+ * @license http://opensource.org/licenses/bsd-license.php
38
+ * @version $version$
39
+ * @author Eepohs OÜ
40
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
41
+ *
42
+ * @package Eepohs
43
+ * @subpackage Estpay
44
+ * @category Payment methods
45
+ */
46
+ -->
47
+ <config>
48
+ <modules>
49
+ <Eepohs_Estpay>
50
+ <active>true</active>
51
+ <codePool>community</codePool>
52
+ <depends>
53
+ <Mage_Payment />
54
+ </depends>
55
+ </Eepohs_Estpay>
56
+ </modules>
57
+ </config>
app/locale/en_US/Eepohs_Estpay.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "Invoice number","Invoice number"
2
+ "Start payment","Start payment"
3
+ "Order number","Order number"
app/locale/et_EE/Eepohs_Estpay.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "Invoice number","Arve number"
2
+ "Start payment","Alusta maksmist"
3
+ "Order number","Tellimuse number"
js/eepohs/estpay.js ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @package Eepohs
3
+ * @subpackage Estpay
4
+ */
5
+
6
+ /**
7
+ * Custom JS for Estpay payment module
8
+ *
9
+ * PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
10
+ * BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
11
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE.
12
+ * IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
13
+ *
14
+ * Copyright (c) $year$, Eepohs OÜ
15
+ * All rights reserved.
16
+ * Redistribution and use in source and binary forms, with or without
17
+ * modification, are permitted provided that the following conditions are met:
18
+ * Redistributions of source code must retain the above copyright notice, this
19
+ * list of conditions and the following disclaimer.
20
+ * Redistributions in binary form must reproduce the above copyright notice,
21
+ * this list of conditions and the following disclaimer in the documentation
22
+ * and/or other materials provided with the distribution.
23
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33
+ * THE POSSIBILITY OF SUCH DAMAGE.
34
+ *
35
+ * @license http://opensource.org/licenses/bsd-license.php
36
+ * @version $version$
37
+ * @author Eepohs OÜ
38
+ * @copyright $year$ Eepohs OÜ http://www.eepohs.com/
39
+ *
40
+ * @package Eepohs
41
+ * @subpackage Estpay
42
+ * @category Payment methods
43
+ */
44
+ Event.observe(window, 'load', function() {
45
+ initEepohsPayment();
46
+ });
47
+
48
+ EepohsPayment = Class.create();
49
+ EepohsPayment.prototype = {
50
+ servicesApi:'http://services.eepohs.com',
51
+ version:0,
52
+ initialize: function(){
53
+
54
+ },
55
+ getServiceUrl: function(url){
56
+ return this.servicesApi + url;
57
+ },
58
+ /**
59
+ * @elements array of element id-s / payment methods
60
+ */
61
+ addLogoTypes: function(elementIds){
62
+ $A(elementIds).each(
63
+ function(item){
64
+ var img = document.createElement('img');
65
+ Element.extend(img);
66
+ img.src = SKIN_URL + 'images/eepohs/estpay/eepohs_logo_small.png';
67
+ img.addClassName('eepohs-logo title-logo');
68
+ img.writeAttribute('alt', 'Eepohs');
69
+ img.writeAttribute('title', 'Eepohs');
70
+ $(item).appendChild(img);
71
+ }
72
+ );
73
+ },
74
+ addCss: function(elementClass, classPrefixes){
75
+ $A(classPrefixes).each(function(item){
76
+ $(item).up('div.'+elementClass).addClassName('eepohs-payment-method-head');
77
+ });
78
+ },
79
+ /**
80
+ * Adds blocks with support information
81
+ */
82
+ addSupportInformation: function(elementIds){
83
+ var template = $('supportInfoTemplate');
84
+ $A(elementIds).each(
85
+ function(item){
86
+ $(item).appendChild(template.clone(true).removeClassName('no-display'));
87
+ }
88
+ );
89
+
90
+ },
91
+ addRegisterButton: function(){
92
+
93
+ },
94
+ /**
95
+ * Sets current module version
96
+ */
97
+ setModuleVersion: function(version){
98
+ this.version = version;
99
+ },
100
+ /**
101
+ * Checks for current module upgrades from Eepohs Services API
102
+ */
103
+ checkForUpgrades: function(module, version){
104
+ //TODO implement local AJAX proxy
105
+ // var url = this.servicesApi + '/software/checkVersion';
106
+ // new Ajax.Request(url,{
107
+ // onSuccess: function(response){
108
+ // alert( response.responseJSON );
109
+ // }
110
+ // });
111
+ return;
112
+ }
113
+ }
package.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>estpay</name>
4
+ <version>1.3.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="www.opensource.org/licenses/bsd-license.php">BSDL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>EstPay - Support for all Estonian payment gateways in one extension</summary>
10
+ <description>EstPay by Eepohs features support for the following payment gateways/banks in Estonia:&#xD;
11
+ Swedbank&#xD;
12
+ SEB&#xD;
13
+ SampoPank&#xD;
14
+ Krediidipank&#xD;
15
+ LHV&#xD;
16
+ Nordea&#xD;
17
+ NETS (EstCard)</description>
18
+ <notes>Initial public version of EstPay</notes>
19
+ <authors><author><name>Eepohs</name><user>eepohs</user><email>info@eepohs.com</email></author><author><name>Tanel Raja</name><user>pronto</user><email>tanel.raja@eepohs.com</email></author><author><name>Sven Varkel</name><user>svenvarkel</user><email>sven.varkel@eepohs.com</email></author></authors>
20
+ <date>2012-10-02</date>
21
+ <time>18:44:46</time>
22
+ <contents><target name="mageetc"><dir name="modules"><file name="Eepohs_Estpay.xml" hash="4c4052328314940912a1633357f9cf1b"/></dir></target><target name="magecommunity"><dir name="Eepohs"><dir name="Estpay"><dir><dir name="Block"><file name="Abstract.php" hash="c72ff0d1a1190a4febd821b522035fb1"/><dir name="Adminhtml"><file name="Initjs.php" hash="c44ecd573a82abe2f4204c03be917dc0"/></dir><file name="Estcard.php" hash="cdff5c8aff65594085dacf7873ef2aab"/><file name="IPizza.php" hash="e5195df8e9267f94342a4f060426cbaa"/><file name="Krediidipank.php" hash="3d5640ec38e1ff2c315af83d08bd760e"/><file name="Lhv.php" hash="d9c5390cdf4ffae078204f7143fdf3c5"/><file name="Nordea.php" hash="97b6db807099b34ba9035a9461989c4a"/><file name="Sampo.php" hash="f58ef85fcea69b742b2d6ae0f893ef5a"/><file name="Seb.php" hash="d8ad7054ce95f3006e26c425f4a09fb6"/><file name="Swedbank.php" hash="0cf9b0c55edf95e63db7369b46a76e79"/></dir><dir name="Controller"><file name="Abstract.php" hash="8f65f2320101e701a0b1845652cf353f"/></dir><dir name="Helper"><file name="Data.php" hash="99cf64873ea038faf4674918cc80b338"/></dir><dir name="Model"><file name="Abstract.php" hash="511dd5f39ddff1a245aad00afd64fe66"/><file name="Estcard.php" hash="539b4663527842c8ef641f8c198eb2c8"/><file name="IPizza.php" hash="f8abeef71bd1f7c3c60a1d95329f78c2"/><file name="Krediidipank.php" hash="b9999dce5b0cb5da24f5541183131dee"/><file name="Lhv.php" hash="037ae3b6da9bca3473d3026dbabcbd61"/><file name="Nordea.php" hash="9241b6c1435e46d1c9756c5117a7d5cc"/><file name="Sampo.php" hash="766722dfcf8ce4d0700b60d997e028cc"/><file name="Seb.php" hash="62be55334e33e6b6142cb3367a334c74"/><file name="Swedbank.php" hash="1d22e827a1faa20fee1dd8c94fae44d8"/></dir><dir name="controllers"><file name="EstcardController.php" hash="8d5589a9f3c169869958864e9d157a2f"/><file name="KrediidipankController.php" hash="d27c662a7143ef988905c84f1a11a0b8"/><file name="LhvController.php" hash="0cc9aca6fab92a692b72dc8904f2caf5"/><file name="NordeaController.php" hash="b32a5a5e055556579594b340b0f15b52"/><file name="SampoController.php" hash="c01d9f489c5023e00839625d89fff005"/><file name="SebController.php" hash="9433676e7d2bbc71a7f3cc55c458b457"/><file name="SwedbankController.php" hash="c7b8054c7bfa2b3df944ed6322df6721"/></dir><dir name="etc"><file name="config.xml" hash="160a2df8f7216e54334d3c4ebe164d07"/><file name="system.xml" hash="f172c4b969b40715cffd5b24364b991e"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="eepohs"><dir><dir name="estpay"><file name="eepohs_logo_small.png" hash="02f9bbc63353de450a4251032696b771"/><file name="eepohs_logo_x40px.png" hash="f224808ff96cb44bf2ca175606d08140"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eepohs"><dir name="estpay"><file name="estcard_logo_120x31.gif" hash="61ba903f860fdd8fa43f38d3f579fcdc"/><file name="krediidipank_logo_88x31.gif" hash="d4fe2e6bf5161b19a4a05185d4bfbb43"/><file name="lhv_logo_120x60.png" hash="197fbb4fa075144b00bb9ea8e72314a1"/><file name="lhv_logo_88x31.png" hash="6e824143ac44b64901dfcb8015362259"/><file name="nordea_logo_88x31.gif" hash="e519ba2ceb26c4f28e913a6f93a6041d"/><file name="sampo_logo_88x31.gif" hash="c4e1a434cadffa75481dd3afea813c01"/><file name="seb_logo_88x31.gif" hash="cad693371f8e2373fd29db412e26ec12"/><file name="swedbank_logo_220x31_eng.png" hash="d426e1adaa59fa0cbf315786631f122d"/><file name="swedbank_logo_220x31_est.png" hash="4c46c36d136e16bc66be16d005ff0ad4"/><file name="swedbank_logo_220x31_rus.png" hash="ec799492da209f8502fddc50ef4eeb30"/><file name="swedbank_logo_88x31.gif" hash="c645adcc9fff6c4edd8eef444234e7b6"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="eepohs"><file name="estpay.xml" hash="b99db2f586ea4e01ca100c97a8fb0d58"/></dir></dir><dir name="template"><dir name="eepohs"><dir name="estpay"><file name="estcard.phtml" hash="247c08383fab6bb12f12de3f2c5d705b"/><file name="krediidipank.phtml" hash="1ae4a52488eba0c92cf1cfcec6c30656"/><file name="lhv.phtml" hash="61fd2d5836346f3d3f0cdfd82f3e62a9"/><file name="nordea.phtml" hash="785cb6a063f8056f89d160e8977f0ff3"/><file name="sampo.phtml" hash="c047dec379deade0e92e306164c1e115"/><file name="seb.phtml" hash="fd8b51d033172675f09d79f3317db152"/><file name="swedbank.phtml" hash="f4c0b91c7d8cb5851a6043b277ba9400"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="eepohs"><file name="estpay.xml" hash="91d169645366724695c141eb2fc2554d"/></dir></dir><dir name="template"><dir name="eepohs"><dir name="estpay"><file name="initjs.phtml" hash="e5665ee6e34d6087702896281f450d81"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="et_EE"><file name="Eepohs_Estpay.csv" hash="61dbb2ea54f163e377a2de1e3ad05f63"/></dir><dir name="en_US"><file name="Eepohs_Estpay.csv" hash="9cbd3ab267115477caa7f51d6a1197d9"/></dir></target><target name="mageweb"><dir name="js"><dir name="eepohs"><file name="estpay.js" hash="f8efc482ad7c068335c62f31903adb3b"/></dir></dir></target></contents>
23
+ <compatible/>
24
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
25
+ </package>
skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_small.png ADDED
Binary file
skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_x40px.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/estcard_logo_120x31.gif ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/krediidipank_logo_88x31.gif ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/lhv_logo_120x60.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/lhv_logo_88x31.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/nordea_logo_88x31.gif ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/sampo_logo_88x31.gif ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/seb_logo_88x31.gif ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_eng.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_est.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_220x31_rus.png ADDED
Binary file
skin/frontend/base/default/images/eepohs/estpay/swedbank_logo_88x31.gif ADDED
Binary file