Version Notes
2.1.1
add module version info to system config
2.1.0
Multon_Estpay
2.0.6
** Bug
* [ES-3] - EstCardiga makstes on pangast tagasi tulles 505 viga
2.0.2
First stable release
2.0.1
Eepohs_Estpay
FIX: get currency from order
Download this release
Release Info
Developer | Multon |
Extension | estpay |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 2.1.1
- app/code/community/Eepohs/Estpay/Block/Abstract.php +0 -120
- app/code/community/Eepohs/Estpay/Block/Adminhtml/Initjs.php +0 -102
- app/code/community/Eepohs/Estpay/Block/Danske.php +0 -60
- app/code/community/Eepohs/Estpay/Block/Estcard.php +0 -151
- app/code/community/Eepohs/Estpay/Block/IPizza.php +0 -120
- app/code/community/Eepohs/Estpay/Block/Info.php +0 -82
- app/code/community/Eepohs/Estpay/Block/Krediidipank.php +0 -60
- app/code/community/Eepohs/Estpay/Block/Lhv.php +0 -71
- app/code/community/Eepohs/Estpay/Block/Nordea.php +0 -118
- app/code/community/Eepohs/Estpay/Block/Seb.php +0 -60
- app/code/community/Eepohs/Estpay/Block/Swedbank.php +0 -58
- app/code/community/Eepohs/Estpay/Controller/Abstract.php +0 -142
- app/code/community/Eepohs/Estpay/Helper/Data.php +0 -82
- app/code/community/Eepohs/Estpay/Model/Abstract.php +0 -104
- app/code/community/Eepohs/Estpay/Model/Danske.php +0 -60
- app/code/community/Eepohs/Estpay/Model/Estcard.php +0 -127
- app/code/community/Eepohs/Estpay/Model/IPizza.php +0 -184
- app/code/community/Eepohs/Estpay/Model/Krediidipank.php +0 -60
- app/code/community/Eepohs/Estpay/Model/Lhv.php +0 -60
- app/code/community/Eepohs/Estpay/Model/Nordea.php +0 -107
- app/code/community/Eepohs/Estpay/Model/Seb.php +0 -60
- app/code/community/Eepohs/Estpay/Model/Swedbank.php +0 -60
- app/code/community/Eepohs/Estpay/controllers/DanskeController.php +0 -59
- app/code/community/Eepohs/Estpay/controllers/EstcardController.php +0 -60
- app/code/community/Eepohs/Estpay/controllers/KrediidipankController.php +0 -59
- app/code/community/Eepohs/Estpay/controllers/LhvController.php +0 -59
- app/code/community/Eepohs/Estpay/controllers/NordeaController.php +0 -60
- app/code/community/Eepohs/Estpay/controllers/SebController.php +0 -59
- app/code/community/Eepohs/Estpay/controllers/SwedbankController.php +0 -60
- app/code/community/Eepohs/Estpay/etc/system.xml +0 -783
- app/code/community/Multon/Core/Block/Adminhtml/Fieldset.php +19 -0
- app/code/community/Multon/Core/Helper/Data.php +9 -0
- app/code/community/Multon/Core/Model/Observer.php +17 -0
- app/code/community/Multon/Core/etc/adminhtml.xml +31 -0
- app/code/community/Multon/Core/etc/config.xml +43 -0
- app/code/community/Multon/Core/etc/system.xml +41 -0
- app/code/community/Multon/Estpay/Block/Adminhtml/System/Config/Version.php +22 -0
- app/code/community/Multon/Estpay/Block/Danske.php +9 -0
- app/code/community/Multon/Estpay/Block/Estcard.php +95 -0
- app/code/community/Multon/Estpay/Block/IPizza.php +24 -0
- app/code/community/Multon/Estpay/Block/Info.php +35 -0
- app/code/community/Multon/Estpay/Block/Krediidipank.php +9 -0
- app/code/community/Multon/Estpay/Block/Lhv.php +20 -0
- app/code/community/Multon/Estpay/Block/Nordea.php +75 -0
- app/code/community/Multon/Estpay/Block/Seb.php +9 -0
- app/code/community/Multon/Estpay/Block/Swedbank.php +8 -0
- app/code/community/Multon/Estpay/Model/Danske.php +10 -0
- app/code/community/Multon/Estpay/Model/Estcard.php +81 -0
- app/code/community/Multon/Estpay/Model/IPizza.php +11 -0
- app/code/community/Multon/Estpay/Model/Krediidipank.php +10 -0
- app/code/community/Multon/Estpay/Model/Lhv.php +10 -0
- app/code/community/Multon/Estpay/Model/Nordea.php +62 -0
- app/code/community/Multon/Estpay/Model/Seb.php +10 -0
- app/code/community/Multon/Estpay/Model/Swedbank.php +10 -0
- app/code/community/Multon/Estpay/controllers/DanskeController.php +9 -0
- app/code/community/Multon/Estpay/controllers/EstcardController.php +11 -0
- app/code/community/Multon/Estpay/controllers/KrediidipankController.php +9 -0
- app/code/community/Multon/Estpay/controllers/LhvController.php +9 -0
- app/code/community/Multon/Estpay/controllers/NordeaController.php +10 -0
- app/code/community/Multon/Estpay/controllers/SebController.php +9 -0
- app/code/community/Multon/Estpay/controllers/SwedbankController.php +9 -0
- app/code/community/{Eepohs → Multon}/Estpay/etc/config.xml +33 -122
- app/code/community/Multon/Estpay/etc/system.xml +862 -0
- app/code/community/Multon/Payment/Block/Abstract.php +59 -0
- app/code/community/Multon/Payment/Block/IPizza.php +98 -0
- app/code/community/Multon/Payment/Block/Info.php +31 -0
- app/code/community/Multon/Payment/Controller/Abstract.php +104 -0
- app/code/community/Multon/Payment/Helper/Data.php +32 -0
- app/code/community/Multon/Payment/Model/Abstract.php +140 -0
- app/code/community/Multon/Payment/Model/IPizza.php +139 -0
- app/code/community/Multon/Payment/Model/Missing/Payment.php +27 -0
- app/code/community/Multon/Payment/Model/Order/Payment.php +25 -0
- app/code/community/Multon/Payment/etc/config.xml +48 -0
- app/design/adminhtml/default/default/layout/eepohs/estpay.xml +0 -53
- app/design/adminhtml/default/default/template/eepohs/estpay/initjs.phtml +0 -82
- app/design/frontend/base/default/layout/{eepohs → multon}/estpay.xml +8 -62
- app/design/frontend/base/default/template/eepohs/estpay/danske.phtml +0 -64
- app/design/frontend/base/default/template/eepohs/estpay/estcard.phtml +0 -64
- app/design/frontend/base/default/template/eepohs/estpay/info.phtml +0 -63
- app/design/frontend/base/default/template/eepohs/estpay/krediidipank.phtml +0 -64
- app/design/frontend/base/default/template/eepohs/estpay/lhv.phtml +0 -63
- app/design/frontend/base/default/template/eepohs/estpay/nordea.phtml +0 -64
- app/design/frontend/base/default/template/eepohs/estpay/seb.phtml +0 -64
- app/design/frontend/base/default/template/eepohs/estpay/swedbank.phtml +0 -63
- app/design/frontend/base/default/template/multon/estpay/danske.phtml +11 -0
- app/design/frontend/base/default/template/multon/estpay/estcard.phtml +11 -0
- app/design/frontend/base/default/template/multon/estpay/info.phtml +16 -0
- app/design/frontend/base/default/template/multon/estpay/krediidipank.phtml +11 -0
- app/design/frontend/base/default/template/multon/estpay/lhv.phtml +10 -0
- app/design/frontend/base/default/template/multon/estpay/nordea.phtml +11 -0
- app/design/frontend/base/default/template/multon/estpay/seb.phtml +11 -0
- app/design/frontend/base/default/template/multon/estpay/swedbank.phtml +10 -0
- app/etc/modules/Eepohs_Estpay.xml +0 -65
- app/etc/modules/Multon_Core.xml +9 -0
- app/etc/modules/Multon_Estpay.xml +12 -0
- app/etc/modules/Multon_Payment.xml +13 -0
- app/locale/en_US/Eepohs_Estpay.csv +0 -3
- app/locale/et_EE/Eepohs_Estpay.csv +0 -3
- js/eepohs/estpay.js +0 -100
- package.xml +33 -16
- skin/adminhtml/default/default/images/eepohs/eepohs_logo_small.png +0 -0
- skin/adminhtml/default/default/images/eepohs/eepohs_logo_x40px.png +0 -0
- skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_small.png +0 -0
- skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_x40px.png +0 -0
- skin/adminhtml/default/default/images/eepohs/informer/eepohs_logo_x40px.png +0 -0
- skin/adminhtml/default/default/images/multon/multon_black.png +0 -0
- skin/adminhtml/default/default/images/multon/multon_blue.png +0 -0
- skin/adminhtml/default/default/images/multon/multon_small.png +0 -0
- skin/frontend/base/default/images/eepohs/estpay/sampo_logo_88x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/danske_logo_88x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/estcard_logo_120x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/krediidipank_logo_88x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/lhv_logo_120x60.png +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/lhv_logo_88x31.png +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/nordea_logo_88x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/seb_logo_88x31.gif +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_eng.png +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_est.png +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_rus.png +0 -0
- skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_88x31.gif +0 -0
app/code/community/Eepohs/Estpay/Block/Abstract.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Abstract.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Abstract block for Estpay payment methods (different banks)
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Abstract extends Mage_Payment_Block_Form
|
55 |
-
{
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Returns payment gateway URL
|
59 |
-
*
|
60 |
-
* @return string Gateway URL
|
61 |
-
*/
|
62 |
-
public function getGatewayUrl()
|
63 |
-
{
|
64 |
-
return Mage::getStoreConfig('payment/' . $this->_code . '/gateway_url');
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Adds payment mehtod logotypes after method name
|
69 |
-
*
|
70 |
-
* @return string
|
71 |
-
*/
|
72 |
-
public function getMethodLabelAfterHtml()
|
73 |
-
{
|
74 |
-
$blockHtml = sprintf(
|
75 |
-
'<img src="%1$s"
|
76 |
-
title="%2$s"
|
77 |
-
alt="%2$s"
|
78 |
-
class="payment-method-logo"/>',
|
79 |
-
$this->getMethodLogoUrl(), ucfirst($this->_gateway)
|
80 |
-
);
|
81 |
-
return $blockHtml;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Returns payment method logo URL
|
86 |
-
*
|
87 |
-
* @return string
|
88 |
-
*/
|
89 |
-
public function getMethodLogoUrl()
|
90 |
-
{
|
91 |
-
return $this->getSkinUrl(
|
92 |
-
sprintf(
|
93 |
-
'images/eepohs/estpay/%s_logo_88x31.gif',
|
94 |
-
strtolower($this->_gateway)
|
95 |
-
)
|
96 |
-
);
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Checks if quick redirect is enabled and
|
101 |
-
* returns javascript block that redirects user
|
102 |
-
* to bank without intermediate page
|
103 |
-
*
|
104 |
-
* @since 1.3.0
|
105 |
-
* @return outstr Javascript block
|
106 |
-
*/
|
107 |
-
public function getQuickRedirectScript()
|
108 |
-
{
|
109 |
-
$outstr = '';
|
110 |
-
if (
|
111 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/quick_redirect')
|
112 |
-
) {
|
113 |
-
$outstr = '<script type="text/javascript"><!--
|
114 |
-
if($("GatewayForm")){$("GatewayForm").submit();}
|
115 |
-
//--></script>';
|
116 |
-
}
|
117 |
-
return $outstr;
|
118 |
-
}
|
119 |
-
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Adminhtml/Initjs.php
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Initjs.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* AdminHtml InitJS block for Estpay that loads custom JS
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Adminhtml_Initjs extends Mage_Adminhtml_Block_Template
|
55 |
-
{
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Include JS in the head if section is Eepohs/Estpay
|
59 |
-
*
|
60 |
-
* @return void
|
61 |
-
*/
|
62 |
-
protected function _prepareLayout()
|
63 |
-
{
|
64 |
-
$section = $this->getAction()->getRequest()->getParam('section', false);
|
65 |
-
if ( $section == 'payment' ) {
|
66 |
-
$this->getLayout()
|
67 |
-
->getBlock('head')
|
68 |
-
->addJs('eepohs/estpay.js');
|
69 |
-
}
|
70 |
-
parent::_prepareLayout();
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Renders current block to HTML
|
75 |
-
*
|
76 |
-
* @return string HTML
|
77 |
-
*/
|
78 |
-
protected function _toHtml()
|
79 |
-
{
|
80 |
-
$section = $this->getAction()->getRequest()->getParam('section', false);
|
81 |
-
if ( $section == 'payment' ) {
|
82 |
-
return parent::_toHtml();
|
83 |
-
} else {
|
84 |
-
return '';
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Returns version number of Estpay
|
90 |
-
*
|
91 |
-
* @return string
|
92 |
-
*/
|
93 |
-
public function getModuleVersion()
|
94 |
-
{
|
95 |
-
return (string) Mage::getConfig()
|
96 |
-
->getNode()
|
97 |
-
->modules
|
98 |
-
->Eepohs_Estpay
|
99 |
-
->version;
|
100 |
-
}
|
101 |
-
|
102 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Danske.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Danske.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Danske form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Danske extends Eepohs_Estpay_Block_IPizza
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_code = 'eepohs_danske';
|
58 |
-
protected $_gateway = 'danske';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Estcard.php
DELETED
@@ -1,151 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Estcard.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Estcard form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Estcard extends Eepohs_Estpay_Block_Abstract
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_code = 'eepohs_estcard';
|
58 |
-
protected $_gateway = 'estcard';
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Populates and returns array for form that
|
62 |
-
* will be submitted to Estcard
|
63 |
-
*
|
64 |
-
* @return array
|
65 |
-
*/
|
66 |
-
public function getFields()
|
67 |
-
{
|
68 |
-
|
69 |
-
$fields = array();
|
70 |
-
//NB! NETS does not support any field for reference ID
|
71 |
-
//it's needed to rely on session in case of Estcard/NETS
|
72 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
73 |
-
$order = Mage::getModel('sales/order')->load($orderId);
|
74 |
-
|
75 |
-
$fields['action'] = 'gaf';
|
76 |
-
$fields['ver'] = '004'; // Old version was 002
|
77 |
-
$fields['id'] =
|
78 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
|
79 |
-
$fields['ecuno'] = sprintf('%012s', $order->getIncrementId());
|
80 |
-
$fields['eamount'] =
|
81 |
-
sprintf("%012s", (round($order->getBaseGrandTotal(), 2) * 100));
|
82 |
-
$fields['cur'] = $order->getOrderCurrencyCode();
|
83 |
-
$fields['datetime'] = date("YmdHis");
|
84 |
-
|
85 |
-
switch ( Mage::app()->getLocale()->getLocaleCode() ) {
|
86 |
-
case 'et_EE':
|
87 |
-
$language = 'et';
|
88 |
-
break;
|
89 |
-
case 'ru_RU':
|
90 |
-
$language = 'ru';
|
91 |
-
break;
|
92 |
-
case 'fi_FI':
|
93 |
-
$language = 'fi';
|
94 |
-
break;
|
95 |
-
case 'de_DE':
|
96 |
-
$language = 'de';
|
97 |
-
break;
|
98 |
-
default:
|
99 |
-
$language = 'en';
|
100 |
-
break;
|
101 |
-
}
|
102 |
-
$fields['lang'] = $language;
|
103 |
-
|
104 |
-
// gaf004 related stuff
|
105 |
-
$fields['charEncoding'] = 'ISO-8859-1';
|
106 |
-
// $fields['charEncoding'] = 'UTF-8';
|
107 |
-
|
108 |
-
$fields['feedBackUrl'] = Mage::getUrl(
|
109 |
-
'estpay/' . $this->_gateway . '/return', array('_nosid' => true)
|
110 |
-
);
|
111 |
-
$fields['delivery'] = 'T';
|
112 |
-
// Hardcoded for test purposes T = Physical delivery,
|
113 |
-
// S = Electronic delivery
|
114 |
-
|
115 |
-
$data =
|
116 |
-
$fields['ver']
|
117 |
-
. sprintf("%-10s", $fields['id'])
|
118 |
-
. $fields['ecuno']
|
119 |
-
. $fields['eamount']
|
120 |
-
. $fields['cur']
|
121 |
-
. $fields['datetime']
|
122 |
-
. sprintf("%-128s", $fields['feedBackUrl'])
|
123 |
-
. $fields['delivery'];
|
124 |
-
|
125 |
-
$mac = sha1($data);
|
126 |
-
$key = openssl_pkey_get_private(
|
127 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/private_key')
|
128 |
-
);
|
129 |
-
openssl_sign($data, $mac, $key);
|
130 |
-
$fields['mac'] = bin2hex($mac);
|
131 |
-
openssl_free_key($key);
|
132 |
-
|
133 |
-
return $fields;
|
134 |
-
}
|
135 |
-
|
136 |
-
/**
|
137 |
-
* Get Estcard method logo URL
|
138 |
-
*
|
139 |
-
* @return string
|
140 |
-
*/
|
141 |
-
public function getMethodLogoUrl()
|
142 |
-
{
|
143 |
-
return $this->getSkinUrl(
|
144 |
-
sprintf(
|
145 |
-
'images/eepohs/estpay/%s_logo_120x31.gif',
|
146 |
-
strtolower($this->_gateway)
|
147 |
-
)
|
148 |
-
);
|
149 |
-
}
|
150 |
-
|
151 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/IPizza.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* IPizza.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Form block for Estpay methods that use iPizza standard
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_IPizza extends Eepohs_Estpay_Block_Abstract
|
55 |
-
{
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Populates and returns array of fields to be submitted
|
59 |
-
* to a bank for payment
|
60 |
-
*
|
61 |
-
* @return Array
|
62 |
-
*/
|
63 |
-
public function getFields()
|
64 |
-
{
|
65 |
-
|
66 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
67 |
-
$order = Mage::getModel('sales/order')->load($orderId);
|
68 |
-
|
69 |
-
$fields = array();
|
70 |
-
|
71 |
-
$fields['VK_SERVICE'] = '1002';
|
72 |
-
$fields['VK_VERSION'] = '008';
|
73 |
-
$fields['VK_SND_ID'] = Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id');
|
74 |
-
$fields['VK_REF'] = '';
|
75 |
-
$fields['VK_RETURN'] = Mage::getUrl('estpay/' . $this->_gateway . '/return');
|
76 |
-
|
77 |
-
switch ( Mage::app()->getLocale()->getLocaleCode() ) {
|
78 |
-
case 'et_EE':
|
79 |
-
$language = 'EST';
|
80 |
-
break;
|
81 |
-
case 'ru_RU':
|
82 |
-
$language = 'RUS';
|
83 |
-
break;
|
84 |
-
default:
|
85 |
-
$language = 'ENG';
|
86 |
-
break;
|
87 |
-
}
|
88 |
-
|
89 |
-
$fields['VK_LANG'] = $language;
|
90 |
-
$fields['VK_STAMP'] = $order->getIncrementId();
|
91 |
-
|
92 |
-
$fields['VK_AMOUNT'] = number_format(
|
93 |
-
$order->getBaseGrandTotal(), 2, '.', ''
|
94 |
-
);
|
95 |
-
$fields['VK_CURR'] = 'EUR';
|
96 |
-
$fields['VK_MSG'] =
|
97 |
-
__('Order number') . ': ' . $order->getIncrementId();
|
98 |
-
|
99 |
-
$data =
|
100 |
-
sprintf('%03d%s', strlen($fields['VK_SERVICE']), $fields['VK_SERVICE'])
|
101 |
-
. sprintf('%03d%s', strlen($fields['VK_VERSION']), $fields['VK_VERSION'])
|
102 |
-
. sprintf('%03d%s', strlen($fields['VK_SND_ID']), $fields['VK_SND_ID'])
|
103 |
-
. sprintf('%03d%s', strlen($fields['VK_STAMP']), $fields['VK_STAMP'])
|
104 |
-
. sprintf('%03d%s', strlen($fields['VK_AMOUNT']), $fields['VK_AMOUNT'])
|
105 |
-
. sprintf('%03d%s', strlen($fields['VK_CURR']), $fields['VK_CURR'])
|
106 |
-
. sprintf('%03d%s', strlen($fields['VK_REF']), $fields['VK_REF'])
|
107 |
-
. sprintf('%03d%s', strlen($fields['VK_MSG']), $fields['VK_MSG']);
|
108 |
-
|
109 |
-
$key = openssl_pkey_get_private(
|
110 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/private_key'), ''
|
111 |
-
);
|
112 |
-
$signature = null;
|
113 |
-
openssl_sign($data, $signature, $key);
|
114 |
-
$fields['VK_MAC'] = base64_encode($signature);
|
115 |
-
openssl_free_key($key);
|
116 |
-
|
117 |
-
return $fields;
|
118 |
-
}
|
119 |
-
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Info.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Info.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Information block that returns list of enabled banks
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Info extends Mage_Core_Block_Template
|
55 |
-
{
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Returns array of enabled Estpay
|
59 |
-
* gateways
|
60 |
-
*
|
61 |
-
* @return array
|
62 |
-
*/
|
63 |
-
public function getEnabledGateways()
|
64 |
-
{
|
65 |
-
$paymentMethods = Mage::getSingleton('payment/config')->getActiveMethods();
|
66 |
-
$methods = array();
|
67 |
-
foreach ($paymentMethods as $paymentCode => $paymentModel) {
|
68 |
-
if ($paymentModel instanceof Eepohs_Estpay_Model_Abstract) {
|
69 |
-
$paymentTitle = Mage::getStoreConfig('payment/' . $paymentCode . '/title');
|
70 |
-
$formBlockType = $paymentModel->getFormBlockType();
|
71 |
-
$formBlockInstance = Mage::getBlockSingleton($formBlockType);
|
72 |
-
$methods[] = array(
|
73 |
-
'title' => $paymentTitle,
|
74 |
-
'code' => $paymentCode,
|
75 |
-
'logo' => $formBlockInstance->getMethodLogoUrl()
|
76 |
-
);
|
77 |
-
}
|
78 |
-
}
|
79 |
-
return $methods;
|
80 |
-
}
|
81 |
-
|
82 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Krediidipank.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Krediidipank.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Krediidipank form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Krediidipank extends Eepohs_Estpay_Block_IPizza
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_code = 'eepohs_krediidipank';
|
58 |
-
protected $_gateway = 'krediidipank';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Lhv.php
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Lhv.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* LHV form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Lhv extends Eepohs_Estpay_Block_IPizza
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_code = 'eepohs_lhv';
|
58 |
-
protected $_gateway = 'lhv';
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Returns LHV logo URL under base/default
|
62 |
-
* theme skin
|
63 |
-
*
|
64 |
-
* @return string image URL
|
65 |
-
*/
|
66 |
-
public function getMethodLogoUrl()
|
67 |
-
{
|
68 |
-
return $this->getSkinUrl('images/eepohs/estpay/lhv_logo_88x31.png');
|
69 |
-
}
|
70 |
-
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Nordea.php
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Nordea.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Nordea Bank form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Nordea extends Eepohs_Estpay_Block_Abstract
|
55 |
-
{
|
56 |
-
protected $_code = 'eepohs_nordea';
|
57 |
-
protected $_gateway = 'nordea';
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Returns fields for Nordea form
|
61 |
-
* to be submitted to bank
|
62 |
-
*
|
63 |
-
* @return array
|
64 |
-
*/
|
65 |
-
public function getFields()
|
66 |
-
{
|
67 |
-
|
68 |
-
$fields = array();
|
69 |
-
$helper = Mage::helper('estpay');
|
70 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
71 |
-
$order = Mage::getModel('sales/order')->load($orderId);
|
72 |
-
|
73 |
-
$fields['SOLOPMT_VERSION'] = '0003';
|
74 |
-
$fields['SOLOPMT_STAMP'] = time();
|
75 |
-
$fields['SOLOPMT_RCV_ID'] = Mage::getStoreConfig('payment/' . $this->_code . '/service_provider');
|
76 |
-
|
77 |
-
/* Choose language:
|
78 |
-
* 3 = english, 4 = estonian, 6 = latvian, 7 = lithuanian
|
79 |
-
*/
|
80 |
-
switch (Mage::app()->getLocale()->getLocaleCode()) {
|
81 |
-
case 'et_EE':
|
82 |
-
$language = '4';
|
83 |
-
break;
|
84 |
-
default:
|
85 |
-
$language = '3';
|
86 |
-
break;
|
87 |
-
}
|
88 |
-
$fields['SOLOPMT_LANGUAGE'] = $language;
|
89 |
-
|
90 |
-
$fields['SOLOPMT_AMOUNT'] = number_format(
|
91 |
-
$order->getBaseGrandTotal(), 2, '.', ''
|
92 |
-
);
|
93 |
-
$fields['SOLOPMT_REF'] = $helper->calcRef($order->getIncrementId());
|
94 |
-
$fields['SOLOPMT_DATE'] = 'EXPRESS';
|
95 |
-
$fields['SOLOPMT_MSG'] = __('Invoice number') . ' ' . $order->getIncrementId();
|
96 |
-
$fields['SOLOPMT_RETURN'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
|
97 |
-
$fields['SOLOPMT_CANCEL'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
|
98 |
-
$fields['SOLOPMT_REJECT'] = Mage::getUrl('estpay/' . $this->_gateway . '/return') . '?';
|
99 |
-
$fields['SOLOPMT_CONFIRM'] = 'YES';
|
100 |
-
$fields['SOLOPMT_KEYVERS'] = '0001';
|
101 |
-
$fields['SOLOPMT_CUR'] = 'EUR';
|
102 |
-
|
103 |
-
$data = $fields['SOLOPMT_VERSION'] . '&'
|
104 |
-
. $fields['SOLOPMT_STAMP'] . '&' .
|
105 |
-
$fields['SOLOPMT_RCV_ID'] . '&' .
|
106 |
-
$fields['SOLOPMT_AMOUNT'] . '&' .
|
107 |
-
$fields['SOLOPMT_REF'] . '&' .
|
108 |
-
$fields['SOLOPMT_DATE'] . '&' .
|
109 |
-
$fields['SOLOPMT_CUR'] . '&' .
|
110 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
|
111 |
-
|
112 |
-
$fields['STRING'] = $data;
|
113 |
-
$fields['SOLOPMT_MAC'] = strtoupper(md5($data));
|
114 |
-
|
115 |
-
return $fields;
|
116 |
-
}
|
117 |
-
|
118 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Seb.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Seb.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* SEB form block for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Block_Seb extends Eepohs_Estpay_Block_IPizza
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_code = 'eepohs_seb';
|
58 |
-
protected $_gateway = 'seb';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Block/Swedbank.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Swedbank.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Swedbank form block for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Block_Swedbank extends Eepohs_Estpay_Block_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_swedbank';
|
57 |
-
protected $_gateway = 'swedbank';
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Controller/Abstract.php
DELETED
@@ -1,142 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Abstract.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Abstract controller for Estpay that all controllers will inherit from
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Controller_Abstract extends Mage_Core_Controller_Front_Action
|
55 |
-
{
|
56 |
-
/**
|
57 |
-
*
|
58 |
-
* @var specifies log file name for Estpay
|
59 |
-
*/
|
60 |
-
protected $logFile = 'estpay.log';
|
61 |
-
|
62 |
-
/**
|
63 |
-
*
|
64 |
-
* @var Specifies model to be used to verify response from bank
|
65 |
-
*/
|
66 |
-
protected $_model;
|
67 |
-
|
68 |
-
/**
|
69 |
-
* This action redirects user to bank for payment
|
70 |
-
*
|
71 |
-
* @return void
|
72 |
-
*/
|
73 |
-
public function redirectAction()
|
74 |
-
{
|
75 |
-
|
76 |
-
/* Send order confirmation */
|
77 |
-
if (Mage::getStoreConfig('payment/' . $this->_code . '/order_confirmation') == '1') {
|
78 |
-
try {
|
79 |
-
$order = Mage::getModel('sales/order');
|
80 |
-
$order->load(
|
81 |
-
Mage::getSingleton('checkout/session')->getLastOrderId()
|
82 |
-
);
|
83 |
-
$order->sendNewOrderEmail();
|
84 |
-
$order->save();
|
85 |
-
} catch (Exception $e) {
|
86 |
-
Mage::log(
|
87 |
-
sprintf('%s(%s): %s', __METHOD__, __LINE__, print_r($e->getMessage(), true)
|
88 |
-
), null, $this->logFile
|
89 |
-
);
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
$this->loadLayout();
|
94 |
-
$this->renderLayout();
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* This is return action handler for Estpay
|
99 |
-
* payment method
|
100 |
-
* It verifies signature and creates invoice.
|
101 |
-
* In case of verification failure it cancels the order
|
102 |
-
*
|
103 |
-
* @return void
|
104 |
-
*/
|
105 |
-
public function returnAction()
|
106 |
-
{
|
107 |
-
|
108 |
-
Mage::log(
|
109 |
-
sprintf(
|
110 |
-
'%s(%s)@%s: %s', __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR'],
|
111 |
-
print_r($this->getRequest()->getParams(), true)
|
112 |
-
), null, $this->logFile
|
113 |
-
);
|
114 |
-
$session = Mage::getSingleton('checkout/session');
|
115 |
-
$orderId = $session->getLastRealOrderId();
|
116 |
-
if (!$orderId) {
|
117 |
-
$orderId = $this->getRequest()->getParam('VK_STAMP');
|
118 |
-
}
|
119 |
-
if (!$orderId) {
|
120 |
-
$this->_redirect('checkout/onepage/failure');
|
121 |
-
return;
|
122 |
-
}
|
123 |
-
$model = Mage::getModel($this->_model);
|
124 |
-
$model->setOrderId($orderId);
|
125 |
-
$verify = $model->verify($this->getRequest()->getParams());
|
126 |
-
switch ($verify) {
|
127 |
-
case Eepohs_Estpay_Helper_Data::_VERIFY_SUCCESS:
|
128 |
-
$model->createInvoice();
|
129 |
-
$this->_redirect('checkout/onepage/success');
|
130 |
-
break;
|
131 |
-
case Eepohs_Estpay_Helper_Data::_VERIFY_CANCEL:
|
132 |
-
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
|
133 |
-
$order->cancel()->save();
|
134 |
-
$this->_redirect('checkout/onepage/failure');
|
135 |
-
break;
|
136 |
-
case Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT:
|
137 |
-
default:
|
138 |
-
break;
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Helper/Data.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Data.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Generic helper for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Helper_Data extends Mage_Core_Helper_Abstract
|
54 |
-
{
|
55 |
-
const _VERIFY_SUCCESS = 1; // payment successful
|
56 |
-
const _VERIFY_CANCEL = 2; // payment unsuccessful
|
57 |
-
const _VERIFY_CORRUPT = 3; // wrong or corrupt response
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Calculates reference number for bank payment
|
61 |
-
*
|
62 |
-
* @param string $refStr Input reference
|
63 |
-
*
|
64 |
-
* @return string reference number
|
65 |
-
*/
|
66 |
-
public function calcRef($refStr)
|
67 |
-
{
|
68 |
-
|
69 |
-
$n = (string) $refStr;
|
70 |
-
$w = array(7, 3, 1);
|
71 |
-
|
72 |
-
$sl = $st = strlen($n);
|
73 |
-
$total = 0;
|
74 |
-
while ( $sl > 0 and substr($n, --$sl, 1) >= '0' ) {
|
75 |
-
$total += substr($n, ($st - 1) - $sl, 1) * $w[($sl % 3)];
|
76 |
-
}
|
77 |
-
$c = ((ceil(($total / 10)) * 10) - $total);
|
78 |
-
return $n . $c;
|
79 |
-
}
|
80 |
-
|
81 |
-
}
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Abstract.php
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Abstract.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Abstract model for Estpay payment methods
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
abstract class Eepohs_Estpay_Model_Abstract extends Mage_Payment_Model_Method_Abstract
|
55 |
-
{
|
56 |
-
protected $_canAuthorize = true;
|
57 |
-
protected $_isGateway = true;
|
58 |
-
protected $_canUseCheckout = true;
|
59 |
-
protected $logFile = 'estpay.log';
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Order Id to create invoice for
|
63 |
-
* @var string
|
64 |
-
*/
|
65 |
-
protected $_orderId;
|
66 |
-
|
67 |
-
public function getOrderPlaceRedirectUrl()
|
68 |
-
{
|
69 |
-
return Mage::getUrl("estpay/" . $this->_gateway . "/redirect");
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* This method creates invoice for current order
|
74 |
-
*/
|
75 |
-
public function createInvoice()
|
76 |
-
{
|
77 |
-
$order = Mage::getModel('sales/order')
|
78 |
-
->loadByIncrementId($this->getOrderId());
|
79 |
-
|
80 |
-
if ($order->canInvoice()) {
|
81 |
-
$invoice = $order->prepareInvoice();
|
82 |
-
$invoice->pay()->register();
|
83 |
-
$invoice->save();
|
84 |
-
|
85 |
-
$order->setStatus(Mage_Sales_Model_Order::STATE_PROCESSING);
|
86 |
-
$order->save();
|
87 |
-
|
88 |
-
/* Send invoice */
|
89 |
-
if (Mage::getStoreConfig('payment/' . $this->_code . '/invoice_confirmation') == '1') {
|
90 |
-
$invoice->sendEmail(true, '');
|
91 |
-
}
|
92 |
-
|
93 |
-
Mage::register('current_invoice', $invoice);
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Abstract method to be overloaded by implementing classes.
|
99 |
-
* This is used to verify response from bank
|
100 |
-
*
|
101 |
-
* @return int
|
102 |
-
*/
|
103 |
-
public abstract function verify(array $params = array());
|
104 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Danske.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Danske.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Danske payment model for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Model_Danske extends Eepohs_Estpay_Model_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_danske';
|
57 |
-
protected $_formBlockType = 'estpay/danske';
|
58 |
-
protected $_gateway = 'danske';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Estcard.php
DELETED
@@ -1,127 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Estcard.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Estpay Estcard payment method model
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Model_Estcard extends Eepohs_Estpay_Model_Abstract
|
55 |
-
{
|
56 |
-
protected $_code = 'eepohs_estcard';
|
57 |
-
protected $_formBlockType = 'estpay/estcard';
|
58 |
-
protected $_gateway = 'estcard';
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Verifies response sent by the bank
|
62 |
-
*
|
63 |
-
* @param array $params Parameters by bank
|
64 |
-
*
|
65 |
-
* @return int
|
66 |
-
*/
|
67 |
-
public function verify(array $params = array())
|
68 |
-
{
|
69 |
-
|
70 |
-
$merchantId = Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
|
71 |
-
|
72 |
-
if (!isset($params['id']) || $params['id'] != $merchantId) {
|
73 |
-
Mage::log(sprintf(
|
74 |
-
'%s (%s)@%s: Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__,
|
75 |
-
$_SERVER['REMOTE_ADDR'], $params['id'], $merchantId
|
76 |
-
), null, $this->logFile
|
77 |
-
);
|
78 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
79 |
-
}
|
80 |
-
|
81 |
-
$data =
|
82 |
-
sprintf("%03s", $params['ver'])
|
83 |
-
. sprintf("%-10s", $params['id'])
|
84 |
-
. sprintf("%012s", $params['ecuno'])
|
85 |
-
. sprintf("%06s", $params['receipt_no'])
|
86 |
-
. sprintf("%012s", $params['eamount'])
|
87 |
-
. sprintf("%3s", $params['cur'])
|
88 |
-
. $params['respcode']
|
89 |
-
. $params['datetime']
|
90 |
-
. sprintf("%-40s", urldecode($params['msgdata']))
|
91 |
-
. sprintf("%-40s", urldecode($params['actiontext']));
|
92 |
-
$mac = pack('H*', $params['mac']);
|
93 |
-
|
94 |
-
$key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
|
95 |
-
$result = openssl_verify($data, $mac, $key);
|
96 |
-
openssl_free_key($key);
|
97 |
-
|
98 |
-
switch ($result) {
|
99 |
-
case 1: // ssl verify successful
|
100 |
-
if ($params['respcode'] == '000')
|
101 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_SUCCESS;
|
102 |
-
else
|
103 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CANCEL;
|
104 |
-
|
105 |
-
case 0: // ssl verify failed
|
106 |
-
Mage::log(sprintf(
|
107 |
-
'%s (%s)@%s: Verification of signature failed for estcard', __METHOD__, __LINE__,
|
108 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID']
|
109 |
-
), null, $this->logFile);
|
110 |
-
|
111 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
112 |
-
|
113 |
-
case -1: // ssl verify error
|
114 |
-
default:
|
115 |
-
$error = '';
|
116 |
-
while ($msg = openssl_error_string())
|
117 |
-
$error .= $msg . "\n";
|
118 |
-
Mage::log(sprintf(
|
119 |
-
'%s (%s)@%s: Verification of signature error for %s : %s', __METHOD__, __LINE__,
|
120 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID'], $error
|
121 |
-
), null, $this->logFile);
|
122 |
-
|
123 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
124 |
-
}
|
125 |
-
}
|
126 |
-
|
127 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/IPizza.php
DELETED
@@ -1,184 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* IPizza.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Base model for all Estpay payment methods that use iPizza standard
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Model_IPizza extends Eepohs_Estpay_Model_Abstract
|
55 |
-
{
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Verifies response sent by bank by checking validity
|
59 |
-
* of banks signature using corresponding public key to bank's private key
|
60 |
-
*
|
61 |
-
* @param array $params Response sent by a bank
|
62 |
-
*
|
63 |
-
* @return int
|
64 |
-
*/
|
65 |
-
public function verify(array $params = array())
|
66 |
-
{
|
67 |
-
if (!isset($params['VK_SERVICE']))
|
68 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
69 |
-
|
70 |
-
$test_success = false;
|
71 |
-
$data = null;
|
72 |
-
|
73 |
-
switch ($params['VK_SERVICE']) {
|
74 |
-
case '1101': // success
|
75 |
-
$test_success = true;
|
76 |
-
break;
|
77 |
-
case '1901': // fail
|
78 |
-
break;
|
79 |
-
default:
|
80 |
-
Mage::log(sprintf('%s (%s)@%s: IPizza return service is not 1101/1901: %s', __METHOD__, __LINE__,
|
81 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_SERVICE']), null, $this->logFile);
|
82 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
83 |
-
}
|
84 |
-
|
85 |
-
$vkSndId = Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id');
|
86 |
-
|
87 |
-
if (!isset($params['VK_REC_ID']) || $params['VK_REC_ID'] != $vkSndId) {
|
88 |
-
Mage::log(sprintf('%s (%s)@%s: Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__,
|
89 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_REC_ID'], $vkSndId
|
90 |
-
), null, $this->logFile
|
91 |
-
);
|
92 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
93 |
-
}
|
94 |
-
|
95 |
-
if ($test_success) {
|
96 |
-
$data = sprintf('%03d%s', strlen($params['VK_SERVICE']), $params['VK_SERVICE'])
|
97 |
-
. sprintf('%03d%s', strlen($params['VK_VERSION']), $params['VK_VERSION'])
|
98 |
-
. sprintf('%03d%s', strlen($params['VK_SND_ID']), $params['VK_SND_ID'])
|
99 |
-
. sprintf('%03d%s', strlen($params['VK_REC_ID']), $params['VK_REC_ID'])
|
100 |
-
. sprintf('%03d%s', strlen($params['VK_STAMP']), $params['VK_STAMP'])
|
101 |
-
. sprintf('%03d%s', strlen($params['VK_T_NO']), $params['VK_T_NO'])
|
102 |
-
. sprintf('%03d%s', strlen($params['VK_AMOUNT']), $params['VK_AMOUNT'])
|
103 |
-
. sprintf('%03d%s', strlen($params['VK_CURR']), $params['VK_CURR'])
|
104 |
-
. sprintf('%03d%s', strlen($params['VK_REC_ACC']), $params['VK_REC_ACC'])
|
105 |
-
. sprintf('%03d%s', strlen($params['VK_REC_NAME']), $params['VK_REC_NAME'])
|
106 |
-
. sprintf('%03d%s', strlen($params['VK_SND_ACC']), $params['VK_SND_ACC'])
|
107 |
-
. sprintf('%03d%s', strlen($params['VK_SND_NAME']), $params['VK_SND_NAME'])
|
108 |
-
. sprintf('%03d%s', strlen($params['VK_REF']), $params['VK_REF'])
|
109 |
-
. sprintf('%03d%s', strlen($params['VK_MSG']), $params['VK_MSG'])
|
110 |
-
. sprintf('%03d%s', strlen($params['VK_T_DATE']), $params['VK_T_DATE']);
|
111 |
-
}
|
112 |
-
else {
|
113 |
-
$data = sprintf('%03d%s', strlen($params['VK_SERVICE']), $params['VK_SERVICE'])
|
114 |
-
. sprintf('%03d%s', strlen($params['VK_VERSION']), $params['VK_VERSION'])
|
115 |
-
. sprintf('%03d%s', strlen($params['VK_SND_ID']), $params['VK_SND_ID'])
|
116 |
-
. sprintf('%03d%s', strlen($params['VK_REC_ID']), $params['VK_REC_ID'])
|
117 |
-
. sprintf('%03d%s', strlen($params['VK_STAMP']), $params['VK_STAMP'])
|
118 |
-
. sprintf('%03d%s', strlen($params['VK_REF']), $params['VK_REF'])
|
119 |
-
. sprintf('%03d%s', strlen($params['VK_MSG']), $params['VK_MSG']);
|
120 |
-
}
|
121 |
-
|
122 |
-
|
123 |
-
$key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
|
124 |
-
$result = openssl_verify($data, base64_decode($params['VK_MAC']), $key);
|
125 |
-
openssl_free_key($key);
|
126 |
-
|
127 |
-
switch ($result) {
|
128 |
-
case 1: // ssl verify successful
|
129 |
-
if ($test_success)
|
130 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_SUCCESS;
|
131 |
-
else
|
132 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CANCEL;
|
133 |
-
|
134 |
-
case 0: // ssl verify failed
|
135 |
-
Mage::log(sprintf(
|
136 |
-
'%s (%s)@%s: Verification of signature failed for %s', __METHOD__, __LINE__,
|
137 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID']
|
138 |
-
), null, $this->logFile);
|
139 |
-
|
140 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
141 |
-
|
142 |
-
case -1: // ssl verify error
|
143 |
-
default:
|
144 |
-
$error = '';
|
145 |
-
while ($msg = openssl_error_string())
|
146 |
-
$error .= $msg . "\n";
|
147 |
-
Mage::log(sprintf(
|
148 |
-
'%s (%s)@%s: Verification of signature error for %s : %s', __METHOD__, __LINE__,
|
149 |
-
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID'], $error
|
150 |
-
), null, $this->logFile);
|
151 |
-
|
152 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
153 |
-
}
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Checks if private and public keys exist
|
158 |
-
* If they don't then method is not enabled
|
159 |
-
*
|
160 |
-
* @return Eepohs_Estpay_Model_Abstract
|
161 |
-
*/
|
162 |
-
public function validate()
|
163 |
-
{
|
164 |
-
$key = openssl_pkey_get_public(
|
165 |
-
Mage::getStoreConfig(
|
166 |
-
'payment/' . $this->_code . '/bank_certificate'
|
167 |
-
)
|
168 |
-
);
|
169 |
-
if ($key === false) {
|
170 |
-
Mage::log(
|
171 |
-
sprintf(
|
172 |
-
'%s (%s): Public key not found for %s', __METHOD__, __LINE__, $this->_code
|
173 |
-
), null, $this->logFile
|
174 |
-
);
|
175 |
-
Mage::throwException(
|
176 |
-
$this->_getHelper()->__(
|
177 |
-
'Public key for ' . $this->_code . ' not set'
|
178 |
-
)
|
179 |
-
);
|
180 |
-
}
|
181 |
-
return parent::validate();
|
182 |
-
}
|
183 |
-
|
184 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Krediidipank.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Krediidipank.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Krediidipank payment model for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Model_Krediidipank extends Eepohs_Estpay_Model_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_krediidipank';
|
57 |
-
protected $_formBlockType = 'estpay/krediidipank';
|
58 |
-
protected $_gateway = 'krediidipank';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Lhv.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Lhv.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* LHV payment model for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Model_Lhv extends Eepohs_Estpay_Model_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_lhv';
|
57 |
-
protected $_formBlockType = 'estpay/lhv';
|
58 |
-
protected $_gateway = 'lhv';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Nordea.php
DELETED
@@ -1,107 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Nordea.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Nordea Bank payment model for Estpay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_Model_Nordea extends Eepohs_Estpay_Model_Abstract
|
55 |
-
{
|
56 |
-
protected $_code = 'eepohs_nordea';
|
57 |
-
protected $_formBlockType = 'estpay/nordea';
|
58 |
-
protected $_gateway = 'nordea';
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Verifies response from Nordea
|
62 |
-
*
|
63 |
-
* @param array $params Response sent by bank and to be verified
|
64 |
-
*
|
65 |
-
* @return int
|
66 |
-
*/
|
67 |
-
public function verify(array $params = array())
|
68 |
-
{
|
69 |
-
$test_success = false;
|
70 |
-
|
71 |
-
// Not present if cancelled or rejected
|
72 |
-
if (isset($params['SOLOPMT_RETURN_PAID']))
|
73 |
-
$test_success = true;
|
74 |
-
|
75 |
-
$data =
|
76 |
-
$params['SOLOPMT_RETURN_VERSION'] . '&' .
|
77 |
-
$params['SOLOPMT_RETURN_STAMP'] . '&' .
|
78 |
-
$params['SOLOPMT_RETURN_REF'] . '&' .
|
79 |
-
($test_success ? $params['SOLOPMT_RETURN_PAID'] . '&' : '') .
|
80 |
-
Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
|
81 |
-
|
82 |
-
// Invalid MAC code
|
83 |
-
if ($params['SOLOPMT_RETURN_MAC'] != strtoupper(md5($data))) {
|
84 |
-
Mage::log(sprintf("%s (%s)@%s: (Nordea) Invalid MAC code", __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']));
|
85 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
86 |
-
}
|
87 |
-
|
88 |
-
$session = Mage::getSingleton('checkout/session');
|
89 |
-
|
90 |
-
$helper = Mage::helper('estpay');
|
91 |
-
// Reference number doesn't match.
|
92 |
-
if ($helper->calcRef($session->getLastRealOrderId()) != $params['SOLOPMT_RETURN_REF']) {
|
93 |
-
Mage::log(
|
94 |
-
sprintf("%s (%s)@%s: (Nordea): Reference number doesn't match (potential tampering attempt).",
|
95 |
-
__METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']
|
96 |
-
)
|
97 |
-
);
|
98 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CORRUPT;
|
99 |
-
}
|
100 |
-
|
101 |
-
if ($test_success)
|
102 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_SUCCESS;
|
103 |
-
else
|
104 |
-
return Eepohs_Estpay_Helper_Data::_VERIFY_CANCEL;
|
105 |
-
}
|
106 |
-
|
107 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Seb.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Seb.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* SEB payment model for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Model_Seb extends Eepohs_Estpay_Model_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_seb';
|
57 |
-
protected $_formBlockType = 'estpay/seb';
|
58 |
-
protected $_gateway = 'seb';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/Model/Swedbank.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Swedbank.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Swedbank payment model for Estpay
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_Model_Swedbank extends Eepohs_Estpay_Model_IPizza
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_code = 'eepohs_swedbank';
|
57 |
-
protected $_formBlockType = 'estpay/swedbank';
|
58 |
-
protected $_gateway = 'swedbank';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/DanskeController.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* DanskeController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for Danske of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_DanskeController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/danske';
|
57 |
-
protected $_code = 'eepohs_danske';
|
58 |
-
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/EstcardController.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* EstcardController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for Estcard of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_EstcardController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/estcard';
|
57 |
-
protected $_code = 'eepohs_estcard';
|
58 |
-
|
59 |
-
}
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/KrediidipankController.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* KrediidipankController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for Krediidipank of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_KrediidipankController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/krediidipank';
|
57 |
-
protected $_code = 'eepohs_krediidipank';
|
58 |
-
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/LhvController.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* LhvController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for LHV of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_LhvController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/lhv';
|
57 |
-
protected $_code = 'eepohs_lhv';
|
58 |
-
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/NordeaController.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NordeaController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for Nordea of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_NordeaController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/nordea';
|
57 |
-
protected $_code = 'eepohs_nordea';
|
58 |
-
|
59 |
-
}
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/SebController.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* SebController.php
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Controller for SEB of Estpay payment method
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
class Eepohs_Estpay_SebController extends Eepohs_Estpay_Controller_Abstract
|
54 |
-
{
|
55 |
-
|
56 |
-
protected $_model = 'estpay/seb';
|
57 |
-
protected $_code = 'eepohs_seb';
|
58 |
-
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/controllers/SwedbankController.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* SwedbankController.php
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Controller for Swedbank of Estpay payment method
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
class Eepohs_Estpay_SwedbankController extends Eepohs_Estpay_Controller_Abstract
|
55 |
-
{
|
56 |
-
|
57 |
-
protected $_model = 'estpay/swedbank';
|
58 |
-
protected $_code = 'eepohs_swedbank';
|
59 |
-
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Eepohs/Estpay/etc/system.xml
DELETED
@@ -1,783 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* system.xml
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* System config file for EstPay
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
-->
|
55 |
-
<config>
|
56 |
-
<sections>
|
57 |
-
<payment>
|
58 |
-
<groups>
|
59 |
-
<eepohs_seb translate="label" module="estpay">
|
60 |
-
<label>SEB</label>
|
61 |
-
<sort_order>100</sort_order>
|
62 |
-
<show_in_default>1</show_in_default>
|
63 |
-
<show_in_website>1</show_in_website>
|
64 |
-
<show_in_store>1</show_in_store>
|
65 |
-
<fields>
|
66 |
-
<active translate="label">
|
67 |
-
<label>Enabled</label>
|
68 |
-
<frontend_type>select</frontend_type>
|
69 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
-
<sort_order>1</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 |
-
</active>
|
75 |
-
<title translate="label">
|
76 |
-
<label>Title</label>
|
77 |
-
<frontend_type>text</frontend_type>
|
78 |
-
<sort_order>2</sort_order>
|
79 |
-
<show_in_default>1</show_in_default>
|
80 |
-
<show_in_website>1</show_in_website>
|
81 |
-
<show_in_store>1</show_in_store>
|
82 |
-
</title>
|
83 |
-
<order_status translate="label">
|
84 |
-
<label>New Order Status</label>
|
85 |
-
<frontend_type>select</frontend_type>
|
86 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
87 |
-
<sort_order>3</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 |
-
</order_status>
|
92 |
-
<gateway_url translate="label">
|
93 |
-
<label>Gateway URL</label>
|
94 |
-
<frontend_type>text</frontend_type>
|
95 |
-
<sort_order>4</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 |
-
</gateway_url>
|
100 |
-
<vk_snd_id translate="label">
|
101 |
-
<label>Merchant ID</label>
|
102 |
-
<frontend_type>text</frontend_type>
|
103 |
-
<sort_order>5</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 |
-
</vk_snd_id>
|
108 |
-
<private_key translate="label">
|
109 |
-
<label>Private Key</label>
|
110 |
-
<frontend_type>textarea</frontend_type>
|
111 |
-
<sort_order>6</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 |
-
</private_key>
|
116 |
-
<bank_certificate translate="label">
|
117 |
-
<label>Bank Certificate</label>
|
118 |
-
<frontend_type>textarea</frontend_type>
|
119 |
-
<sort_order>7</sort_order>
|
120 |
-
<show_in_default>1</show_in_default>
|
121 |
-
<show_in_website>1</show_in_website>
|
122 |
-
<show_in_store>1</show_in_store>
|
123 |
-
</bank_certificate>
|
124 |
-
<order_confirmation translate="label">
|
125 |
-
<label>Send Order Confirmation</label>
|
126 |
-
<frontend_type>select</frontend_type>
|
127 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
128 |
-
<sort_order>8</sort_order>
|
129 |
-
<show_in_default>1</show_in_default>
|
130 |
-
<show_in_website>1</show_in_website>
|
131 |
-
<show_in_store>1</show_in_store>
|
132 |
-
</order_confirmation>
|
133 |
-
<invoice_confirmation translate="label">
|
134 |
-
<label>Send Invoice</label>
|
135 |
-
<frontend_type>select</frontend_type>
|
136 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
137 |
-
<sort_order>9</sort_order>
|
138 |
-
<show_in_default>1</show_in_default>
|
139 |
-
<show_in_website>1</show_in_website>
|
140 |
-
<show_in_store>1</show_in_store>
|
141 |
-
</invoice_confirmation>
|
142 |
-
<quick_redirect translate="label">
|
143 |
-
<label>Quick Redirect</label>
|
144 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
145 |
-
</description>
|
146 |
-
<frontend_type>select</frontend_type>
|
147 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
148 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
153 |
-
<sort_order translate="label">
|
154 |
-
<label>Sort order</label>
|
155 |
-
<frontend_type>text</frontend_type>
|
156 |
-
<sort_order>11</sort_order>
|
157 |
-
<show_in_default>1</show_in_default>
|
158 |
-
<show_in_website>1</show_in_website>
|
159 |
-
<show_in_store>1</show_in_store>
|
160 |
-
</sort_order>
|
161 |
-
|
162 |
-
</fields>
|
163 |
-
</eepohs_seb>
|
164 |
-
<eepohs_nordea translate="label" module="estpay">
|
165 |
-
<label>Nordea</label>
|
166 |
-
<sort_order>110</sort_order>
|
167 |
-
<show_in_default>1</show_in_default>
|
168 |
-
<show_in_website>1</show_in_website>
|
169 |
-
<show_in_store>1</show_in_store>
|
170 |
-
<fields>
|
171 |
-
<active translate="label">
|
172 |
-
<label>Enabled</label>
|
173 |
-
<frontend_type>select</frontend_type>
|
174 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
175 |
-
<sort_order>1</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 |
-
</active>
|
180 |
-
<title translate="label">
|
181 |
-
<label>Title</label>
|
182 |
-
<frontend_type>text</frontend_type>
|
183 |
-
<sort_order>2</sort_order>
|
184 |
-
<show_in_default>1</show_in_default>
|
185 |
-
<show_in_website>1</show_in_website>
|
186 |
-
<show_in_store>1</show_in_store>
|
187 |
-
</title>
|
188 |
-
<order_status translate="label">
|
189 |
-
<label>New Order Status</label>
|
190 |
-
<frontend_type>select</frontend_type>
|
191 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
192 |
-
<sort_order>3</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 |
-
</order_status>
|
197 |
-
<gateway_url translate="label">
|
198 |
-
<label>Gateway URL</label>
|
199 |
-
<frontend_type>text</frontend_type>
|
200 |
-
<sort_order>4</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 |
-
</gateway_url>
|
205 |
-
<service_provider translate="label">
|
206 |
-
<label>Service Provider's ID</label>
|
207 |
-
<frontend_type>text</frontend_type>
|
208 |
-
<sort_order>5</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 |
-
</service_provider>
|
213 |
-
<mac_key translate="label">
|
214 |
-
<label>MAC Key</label>
|
215 |
-
<frontend_type>text</frontend_type>
|
216 |
-
<sort_order>6</sort_order>
|
217 |
-
<show_in_default>1</show_in_default>
|
218 |
-
<show_in_website>1</show_in_website>
|
219 |
-
<show_in_store>1</show_in_store>
|
220 |
-
</mac_key>
|
221 |
-
<order_confirmation translate="label">
|
222 |
-
<label>Send Order Confirmation</label>
|
223 |
-
<frontend_type>select</frontend_type>
|
224 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
225 |
-
<sort_order>7</sort_order>
|
226 |
-
<show_in_default>1</show_in_default>
|
227 |
-
<show_in_website>1</show_in_website>
|
228 |
-
<show_in_store>1</show_in_store>
|
229 |
-
</order_confirmation>
|
230 |
-
<invoice_confirmation translate="label">
|
231 |
-
<label>Send Invoice</label>
|
232 |
-
<frontend_type>select</frontend_type>
|
233 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
234 |
-
<sort_order>8</sort_order>
|
235 |
-
<show_in_default>1</show_in_default>
|
236 |
-
<show_in_website>1</show_in_website>
|
237 |
-
<show_in_store>1</show_in_store>
|
238 |
-
</invoice_confirmation>
|
239 |
-
<quick_redirect translate="label">
|
240 |
-
<label>Quick Redirect</label>
|
241 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
242 |
-
</description>
|
243 |
-
<frontend_type>select</frontend_type>
|
244 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
245 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
250 |
-
<sort_order translate="label">
|
251 |
-
<label>Sort order</label>
|
252 |
-
<frontend_type>text</frontend_type>
|
253 |
-
<sort_order>11</sort_order>
|
254 |
-
<show_in_default>1</show_in_default>
|
255 |
-
<show_in_website>1</show_in_website>
|
256 |
-
<show_in_store>1</show_in_store>
|
257 |
-
</sort_order>
|
258 |
-
</fields>
|
259 |
-
</eepohs_nordea>
|
260 |
-
<eepohs_swedbank translate="label" module="estpay">
|
261 |
-
<label>Swedbank</label>
|
262 |
-
<sort_order>120</sort_order>
|
263 |
-
<show_in_default>1</show_in_default>
|
264 |
-
<show_in_website>1</show_in_website>
|
265 |
-
<show_in_store>1</show_in_store>
|
266 |
-
<fields>
|
267 |
-
<active translate="label">
|
268 |
-
<label>Enabled</label>
|
269 |
-
<frontend_type>select</frontend_type>
|
270 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
271 |
-
<sort_order>1</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 |
-
</active>
|
276 |
-
<title translate="label">
|
277 |
-
<label>Title</label>
|
278 |
-
<frontend_type>text</frontend_type>
|
279 |
-
<sort_order>2</sort_order>
|
280 |
-
<show_in_default>1</show_in_default>
|
281 |
-
<show_in_website>1</show_in_website>
|
282 |
-
<show_in_store>1</show_in_store>
|
283 |
-
</title>
|
284 |
-
<order_status translate="label">
|
285 |
-
<label>New Order Status</label>
|
286 |
-
<frontend_type>select</frontend_type>
|
287 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
288 |
-
<sort_order>3</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 |
-
</order_status>
|
293 |
-
<gateway_url translate="label">
|
294 |
-
<label>Gateway URL</label>
|
295 |
-
<frontend_type>text</frontend_type>
|
296 |
-
<sort_order>4</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 |
-
</gateway_url>
|
301 |
-
<vk_snd_id translate="label">
|
302 |
-
<label>Merchant ID</label>
|
303 |
-
<frontend_type>text</frontend_type>
|
304 |
-
<sort_order>5</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 |
-
</vk_snd_id>
|
309 |
-
<private_key translate="label">
|
310 |
-
<label>Private Key</label>
|
311 |
-
<frontend_type>textarea</frontend_type>
|
312 |
-
<sort_order>6</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 |
-
</private_key>
|
317 |
-
<bank_certificate translate="label">
|
318 |
-
<label>Bank Certificate</label>
|
319 |
-
<frontend_type>textarea</frontend_type>
|
320 |
-
<sort_order>7</sort_order>
|
321 |
-
<show_in_default>1</show_in_default>
|
322 |
-
<show_in_website>1</show_in_website>
|
323 |
-
<show_in_store>1</show_in_store>
|
324 |
-
</bank_certificate>
|
325 |
-
<order_confirmation translate="label">
|
326 |
-
<label>Send Order Confirmation</label>
|
327 |
-
<frontend_type>select</frontend_type>
|
328 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
329 |
-
<sort_order>8</sort_order>
|
330 |
-
<show_in_default>1</show_in_default>
|
331 |
-
<show_in_website>1</show_in_website>
|
332 |
-
<show_in_store>1</show_in_store>
|
333 |
-
</order_confirmation>
|
334 |
-
<invoice_confirmation translate="label">
|
335 |
-
<label>Send Invoice</label>
|
336 |
-
<frontend_type>select</frontend_type>
|
337 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
338 |
-
<sort_order>9</sort_order>
|
339 |
-
<show_in_default>1</show_in_default>
|
340 |
-
<show_in_website>1</show_in_website>
|
341 |
-
<show_in_store>1</show_in_store>
|
342 |
-
</invoice_confirmation>
|
343 |
-
<quick_redirect translate="label">
|
344 |
-
<label>Quick Redirect</label>
|
345 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
346 |
-
</description>
|
347 |
-
<frontend_type>select</frontend_type>
|
348 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
349 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
354 |
-
<sort_order translate="label">
|
355 |
-
<label>Sort order</label>
|
356 |
-
<frontend_type>text</frontend_type>
|
357 |
-
<sort_order>11</sort_order>
|
358 |
-
<show_in_default>1</show_in_default>
|
359 |
-
<show_in_website>1</show_in_website>
|
360 |
-
<show_in_store>1</show_in_store>
|
361 |
-
</sort_order>
|
362 |
-
</fields>
|
363 |
-
</eepohs_swedbank>
|
364 |
-
<eepohs_danske translate="label" module="estpay">
|
365 |
-
<label>Danske Bank</label>
|
366 |
-
<sort_order>130</sort_order>
|
367 |
-
<show_in_default>1</show_in_default>
|
368 |
-
<show_in_website>1</show_in_website>
|
369 |
-
<show_in_store>1</show_in_store>
|
370 |
-
<fields>
|
371 |
-
<active translate="label">
|
372 |
-
<label>Enabled</label>
|
373 |
-
<frontend_type>select</frontend_type>
|
374 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
375 |
-
<sort_order>1</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 |
-
</active>
|
380 |
-
<title translate="label">
|
381 |
-
<label>Title</label>
|
382 |
-
<frontend_type>text</frontend_type>
|
383 |
-
<sort_order>2</sort_order>
|
384 |
-
<show_in_default>1</show_in_default>
|
385 |
-
<show_in_website>1</show_in_website>
|
386 |
-
<show_in_store>1</show_in_store>
|
387 |
-
</title>
|
388 |
-
<order_status translate="label">
|
389 |
-
<label>New Order Status</label>
|
390 |
-
<frontend_type>select</frontend_type>
|
391 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
392 |
-
<sort_order>3</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 |
-
</order_status>
|
397 |
-
<gateway_url translate="label">
|
398 |
-
<label>Gateway URL</label>
|
399 |
-
<frontend_type>text</frontend_type>
|
400 |
-
<sort_order>4</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 |
-
</gateway_url>
|
405 |
-
<vk_snd_id translate="label">
|
406 |
-
<label>Merchant ID</label>
|
407 |
-
<frontend_type>text</frontend_type>
|
408 |
-
<sort_order>5</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 |
-
</vk_snd_id>
|
413 |
-
<private_key translate="label">
|
414 |
-
<label>Private Key</label>
|
415 |
-
<frontend_type>textarea</frontend_type>
|
416 |
-
<sort_order>6</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 |
-
</private_key>
|
421 |
-
<bank_certificate translate="label">
|
422 |
-
<label>Bank Certificate</label>
|
423 |
-
<frontend_type>textarea</frontend_type>
|
424 |
-
<sort_order>7</sort_order>
|
425 |
-
<show_in_default>1</show_in_default>
|
426 |
-
<show_in_website>1</show_in_website>
|
427 |
-
<show_in_store>1</show_in_store>
|
428 |
-
</bank_certificate>
|
429 |
-
<order_confirmation translate="label">
|
430 |
-
<label>Send Order Confirmation</label>
|
431 |
-
<frontend_type>select</frontend_type>
|
432 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
433 |
-
<sort_order>8</sort_order>
|
434 |
-
<show_in_default>1</show_in_default>
|
435 |
-
<show_in_website>1</show_in_website>
|
436 |
-
<show_in_store>1</show_in_store>
|
437 |
-
</order_confirmation>
|
438 |
-
<invoice_confirmation translate="label">
|
439 |
-
<label>Send Invoice</label>
|
440 |
-
<frontend_type>select</frontend_type>
|
441 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
442 |
-
<sort_order>9</sort_order>
|
443 |
-
<show_in_default>1</show_in_default>
|
444 |
-
<show_in_website>1</show_in_website>
|
445 |
-
<show_in_store>1</show_in_store>
|
446 |
-
</invoice_confirmation>
|
447 |
-
<quick_redirect translate="label">
|
448 |
-
<label>Quick Redirect</label>
|
449 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
450 |
-
</description>
|
451 |
-
<frontend_type>select</frontend_type>
|
452 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
453 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
458 |
-
<sort_order translate="label">
|
459 |
-
<label>Sort order</label>
|
460 |
-
<frontend_type>text</frontend_type>
|
461 |
-
<sort_order>11</sort_order>
|
462 |
-
<show_in_default>1</show_in_default>
|
463 |
-
<show_in_website>1</show_in_website>
|
464 |
-
<show_in_store>1</show_in_store>
|
465 |
-
</sort_order>
|
466 |
-
</fields>
|
467 |
-
</eepohs_danske>
|
468 |
-
<eepohs_krediidipank translate="label" module="estpay">
|
469 |
-
<label>Krediidipank</label>
|
470 |
-
<sort_order>140</sort_order>
|
471 |
-
<show_in_default>1</show_in_default>
|
472 |
-
<show_in_website>1</show_in_website>
|
473 |
-
<show_in_store>1</show_in_store>
|
474 |
-
<fields>
|
475 |
-
<active translate="label">
|
476 |
-
<label>Enabled</label>
|
477 |
-
<frontend_type>select</frontend_type>
|
478 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
479 |
-
<sort_order>1</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 |
-
</active>
|
484 |
-
<title translate="label">
|
485 |
-
<label>Title</label>
|
486 |
-
<frontend_type>text</frontend_type>
|
487 |
-
<sort_order>2</sort_order>
|
488 |
-
<show_in_default>1</show_in_default>
|
489 |
-
<show_in_website>1</show_in_website>
|
490 |
-
<show_in_store>1</show_in_store>
|
491 |
-
</title>
|
492 |
-
<order_status translate="label">
|
493 |
-
<label>New Order Status</label>
|
494 |
-
<frontend_type>select</frontend_type>
|
495 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
496 |
-
<sort_order>3</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 |
-
</order_status>
|
501 |
-
<gateway_url translate="label">
|
502 |
-
<label>Gateway URL</label>
|
503 |
-
<frontend_type>text</frontend_type>
|
504 |
-
<sort_order>4</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 |
-
</gateway_url>
|
509 |
-
<vk_snd_id translate="label">
|
510 |
-
<label>Merchant ID</label>
|
511 |
-
<frontend_type>text</frontend_type>
|
512 |
-
<sort_order>5</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 |
-
</vk_snd_id>
|
517 |
-
<private_key translate="label">
|
518 |
-
<label>Private Key</label>
|
519 |
-
<frontend_type>textarea</frontend_type>
|
520 |
-
<sort_order>6</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 |
-
</private_key>
|
525 |
-
<bank_certificate translate="label">
|
526 |
-
<label>Bank Certificate</label>
|
527 |
-
<frontend_type>textarea</frontend_type>
|
528 |
-
<sort_order>7</sort_order>
|
529 |
-
<show_in_default>1</show_in_default>
|
530 |
-
<show_in_website>1</show_in_website>
|
531 |
-
<show_in_store>1</show_in_store>
|
532 |
-
</bank_certificate>
|
533 |
-
<order_confirmation translate="label">
|
534 |
-
<label>Send Order Confirmation</label>
|
535 |
-
<frontend_type>select</frontend_type>
|
536 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
537 |
-
<sort_order>8</sort_order>
|
538 |
-
<show_in_default>1</show_in_default>
|
539 |
-
<show_in_website>1</show_in_website>
|
540 |
-
<show_in_store>1</show_in_store>
|
541 |
-
</order_confirmation>
|
542 |
-
<invoice_confirmation translate="label">
|
543 |
-
<label>Send Invoice</label>
|
544 |
-
<frontend_type>select</frontend_type>
|
545 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
546 |
-
<sort_order>9</sort_order>
|
547 |
-
<show_in_default>1</show_in_default>
|
548 |
-
<show_in_website>1</show_in_website>
|
549 |
-
<show_in_store>1</show_in_store>
|
550 |
-
</invoice_confirmation>
|
551 |
-
<quick_redirect translate="label">
|
552 |
-
<label>Quick Redirect</label>
|
553 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
554 |
-
</description>
|
555 |
-
<frontend_type>select</frontend_type>
|
556 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
557 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
562 |
-
<sort_order translate="label">
|
563 |
-
<label>Sort order</label>
|
564 |
-
<frontend_type>text</frontend_type>
|
565 |
-
<sort_order>11</sort_order>
|
566 |
-
<show_in_default>1</show_in_default>
|
567 |
-
<show_in_website>1</show_in_website>
|
568 |
-
<show_in_store>1</show_in_store>
|
569 |
-
</sort_order>
|
570 |
-
</fields>
|
571 |
-
</eepohs_krediidipank>
|
572 |
-
<eepohs_estcard translate="label" module="estpay">
|
573 |
-
<label>Estcard</label>
|
574 |
-
<sort_order>150</sort_order>
|
575 |
-
<show_in_default>1</show_in_default>
|
576 |
-
<show_in_website>1</show_in_website>
|
577 |
-
<show_in_store>1</show_in_store>
|
578 |
-
<fields>
|
579 |
-
<active translate="label">
|
580 |
-
<label>Enabled</label>
|
581 |
-
<frontend_type>select</frontend_type>
|
582 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
583 |
-
<sort_order>1</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 |
-
</active>
|
588 |
-
<title translate="label">
|
589 |
-
<label>Title</label>
|
590 |
-
<frontend_type>text</frontend_type>
|
591 |
-
<sort_order>2</sort_order>
|
592 |
-
<show_in_default>1</show_in_default>
|
593 |
-
<show_in_website>1</show_in_website>
|
594 |
-
<show_in_store>1</show_in_store>
|
595 |
-
</title>
|
596 |
-
<order_status translate="label">
|
597 |
-
<label>New Order Status</label>
|
598 |
-
<frontend_type>select</frontend_type>
|
599 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
600 |
-
<sort_order>3</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 |
-
</order_status>
|
605 |
-
<gateway_url translate="label">
|
606 |
-
<label>Gateway URL</label>
|
607 |
-
<frontend_type>text</frontend_type>
|
608 |
-
<sort_order>4</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 |
-
</gateway_url>
|
613 |
-
<merchant_id translate="label">
|
614 |
-
<label>Merchant ID</label>
|
615 |
-
<frontend_type>text</frontend_type>
|
616 |
-
<sort_order>5</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 |
-
</merchant_id>
|
621 |
-
<private_key translate="label">
|
622 |
-
<label>Private Key</label>
|
623 |
-
<frontend_type>textarea</frontend_type>
|
624 |
-
<sort_order>6</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 |
-
</private_key>
|
629 |
-
<bank_certificate translate="label">
|
630 |
-
<label>Bank Certificate</label>
|
631 |
-
<frontend_type>textarea</frontend_type>
|
632 |
-
<sort_order>7</sort_order>
|
633 |
-
<show_in_default>1</show_in_default>
|
634 |
-
<show_in_website>1</show_in_website>
|
635 |
-
<show_in_store>1</show_in_store>
|
636 |
-
</bank_certificate>
|
637 |
-
<order_confirmation translate="label">
|
638 |
-
<label>Send Order Confirmation</label>
|
639 |
-
<frontend_type>select</frontend_type>
|
640 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
641 |
-
<sort_order>8</sort_order>
|
642 |
-
<show_in_default>1</show_in_default>
|
643 |
-
<show_in_website>1</show_in_website>
|
644 |
-
<show_in_store>1</show_in_store>
|
645 |
-
</order_confirmation>
|
646 |
-
<invoice_confirmation translate="label">
|
647 |
-
<label>Send Invoice</label>
|
648 |
-
<frontend_type>select</frontend_type>
|
649 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
650 |
-
<sort_order>9</sort_order>
|
651 |
-
<show_in_default>1</show_in_default>
|
652 |
-
<show_in_website>1</show_in_website>
|
653 |
-
<show_in_store>1</show_in_store>
|
654 |
-
</invoice_confirmation>
|
655 |
-
<quick_redirect translate="label">
|
656 |
-
<label>Quick Redirect</label>
|
657 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
658 |
-
</description>
|
659 |
-
<frontend_type>select</frontend_type>
|
660 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
661 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
666 |
-
<sort_order translate="label">
|
667 |
-
<label>Sort order</label>
|
668 |
-
<frontend_type>text</frontend_type>
|
669 |
-
<sort_order>11</sort_order>
|
670 |
-
<show_in_default>1</show_in_default>
|
671 |
-
<show_in_website>1</show_in_website>
|
672 |
-
<show_in_store>1</show_in_store>
|
673 |
-
</sort_order>
|
674 |
-
</fields>
|
675 |
-
</eepohs_estcard>
|
676 |
-
<eepohs_lhv translate="label" module="estpay">
|
677 |
-
<label>LHV</label>
|
678 |
-
<sort_order>160</sort_order>
|
679 |
-
<show_in_default>1</show_in_default>
|
680 |
-
<show_in_website>1</show_in_website>
|
681 |
-
<show_in_store>1</show_in_store>
|
682 |
-
<fields>
|
683 |
-
<active translate="label">
|
684 |
-
<label>Enabled</label>
|
685 |
-
<frontend_type>select</frontend_type>
|
686 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
687 |
-
<sort_order>1</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 |
-
</active>
|
692 |
-
<title translate="label">
|
693 |
-
<label>Title</label>
|
694 |
-
<frontend_type>text</frontend_type>
|
695 |
-
<sort_order>2</sort_order>
|
696 |
-
<show_in_default>1</show_in_default>
|
697 |
-
<show_in_website>1</show_in_website>
|
698 |
-
<show_in_store>1</show_in_store>
|
699 |
-
</title>
|
700 |
-
<order_status translate="label">
|
701 |
-
<label>New Order Status</label>
|
702 |
-
<frontend_type>select</frontend_type>
|
703 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
704 |
-
<sort_order>3</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 |
-
</order_status>
|
709 |
-
<gateway_url translate="label">
|
710 |
-
<label>Gateway URL</label>
|
711 |
-
<frontend_type>text</frontend_type>
|
712 |
-
<sort_order>4</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 |
-
</gateway_url>
|
717 |
-
<vk_snd_id translate="label">
|
718 |
-
<label>Merchant ID</label>
|
719 |
-
<frontend_type>text</frontend_type>
|
720 |
-
<sort_order>5</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 |
-
</vk_snd_id>
|
725 |
-
<private_key translate="label">
|
726 |
-
<label>Private Key</label>
|
727 |
-
<frontend_type>textarea</frontend_type>
|
728 |
-
<sort_order>6</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 |
-
</private_key>
|
733 |
-
<bank_certificate translate="label">
|
734 |
-
<label>Bank Certificate</label>
|
735 |
-
<frontend_type>textarea</frontend_type>
|
736 |
-
<sort_order>7</sort_order>
|
737 |
-
<show_in_default>1</show_in_default>
|
738 |
-
<show_in_website>1</show_in_website>
|
739 |
-
<show_in_store>1</show_in_store>
|
740 |
-
</bank_certificate>
|
741 |
-
<order_confirmation translate="label">
|
742 |
-
<label>Send Order Confirmation</label>
|
743 |
-
<frontend_type>select</frontend_type>
|
744 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
745 |
-
<sort_order>8</sort_order>
|
746 |
-
<show_in_default>1</show_in_default>
|
747 |
-
<show_in_website>1</show_in_website>
|
748 |
-
<show_in_store>1</show_in_store>
|
749 |
-
</order_confirmation>
|
750 |
-
<invoice_confirmation translate="label">
|
751 |
-
<label>Send Invoice</label>
|
752 |
-
<frontend_type>select</frontend_type>
|
753 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
754 |
-
<sort_order>9</sort_order>
|
755 |
-
<show_in_default>1</show_in_default>
|
756 |
-
<show_in_website>1</show_in_website>
|
757 |
-
<show_in_store>1</show_in_store>
|
758 |
-
</invoice_confirmation>
|
759 |
-
<quick_redirect translate="label">
|
760 |
-
<label>Quick Redirect</label>
|
761 |
-
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
762 |
-
</description>
|
763 |
-
<frontend_type>select</frontend_type>
|
764 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
765 |
-
<sort_order>10</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 |
-
</quick_redirect>
|
770 |
-
<sort_order translate="label">
|
771 |
-
<label>Sort order</label>
|
772 |
-
<frontend_type>text</frontend_type>
|
773 |
-
<sort_order>11</sort_order>
|
774 |
-
<show_in_default>1</show_in_default>
|
775 |
-
<show_in_website>1</show_in_website>
|
776 |
-
<show_in_store>1</show_in_store>
|
777 |
-
</sort_order>
|
778 |
-
</fields>
|
779 |
-
</eepohs_lhv>
|
780 |
-
</groups>
|
781 |
-
</payment>
|
782 |
-
</sections>
|
783 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Multon/Core/Block/Adminhtml/Fieldset.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
4 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
5 |
+
*/
|
6 |
+
class Multon_Core_Block_Adminhtml_Fieldset extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
7 |
+
{
|
8 |
+
|
9 |
+
protected function _getHeaderTitleHtml($element)
|
10 |
+
{
|
11 |
+
$element->setLegend('<img style="position: relative; top: 2px; margin-right: 5px;" src="' .
|
12 |
+
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) .
|
13 |
+
'adminhtml/default/default/images/multon/multon_black.png" />' .
|
14 |
+
$element->getLegend()
|
15 |
+
);
|
16 |
+
return parent::_getHeaderTitleHtml($element);
|
17 |
+
}
|
18 |
+
|
19 |
+
}
|
app/code/community/Multon/Core/Helper/Data.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
4 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
5 |
+
*/
|
6 |
+
class Multon_Core_Helper_Data extends Mage_Core_Helper_Abstract
|
7 |
+
{
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Core/Model/Observer.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
4 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
5 |
+
*/
|
6 |
+
class Multon_Core_model_Observer {
|
7 |
+
|
8 |
+
public function multon_tab($observer)
|
9 |
+
{
|
10 |
+
$config = $observer->getConfig();
|
11 |
+
$config->getNode('tabs')->multon->label = '<img style="margin-top: 4px;" src="' .
|
12 |
+
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) .
|
13 |
+
'adminhtml/default/default/images/multon/multon_blue.png" />';
|
14 |
+
return $this;
|
15 |
+
}
|
16 |
+
|
17 |
+
}
|
app/code/community/Multon/Core/etc/adminhtml.xml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
5 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
6 |
+
*/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<acl>
|
10 |
+
<resources>
|
11 |
+
<all>
|
12 |
+
<title>Allow Everything</title>
|
13 |
+
</all>
|
14 |
+
<admin>
|
15 |
+
<children>
|
16 |
+
<system>
|
17 |
+
<children>
|
18 |
+
<config>
|
19 |
+
<children>
|
20 |
+
<multon_core>
|
21 |
+
<title>Multon Core</title>
|
22 |
+
</multon_core>
|
23 |
+
</children>
|
24 |
+
</config>
|
25 |
+
</children>
|
26 |
+
</system>
|
27 |
+
</children>
|
28 |
+
</admin>
|
29 |
+
</resources>
|
30 |
+
</acl>
|
31 |
+
</config>
|
app/code/community/Multon/Core/etc/config.xml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
5 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
6 |
+
*/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<modules>
|
10 |
+
<Multon_Core>
|
11 |
+
<version>1.0.4</version>
|
12 |
+
</Multon_Core>
|
13 |
+
</modules>
|
14 |
+
<global>
|
15 |
+
<helpers>
|
16 |
+
<Multon_Core>
|
17 |
+
<class>Multon_Core_Helper</class>
|
18 |
+
</Multon_Core>
|
19 |
+
</helpers>
|
20 |
+
<events>
|
21 |
+
<adminhtml_init_system_config>
|
22 |
+
<observers>
|
23 |
+
<multon_core_model_observer>
|
24 |
+
<type>model</type>
|
25 |
+
<class>Multon_Core_Model_Observer</class>
|
26 |
+
<method>multon_tab</method>
|
27 |
+
</multon_core_model_observer>
|
28 |
+
</observers>
|
29 |
+
</adminhtml_init_system_config>
|
30 |
+
</events>
|
31 |
+
</global>
|
32 |
+
<adminhtml>
|
33 |
+
<translate>
|
34 |
+
<modules>
|
35 |
+
<Multon_Core>
|
36 |
+
<files>
|
37 |
+
<default>Multon_Core.csv</default>
|
38 |
+
</files>
|
39 |
+
</Multon_Core>
|
40 |
+
</modules>
|
41 |
+
</translate>
|
42 |
+
</adminhtml>
|
43 |
+
</config>
|
app/code/community/Multon/Core/etc/system.xml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @author Tanel Raja <tanel.raja@multon.ee>
|
5 |
+
* @copyright Copyright (c) 2014, Multon (http://multon.ee/)
|
6 |
+
*/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<tabs>
|
10 |
+
<multon module="Multon_Core" translate="label">
|
11 |
+
<label>Multon</label>
|
12 |
+
<sort_order>1</sort_order>
|
13 |
+
</multon>
|
14 |
+
</tabs>
|
15 |
+
<sections>
|
16 |
+
<multon_core module="Multon_Core" translate="label">
|
17 |
+
<label>Info</label>
|
18 |
+
<tab>multon</tab>
|
19 |
+
<frontend_type>text</frontend_type>
|
20 |
+
<sort_order>10</sort_order>
|
21 |
+
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
+
<show_in_store>1</show_in_store>
|
24 |
+
<groups>
|
25 |
+
<info translate="label comment">
|
26 |
+
<label>Info</label>
|
27 |
+
<comment><![CDATA[<div style="float: left; margin-right: 10px;"><img src="/skin/adminhtml/default/default/images/multon/multon_small.png" /></div>
|
28 |
+
<strong>Multon</strong> is an e-commerce development house specializing on building Magento based web stores.<br /><br />
|
29 |
+
|
30 |
+
Multon, Pärnu mnt 102, 11312 Tallinn, Estonia<br />
|
31 |
+
+372 604 1104, info@multon.ee, <a href="http://multon.ee">multon.ee</a>]]></comment>
|
32 |
+
<frontend_type>text</frontend_type>
|
33 |
+
<sort_order>10</sort_order>
|
34 |
+
<show_in_default>1</show_in_default>
|
35 |
+
<show_in_website>1</show_in_website>
|
36 |
+
<show_in_store>1</show_in_store>
|
37 |
+
</info>
|
38 |
+
</groups>
|
39 |
+
</multon_core>
|
40 |
+
</sections>
|
41 |
+
</config>
|
app/code/community/Multon/Estpay/Block/Adminhtml/System/Config/Version.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Adminhtml_System_Config_Version
|
4 |
+
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
5 |
+
{
|
6 |
+
/**
|
7 |
+
* Render element html
|
8 |
+
*
|
9 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
10 |
+
* @return string
|
11 |
+
*/
|
12 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
13 |
+
{
|
14 |
+
$html = sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
|
15 |
+
$element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
|
16 |
+
);
|
17 |
+
$html .= '<tr><td colspan="5">Estpay module version: '.Mage::getConfig()->getModuleConfig('Multon_Estpay')->version.'</td></tr>';
|
18 |
+
$html .= '<tr><td colspan="5">Payment module version: '.Mage::getConfig()->getModuleConfig('Multon_Payment')->version.'</td></tr>';
|
19 |
+
|
20 |
+
return $html;
|
21 |
+
}
|
22 |
+
}
|
app/code/community/Multon/Estpay/Block/Danske.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Danske extends Multon_Estpay_Block_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_danske';
|
7 |
+
protected $_gateway = 'danske';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/Block/Estcard.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Estcard extends Multon_Payment_Block_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_estcard';
|
7 |
+
protected $_gateway = 'estcard';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Returns payment method logo URL
|
11 |
+
*
|
12 |
+
* @return string
|
13 |
+
*/
|
14 |
+
public function getMethodLogoUrl()
|
15 |
+
{
|
16 |
+
return $this->getSkinUrl('images/multon/estpay/estcard_logo_120x31.gif');
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Populates and returns array for form that
|
21 |
+
* will be submitted to Estcard
|
22 |
+
*
|
23 |
+
* @return array
|
24 |
+
*/
|
25 |
+
public function getFields()
|
26 |
+
{
|
27 |
+
|
28 |
+
$fields = array();
|
29 |
+
//NB! NETS does not support any field for reference ID
|
30 |
+
//it's needed to rely on session in case of Estcard/NETS
|
31 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
32 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
33 |
+
|
34 |
+
$fields['action'] = 'gaf';
|
35 |
+
$fields['ver'] = '004'; // Old version was 002
|
36 |
+
$fields['id'] =
|
37 |
+
Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
|
38 |
+
$fields['ecuno'] = sprintf('%012s', $order->getIncrementId());
|
39 |
+
$fields['eamount'] =
|
40 |
+
sprintf("%012s", (round($order->getTotalDue(), 2) * 100));
|
41 |
+
$fields['cur'] = $order->getOrderCurrencyCode();
|
42 |
+
$fields['datetime'] = date("YmdHis");
|
43 |
+
|
44 |
+
switch ( Mage::app()->getLocale()->getLocaleCode() ) {
|
45 |
+
case 'et_EE':
|
46 |
+
$language = 'et';
|
47 |
+
break;
|
48 |
+
case 'ru_RU':
|
49 |
+
$language = 'ru';
|
50 |
+
break;
|
51 |
+
case 'fi_FI':
|
52 |
+
$language = 'fi';
|
53 |
+
break;
|
54 |
+
case 'de_DE':
|
55 |
+
$language = 'de';
|
56 |
+
break;
|
57 |
+
default:
|
58 |
+
$language = 'en';
|
59 |
+
break;
|
60 |
+
}
|
61 |
+
$fields['lang'] = $language;
|
62 |
+
|
63 |
+
// gaf004 related stuff
|
64 |
+
$fields['charEncoding'] = 'ISO-8859-1';
|
65 |
+
// $fields['charEncoding'] = 'UTF-8';
|
66 |
+
|
67 |
+
$fields['feedBackUrl'] = Mage::getUrl(
|
68 |
+
'estpay/' . $this->_gateway . '/return', array('_nosid' => true)
|
69 |
+
);
|
70 |
+
$fields['delivery'] = 'T';
|
71 |
+
// Hardcoded for test purposes T = Physical delivery,
|
72 |
+
// S = Electronic delivery
|
73 |
+
|
74 |
+
$data =
|
75 |
+
$fields['ver']
|
76 |
+
. sprintf("%-10s", $fields['id'])
|
77 |
+
. $fields['ecuno']
|
78 |
+
. $fields['eamount']
|
79 |
+
. $fields['cur']
|
80 |
+
. $fields['datetime']
|
81 |
+
. sprintf("%-128s", $fields['feedBackUrl'])
|
82 |
+
. $fields['delivery'];
|
83 |
+
|
84 |
+
$mac = sha1($data);
|
85 |
+
$key = openssl_pkey_get_private(
|
86 |
+
Mage::getStoreConfig('payment/' . $this->_code . '/private_key')
|
87 |
+
);
|
88 |
+
openssl_sign($data, $mac, $key);
|
89 |
+
$fields['mac'] = bin2hex($mac);
|
90 |
+
openssl_free_key($key);
|
91 |
+
|
92 |
+
return $fields;
|
93 |
+
}
|
94 |
+
|
95 |
+
}
|
app/code/community/Multon/Estpay/Block/IPizza.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_IPizza extends Multon_Payment_Block_IPizza
|
4 |
+
{
|
5 |
+
protected function getReturnUrl()
|
6 |
+
{
|
7 |
+
return Mage::getUrl('estpay/' . $this->_gateway . '/return');
|
8 |
+
}
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Returns payment method logo URL
|
12 |
+
*
|
13 |
+
* @return string
|
14 |
+
*/
|
15 |
+
public function getMethodLogoUrl()
|
16 |
+
{
|
17 |
+
return $this->getSkinUrl(
|
18 |
+
sprintf(
|
19 |
+
'images/multon/estpay/%s_logo_88x31.gif',
|
20 |
+
strtolower($this->_gateway)
|
21 |
+
)
|
22 |
+
);
|
23 |
+
}
|
24 |
+
}
|
app/code/community/Multon/Estpay/Block/Info.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Info extends Mage_Core_Block_Template
|
4 |
+
{
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Returns array of enabled Estpay
|
8 |
+
* gateways
|
9 |
+
*
|
10 |
+
* @return array
|
11 |
+
*/
|
12 |
+
public function getEnabledGateways()
|
13 |
+
{
|
14 |
+
$paymentMethods = Mage::getSingleton('payment/config')->getActiveMethods();
|
15 |
+
$methods = array();
|
16 |
+
foreach ($paymentMethods as $paymentCode => $paymentModel) {
|
17 |
+
if (($paymentModel instanceof Multon_Estpay_Model_IPizza)
|
18 |
+
|| ($paymentModel instanceof Multon_Estpay_Model_Estcard)
|
19 |
+
|| ($paymentModel instanceof Multon_Estpay_Model_Nordea)
|
20 |
+
)
|
21 |
+
{
|
22 |
+
$paymentTitle = Mage::getStoreConfig('payment/' . $paymentCode . '/title');
|
23 |
+
$formBlockType = $paymentModel->getFormBlockType();
|
24 |
+
$formBlockInstance = Mage::getBlockSingleton($formBlockType);
|
25 |
+
$methods[] = array(
|
26 |
+
'title' => $paymentTitle,
|
27 |
+
'code' => $paymentCode,
|
28 |
+
'logo' => $formBlockInstance->getMethodLogoUrl()
|
29 |
+
);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
return $methods;
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/community/Multon/Estpay/Block/Krediidipank.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Krediidipank extends Multon_Estpay_Block_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_krediidipank';
|
7 |
+
protected $_gateway = 'krediidipank';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/Block/Lhv.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Lhv extends Multon_Estpay_Block_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_lhv';
|
7 |
+
protected $_gateway = 'lhv';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Returns LHV logo URL under base/default
|
11 |
+
* theme skin
|
12 |
+
*
|
13 |
+
* @return string image URL
|
14 |
+
*/
|
15 |
+
public function getMethodLogoUrl()
|
16 |
+
{
|
17 |
+
return $this->getSkinUrl('images/multon/estpay/lhv_logo_88x31.png');
|
18 |
+
}
|
19 |
+
|
20 |
+
}
|
app/code/community/Multon/Estpay/Block/Nordea.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Nordea extends Multon_Payment_Block_Abstract
|
4 |
+
{
|
5 |
+
protected $_code = 'multon_nordea';
|
6 |
+
protected $_gateway = 'nordea';
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Returns payment method logo URL
|
10 |
+
*
|
11 |
+
* @return string
|
12 |
+
*/
|
13 |
+
public function getMethodLogoUrl()
|
14 |
+
{
|
15 |
+
return $this->getSkinUrl('images/multon/estpay/nordea_logo_88x31.gif');
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Returns fields for Nordea form
|
20 |
+
* to be submitted to bank
|
21 |
+
*
|
22 |
+
* @return array
|
23 |
+
*/
|
24 |
+
public function getFields()
|
25 |
+
{
|
26 |
+
|
27 |
+
$fields = array();
|
28 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
29 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
30 |
+
$returnUrl = Mage::getUrl('estpay/' . $this->_gateway . '/return', array('_nosid'=>true)).'?';
|
31 |
+
|
32 |
+
$fields['SOLOPMT_VERSION'] = '0003';
|
33 |
+
$fields['SOLOPMT_STAMP'] = time();
|
34 |
+
$fields['SOLOPMT_RCV_ID'] = Mage::getStoreConfig('payment/' . $this->_code . '/service_provider');
|
35 |
+
|
36 |
+
/* Choose language:
|
37 |
+
* 3 = english, 4 = estonian, 6 = latvian, 7 = lithuanian
|
38 |
+
*/
|
39 |
+
switch (Mage::app()->getLocale()->getLocaleCode()) {
|
40 |
+
case 'et_EE':
|
41 |
+
$language = '4';
|
42 |
+
break;
|
43 |
+
default:
|
44 |
+
$language = '3';
|
45 |
+
break;
|
46 |
+
}
|
47 |
+
$fields['SOLOPMT_LANGUAGE'] = $language;
|
48 |
+
|
49 |
+
$fields['SOLOPMT_AMOUNT'] = number_format($order->getTotalDue(), 2, '.', '');
|
50 |
+
$fields['SOLOPMT_REF'] = Mage::helper('multonpay')->calcRef($order->getIncrementId());
|
51 |
+
$fields['SOLOPMT_DATE'] = 'EXPRESS';
|
52 |
+
$fields['SOLOPMT_MSG'] = __('Invoice number') . ' ' . $order->getIncrementId();
|
53 |
+
$fields['SOLOPMT_RETURN'] = $returnUrl;
|
54 |
+
$fields['SOLOPMT_CANCEL'] = $returnUrl;
|
55 |
+
$fields['SOLOPMT_REJECT'] = $returnUrl;
|
56 |
+
$fields['SOLOPMT_CONFIRM'] = 'YES';
|
57 |
+
$fields['SOLOPMT_KEYVERS'] = '0001';
|
58 |
+
$fields['SOLOPMT_CUR'] = $order->getOrderCurrencyCode();
|
59 |
+
|
60 |
+
$data = $fields['SOLOPMT_VERSION'] . '&' .
|
61 |
+
$fields['SOLOPMT_STAMP'] . '&' .
|
62 |
+
$fields['SOLOPMT_RCV_ID'] . '&' .
|
63 |
+
$fields['SOLOPMT_AMOUNT'] . '&' .
|
64 |
+
$fields['SOLOPMT_REF'] . '&' .
|
65 |
+
$fields['SOLOPMT_DATE'] . '&' .
|
66 |
+
$fields['SOLOPMT_CUR'] . '&' .
|
67 |
+
Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
|
68 |
+
|
69 |
+
$fields['STRING'] = $data;
|
70 |
+
$fields['SOLOPMT_MAC'] = strtoupper(md5($data));
|
71 |
+
|
72 |
+
return $fields;
|
73 |
+
}
|
74 |
+
|
75 |
+
}
|
app/code/community/Multon/Estpay/Block/Seb.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Seb extends Multon_Estpay_Block_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_seb';
|
7 |
+
protected $_gateway = 'seb';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/Block/Swedbank.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Block_Swedbank extends Multon_Estpay_Block_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_swedbank';
|
7 |
+
protected $_gateway = 'swedbank';
|
8 |
+
}
|
app/code/community/Multon/Estpay/Model/Danske.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Danske extends Multon_Estpay_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_danske';
|
7 |
+
protected $_formBlockType = 'estpay/danske';
|
8 |
+
protected $_gateway = 'danske';
|
9 |
+
|
10 |
+
}
|
app/code/community/Multon/Estpay/Model/Estcard.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Estcard extends Multon_Payment_Model_Abstract
|
4 |
+
{
|
5 |
+
protected $_code = 'multon_estcard';
|
6 |
+
protected $_formBlockType = 'estpay/estcard';
|
7 |
+
protected $_gateway = 'estcard';
|
8 |
+
|
9 |
+
public function getOrderPlaceRedirectUrl()
|
10 |
+
{
|
11 |
+
return Mage::getUrl("estpay/" . $this->_gateway . "/redirect");
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Verifies response sent by the bank
|
16 |
+
*
|
17 |
+
* @param array $params Parameters by bank
|
18 |
+
*
|
19 |
+
* @return int
|
20 |
+
*/
|
21 |
+
public function verify(array $params = array())
|
22 |
+
{
|
23 |
+
|
24 |
+
$merchantId = Mage::getStoreConfig('payment/' . $this->_code . '/merchant_id');
|
25 |
+
|
26 |
+
if (!isset($params['id']) || $params['id'] != $merchantId) {
|
27 |
+
Mage::log(sprintf(
|
28 |
+
'%s (%s)@%s: Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__,
|
29 |
+
$_SERVER['REMOTE_ADDR'], $params['id'], $merchantId
|
30 |
+
), null, $this->logFile
|
31 |
+
);
|
32 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
33 |
+
}
|
34 |
+
|
35 |
+
$data =
|
36 |
+
sprintf("%03s", $params['ver'])
|
37 |
+
. sprintf("%-10s", $params['id'])
|
38 |
+
. sprintf("%012s", $params['ecuno'])
|
39 |
+
. sprintf("%06s", $params['receipt_no'])
|
40 |
+
. sprintf("%012s", $params['eamount'])
|
41 |
+
. sprintf("%3s", $params['cur'])
|
42 |
+
. $params['respcode']
|
43 |
+
. $params['datetime']
|
44 |
+
. sprintf("%-40s", urldecode($params['msgdata']))
|
45 |
+
. sprintf("%-40s", urldecode($params['actiontext']));
|
46 |
+
$mac = pack('H*', $params['mac']);
|
47 |
+
|
48 |
+
$key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
|
49 |
+
$result = openssl_verify($data, $mac, $key);
|
50 |
+
openssl_free_key($key);
|
51 |
+
|
52 |
+
switch ($result) {
|
53 |
+
case 1: // ssl verify successful
|
54 |
+
if ($params['respcode'] == '000')
|
55 |
+
return Multon_Payment_Helper_Data::_VERIFY_SUCCESS;
|
56 |
+
else
|
57 |
+
{
|
58 |
+
$msg = sprintf('ERROR: (%d) %s', $params['respcode'], urldecode($params['msgdata']));
|
59 |
+
Mage::getSingleton('checkout/session')->addError($msg);
|
60 |
+
return Multon_Payment_Helper_Data::_VERIFY_CANCEL;
|
61 |
+
}
|
62 |
+
|
63 |
+
case 0: // ssl verify failed
|
64 |
+
Mage::log(sprintf('%s (%s)@%s: Verification of signature failed for estcard', __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']), null, $this->logFile);
|
65 |
+
Mage::getSingleton('checkout/session')->addError('Signature verification failed.');
|
66 |
+
|
67 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
68 |
+
|
69 |
+
case -1: // ssl verify error
|
70 |
+
default:
|
71 |
+
$error = '';
|
72 |
+
while ($msg = openssl_error_string())
|
73 |
+
$error .= $msg . "\n";
|
74 |
+
Mage::log(sprintf('%s (%s)@%s: Verification of signature error for estcard : %s', __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR'], $error), null, $this->logFile);
|
75 |
+
Mage::getSingleton('checkout/session')->addError('Signature verification error: ' . $error);
|
76 |
+
|
77 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
}
|
app/code/community/Multon/Estpay/Model/IPizza.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
abstract class Multon_Estpay_Model_IPizza extends Multon_Payment_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
public function getOrderPlaceRedirectUrl()
|
7 |
+
{
|
8 |
+
return Mage::getUrl("estpay/" . $this->_gateway . "/redirect");
|
9 |
+
}
|
10 |
+
|
11 |
+
}
|
app/code/community/Multon/Estpay/Model/Krediidipank.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Krediidipank extends Multon_Estpay_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_krediidipank';
|
7 |
+
protected $_formBlockType = 'estpay/krediidipank';
|
8 |
+
protected $_gateway = 'krediidipank';
|
9 |
+
|
10 |
+
}
|
app/code/community/Multon/Estpay/Model/Lhv.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Lhv extends Multon_Estpay_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_lhv';
|
7 |
+
protected $_formBlockType = 'estpay/lhv';
|
8 |
+
protected $_gateway = 'lhv';
|
9 |
+
|
10 |
+
}
|
app/code/community/Multon/Estpay/Model/Nordea.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Nordea extends Multon_Payment_Model_Abstract
|
4 |
+
{
|
5 |
+
protected $_code = 'multon_nordea';
|
6 |
+
protected $_formBlockType = 'estpay/nordea';
|
7 |
+
protected $_gateway = 'nordea';
|
8 |
+
|
9 |
+
public function getOrderPlaceRedirectUrl()
|
10 |
+
{
|
11 |
+
return Mage::getUrl("estpay/" . $this->_gateway . "/redirect");
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Verifies response from Nordea
|
16 |
+
*
|
17 |
+
* @param array $params Response sent by bank and to be verified
|
18 |
+
*
|
19 |
+
* @return int
|
20 |
+
*/
|
21 |
+
public function verify(array $params = array())
|
22 |
+
{
|
23 |
+
$test_success = false;
|
24 |
+
|
25 |
+
// Not present if cancelled or rejected
|
26 |
+
if (isset($params['SOLOPMT_RETURN_PAID']))
|
27 |
+
$test_success = true;
|
28 |
+
|
29 |
+
$data =
|
30 |
+
$params['SOLOPMT_RETURN_VERSION'] . '&' .
|
31 |
+
$params['SOLOPMT_RETURN_STAMP'] . '&' .
|
32 |
+
$params['SOLOPMT_RETURN_REF'] . '&' .
|
33 |
+
($test_success ? $params['SOLOPMT_RETURN_PAID'] : '') . '&' . // empty string still used for md5 calculation
|
34 |
+
Mage::getStoreConfig('payment/' . $this->_code . '/mac_key') . '&';
|
35 |
+
|
36 |
+
// Invalid MAC code
|
37 |
+
if ($params['SOLOPMT_RETURN_MAC'] != strtoupper(md5($data))) {
|
38 |
+
Mage::log(sprintf("%s (%s)@%s: (Nordea) Invalid MAC code", __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']), null, $this->logFile);
|
39 |
+
Mage::getSingleton('checkout/session')->addError('Invalid MAC code.');
|
40 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
41 |
+
}
|
42 |
+
|
43 |
+
$session = Mage::getSingleton('checkout/session');
|
44 |
+
|
45 |
+
// Reference number doesn't match.
|
46 |
+
if (Mage::helper('multonpay')->calcRef($session->getLastRealOrderId()) != $params['SOLOPMT_RETURN_REF']) {
|
47 |
+
Mage::log(
|
48 |
+
sprintf("%s (%s)@%s: (Nordea): Reference number doesn't match (potential tampering attempt).",
|
49 |
+
__METHOD__, __LINE__, $_SERVER['REMOTE_ADDR']
|
50 |
+
), null, $this->logFile
|
51 |
+
);
|
52 |
+
Mage::getSingleton('checkout/session')->addError('Reference number error.');
|
53 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ($test_success)
|
57 |
+
return Multon_Payment_Helper_Data::_VERIFY_SUCCESS;
|
58 |
+
else
|
59 |
+
return Multon_Payment_Helper_Data::_VERIFY_CANCEL;
|
60 |
+
}
|
61 |
+
|
62 |
+
}
|
app/code/community/Multon/Estpay/Model/Seb.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Seb extends Multon_Estpay_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_seb';
|
7 |
+
protected $_formBlockType = 'estpay/seb';
|
8 |
+
protected $_gateway = 'seb';
|
9 |
+
|
10 |
+
}
|
app/code/community/Multon/Estpay/Model/Swedbank.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_Model_Swedbank extends Multon_Estpay_Model_IPizza
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_code = 'multon_swedbank';
|
7 |
+
protected $_formBlockType = 'estpay/swedbank';
|
8 |
+
protected $_gateway = 'swedbank';
|
9 |
+
|
10 |
+
}
|
app/code/community/Multon/Estpay/controllers/DanskeController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_DanskeController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/danske';
|
7 |
+
protected $_code = 'multon_danske';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/controllers/EstcardController.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_EstcardController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/estcard';
|
7 |
+
protected $_code = 'multon_estcard';
|
8 |
+
protected $orderNoField = 'ecuno';
|
9 |
+
|
10 |
+
}
|
11 |
+
|
app/code/community/Multon/Estpay/controllers/KrediidipankController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_KrediidipankController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/krediidipank';
|
7 |
+
protected $_code = 'multon_krediidipank';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/controllers/LhvController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_LhvController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/lhv';
|
7 |
+
protected $_code = 'multon_lhv';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/controllers/NordeaController.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_NordeaController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/nordea';
|
7 |
+
protected $_code = 'multon_nordea';
|
8 |
+
|
9 |
+
}
|
10 |
+
|
app/code/community/Multon/Estpay/controllers/SebController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_SebController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/seb';
|
7 |
+
protected $_code = 'multon_seb';
|
8 |
+
|
9 |
+
}
|
app/code/community/Multon/Estpay/controllers/SwedbankController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Estpay_SwedbankController extends Multon_Payment_Controller_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected $_model = 'estpay/swedbank';
|
7 |
+
protected $_code = 'multon_swedbank';
|
8 |
+
|
9 |
+
}
|
app/code/community/{Eepohs → Multon}/Estpay/etc/config.xml
RENAMED
@@ -1,147 +1,70 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* config.xml
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Config file for EstPay extension
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
-->
|
55 |
<config>
|
56 |
<modules>
|
57 |
-
<
|
58 |
-
<version>
|
59 |
-
</
|
60 |
</modules>
|
61 |
<global>
|
62 |
<models>
|
63 |
<estpay>
|
64 |
-
<class>
|
65 |
</estpay>
|
66 |
</models>
|
67 |
-
<helpers>
|
68 |
-
<estpay>
|
69 |
-
<class>Eepohs_Estpay_Helper</class>
|
70 |
-
</estpay>
|
71 |
-
</helpers>
|
72 |
<blocks>
|
73 |
<estpay>
|
74 |
-
<class>
|
75 |
</estpay>
|
76 |
</blocks>
|
77 |
</global>
|
78 |
<adminhtml>
|
79 |
<translate>
|
80 |
<modules>
|
81 |
-
<
|
82 |
<files>
|
83 |
-
<default>
|
84 |
</files>
|
85 |
-
</
|
86 |
</modules>
|
87 |
</translate>
|
88 |
<layout>
|
89 |
<updates>
|
90 |
-
<
|
91 |
-
<file>
|
92 |
-
</
|
93 |
</updates>
|
94 |
</layout>
|
95 |
-
<acl>
|
96 |
-
<resources>
|
97 |
-
<admin>
|
98 |
-
<children>
|
99 |
-
<system>
|
100 |
-
<children>
|
101 |
-
<config>
|
102 |
-
<children>
|
103 |
-
<Eepohs_Estpay>
|
104 |
-
<title>Eepohs Estpay</title>
|
105 |
-
</Eepohs_Estpay>
|
106 |
-
</children>
|
107 |
-
</config>
|
108 |
-
</children>
|
109 |
-
</system>
|
110 |
-
</children>
|
111 |
-
</admin>
|
112 |
-
</resources>
|
113 |
-
</acl>
|
114 |
</adminhtml>
|
115 |
<frontend>
|
116 |
<layout>
|
117 |
<updates>
|
118 |
-
<
|
119 |
-
<file>
|
120 |
-
</
|
121 |
</updates>
|
122 |
</layout>
|
123 |
<routers>
|
124 |
<estpay>
|
125 |
<use>standard</use>
|
126 |
<args>
|
127 |
-
<module>
|
128 |
<frontName>estpay</frontName>
|
129 |
</args>
|
130 |
</estpay>
|
131 |
</routers>
|
132 |
<translate>
|
133 |
<modules>
|
134 |
-
<
|
135 |
<files>
|
136 |
-
<default>
|
137 |
</files>
|
138 |
-
</
|
139 |
</modules>
|
140 |
</translate>
|
141 |
</frontend>
|
142 |
<default>
|
143 |
<payment>
|
144 |
-
<
|
145 |
<active>0</active>
|
146 |
<title>SEB</title>
|
147 |
<order_status>pending</order_status>
|
@@ -149,14 +72,12 @@
|
|
149 |
<vk_snd_id></vk_snd_id>
|
150 |
<private_key></private_key>
|
151 |
<bank_certificate></bank_certificate>
|
152 |
-
<private_key></private_key>
|
153 |
-
<bank_certificate></bank_certificate>
|
154 |
<order_confirmation>0</order_confirmation>
|
155 |
<invoice_confirmation>1</invoice_confirmation>
|
156 |
<model>estpay/seb</model>
|
157 |
<payment_action>authorize</payment_action>
|
158 |
-
</
|
159 |
-
<
|
160 |
<active>0</active>
|
161 |
<title>Nordea</title>
|
162 |
<order_status>pending</order_status>
|
@@ -167,8 +88,8 @@
|
|
167 |
<invoice_confirmation>1</invoice_confirmation>
|
168 |
<model>estpay/nordea</model>
|
169 |
<payment_action>authorize</payment_action>
|
170 |
-
</
|
171 |
-
<
|
172 |
<active>0</active>
|
173 |
<title>Swedbank</title>
|
174 |
<order_status>pending</order_status>
|
@@ -176,14 +97,12 @@
|
|
176 |
<vk_snd_id></vk_snd_id>
|
177 |
<private_key></private_key>
|
178 |
<bank_certificate></bank_certificate>
|
179 |
-
<private_key></private_key>
|
180 |
-
<bank_certificate></bank_certificate>
|
181 |
<order_confirmation>0</order_confirmation>
|
182 |
<invoice_confirmation>1</invoice_confirmation>
|
183 |
<model>estpay/swedbank</model>
|
184 |
<payment_action>authorize</payment_action>
|
185 |
-
</
|
186 |
-
<
|
187 |
<active>0</active>
|
188 |
<title>Danske</title>
|
189 |
<order_status>pending</order_status>
|
@@ -191,14 +110,12 @@
|
|
191 |
<vk_snd_id></vk_snd_id>
|
192 |
<private_key></private_key>
|
193 |
<bank_certificate></bank_certificate>
|
194 |
-
<private_key></private_key>
|
195 |
-
<bank_certificate></bank_certificate>
|
196 |
<order_confirmation>0</order_confirmation>
|
197 |
<invoice_confirmation>1</invoice_confirmation>
|
198 |
<model>estpay/danske</model>
|
199 |
<payment_action>authorize</payment_action>
|
200 |
-
</
|
201 |
-
<
|
202 |
<active>0</active>
|
203 |
<title>Krediidipank</title>
|
204 |
<order_status>pending</order_status>
|
@@ -206,29 +123,25 @@
|
|
206 |
<vk_snd_id></vk_snd_id>
|
207 |
<private_key></private_key>
|
208 |
<bank_certificate></bank_certificate>
|
209 |
-
<private_key></private_key>
|
210 |
-
<bank_certificate></bank_certificate>
|
211 |
<order_confirmation>0</order_confirmation>
|
212 |
<invoice_confirmation>1</invoice_confirmation>
|
213 |
<model>estpay/krediidipank</model>
|
214 |
<payment_action>authorize</payment_action>
|
215 |
-
</
|
216 |
-
<
|
217 |
<active>0</active>
|
218 |
<title>VISA / Mastercard</title>
|
219 |
<order_status>pending</order_status>
|
220 |
-
<gateway_url>https://pos.estcard.ee/
|
221 |
<vk_snd_id></vk_snd_id>
|
222 |
<private_key></private_key>
|
223 |
<bank_certificate></bank_certificate>
|
224 |
-
<private_key></private_key>
|
225 |
-
<bank_certificate></bank_certificate>
|
226 |
<order_confirmation>0</order_confirmation>
|
227 |
<invoice_confirmation>1</invoice_confirmation>
|
228 |
<model>estpay/estcard</model>
|
229 |
<payment_action>authorize</payment_action>
|
230 |
-
</
|
231 |
-
<
|
232 |
<active>0</active>
|
233 |
<title>LHV</title>
|
234 |
<order_status>pending</order_status>
|
@@ -236,13 +149,11 @@
|
|
236 |
<vk_snd_id></vk_snd_id>
|
237 |
<private_key></private_key>
|
238 |
<bank_certificate></bank_certificate>
|
239 |
-
<private_key></private_key>
|
240 |
-
<bank_certificate></bank_certificate>
|
241 |
<order_confirmation>0</order_confirmation>
|
242 |
<invoice_confirmation>1</invoice_confirmation>
|
243 |
<model>estpay/lhv</model>
|
244 |
<payment_action>authorize</payment_action>
|
245 |
-
</
|
246 |
</payment>
|
247 |
</default>
|
248 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Multon_Estpay>
|
5 |
+
<version>2.2.1</version>
|
6 |
+
</Multon_Estpay>
|
7 |
</modules>
|
8 |
<global>
|
9 |
<models>
|
10 |
<estpay>
|
11 |
+
<class>Multon_Estpay_Model</class>
|
12 |
</estpay>
|
13 |
</models>
|
|
|
|
|
|
|
|
|
|
|
14 |
<blocks>
|
15 |
<estpay>
|
16 |
+
<class>Multon_Estpay_Block</class>
|
17 |
</estpay>
|
18 |
</blocks>
|
19 |
</global>
|
20 |
<adminhtml>
|
21 |
<translate>
|
22 |
<modules>
|
23 |
+
<Multon_Estpay>
|
24 |
<files>
|
25 |
+
<default>Multon_Estpay.csv</default>
|
26 |
</files>
|
27 |
+
</Multon_Estpay>
|
28 |
</modules>
|
29 |
</translate>
|
30 |
<layout>
|
31 |
<updates>
|
32 |
+
<Multon_Estpay>
|
33 |
+
<file>multon/estpay.xml</file>
|
34 |
+
</Multon_Estpay>
|
35 |
</updates>
|
36 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
</adminhtml>
|
38 |
<frontend>
|
39 |
<layout>
|
40 |
<updates>
|
41 |
+
<Multon_Estpay>
|
42 |
+
<file>multon/estpay.xml</file>
|
43 |
+
</Multon_Estpay>
|
44 |
</updates>
|
45 |
</layout>
|
46 |
<routers>
|
47 |
<estpay>
|
48 |
<use>standard</use>
|
49 |
<args>
|
50 |
+
<module>Multon_Estpay</module>
|
51 |
<frontName>estpay</frontName>
|
52 |
</args>
|
53 |
</estpay>
|
54 |
</routers>
|
55 |
<translate>
|
56 |
<modules>
|
57 |
+
<Multon_Estpay>
|
58 |
<files>
|
59 |
+
<default>Multon_Estpay.csv</default>
|
60 |
</files>
|
61 |
+
</Multon_Estpay>
|
62 |
</modules>
|
63 |
</translate>
|
64 |
</frontend>
|
65 |
<default>
|
66 |
<payment>
|
67 |
+
<multon_seb>
|
68 |
<active>0</active>
|
69 |
<title>SEB</title>
|
70 |
<order_status>pending</order_status>
|
72 |
<vk_snd_id></vk_snd_id>
|
73 |
<private_key></private_key>
|
74 |
<bank_certificate></bank_certificate>
|
|
|
|
|
75 |
<order_confirmation>0</order_confirmation>
|
76 |
<invoice_confirmation>1</invoice_confirmation>
|
77 |
<model>estpay/seb</model>
|
78 |
<payment_action>authorize</payment_action>
|
79 |
+
</multon_seb>
|
80 |
+
<multon_nordea>
|
81 |
<active>0</active>
|
82 |
<title>Nordea</title>
|
83 |
<order_status>pending</order_status>
|
88 |
<invoice_confirmation>1</invoice_confirmation>
|
89 |
<model>estpay/nordea</model>
|
90 |
<payment_action>authorize</payment_action>
|
91 |
+
</multon_nordea>
|
92 |
+
<multon_swedbank>
|
93 |
<active>0</active>
|
94 |
<title>Swedbank</title>
|
95 |
<order_status>pending</order_status>
|
97 |
<vk_snd_id></vk_snd_id>
|
98 |
<private_key></private_key>
|
99 |
<bank_certificate></bank_certificate>
|
|
|
|
|
100 |
<order_confirmation>0</order_confirmation>
|
101 |
<invoice_confirmation>1</invoice_confirmation>
|
102 |
<model>estpay/swedbank</model>
|
103 |
<payment_action>authorize</payment_action>
|
104 |
+
</multon_swedbank>
|
105 |
+
<multon_danske>
|
106 |
<active>0</active>
|
107 |
<title>Danske</title>
|
108 |
<order_status>pending</order_status>
|
110 |
<vk_snd_id></vk_snd_id>
|
111 |
<private_key></private_key>
|
112 |
<bank_certificate></bank_certificate>
|
|
|
|
|
113 |
<order_confirmation>0</order_confirmation>
|
114 |
<invoice_confirmation>1</invoice_confirmation>
|
115 |
<model>estpay/danske</model>
|
116 |
<payment_action>authorize</payment_action>
|
117 |
+
</multon_danske>
|
118 |
+
<multon_krediidipank>
|
119 |
<active>0</active>
|
120 |
<title>Krediidipank</title>
|
121 |
<order_status>pending</order_status>
|
123 |
<vk_snd_id></vk_snd_id>
|
124 |
<private_key></private_key>
|
125 |
<bank_certificate></bank_certificate>
|
|
|
|
|
126 |
<order_confirmation>0</order_confirmation>
|
127 |
<invoice_confirmation>1</invoice_confirmation>
|
128 |
<model>estpay/krediidipank</model>
|
129 |
<payment_action>authorize</payment_action>
|
130 |
+
</multon_krediidipank>
|
131 |
+
<multon_estcard>
|
132 |
<active>0</active>
|
133 |
<title>VISA / Mastercard</title>
|
134 |
<order_status>pending</order_status>
|
135 |
+
<gateway_url>https://pos.estcard.ee/ecom/iPayServlet</gateway_url>
|
136 |
<vk_snd_id></vk_snd_id>
|
137 |
<private_key></private_key>
|
138 |
<bank_certificate></bank_certificate>
|
|
|
|
|
139 |
<order_confirmation>0</order_confirmation>
|
140 |
<invoice_confirmation>1</invoice_confirmation>
|
141 |
<model>estpay/estcard</model>
|
142 |
<payment_action>authorize</payment_action>
|
143 |
+
</multon_estcard>
|
144 |
+
<multon_lhv>
|
145 |
<active>0</active>
|
146 |
<title>LHV</title>
|
147 |
<order_status>pending</order_status>
|
149 |
<vk_snd_id></vk_snd_id>
|
150 |
<private_key></private_key>
|
151 |
<bank_certificate></bank_certificate>
|
|
|
|
|
152 |
<order_confirmation>0</order_confirmation>
|
153 |
<invoice_confirmation>1</invoice_confirmation>
|
154 |
<model>estpay/lhv</model>
|
155 |
<payment_action>authorize</payment_action>
|
156 |
+
</multon_lhv>
|
157 |
</payment>
|
158 |
</default>
|
159 |
</config>
|
app/code/community/Multon/Estpay/etc/system.xml
ADDED
@@ -0,0 +1,862 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<payment>
|
5 |
+
<groups>
|
6 |
+
<multon_seb translate="label" module="multonpay">
|
7 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
8 |
+
<label>SEB</label>
|
9 |
+
<sort_order>100</sort_order>
|
10 |
+
<show_in_default>1</show_in_default>
|
11 |
+
<show_in_website>1</show_in_website>
|
12 |
+
<show_in_store>1</show_in_store>
|
13 |
+
<fields>
|
14 |
+
<active translate="label">
|
15 |
+
<label>Enabled</label>
|
16 |
+
<frontend_type>select</frontend_type>
|
17 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
18 |
+
<sort_order>1</sort_order>
|
19 |
+
<show_in_default>1</show_in_default>
|
20 |
+
<show_in_website>1</show_in_website>
|
21 |
+
<show_in_store>1</show_in_store>
|
22 |
+
</active>
|
23 |
+
<title translate="label">
|
24 |
+
<label>Title</label>
|
25 |
+
<frontend_type>text</frontend_type>
|
26 |
+
<sort_order>2</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>1</show_in_store>
|
30 |
+
</title>
|
31 |
+
<order_status translate="label">
|
32 |
+
<label>New Order Status</label>
|
33 |
+
<frontend_type>select</frontend_type>
|
34 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
35 |
+
<sort_order>3</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>1</show_in_store>
|
39 |
+
</order_status>
|
40 |
+
<gateway_url translate="label">
|
41 |
+
<label>Gateway URL</label>
|
42 |
+
<frontend_type>text</frontend_type>
|
43 |
+
<sort_order>4</sort_order>
|
44 |
+
<show_in_default>1</show_in_default>
|
45 |
+
<show_in_website>1</show_in_website>
|
46 |
+
<show_in_store>1</show_in_store>
|
47 |
+
</gateway_url>
|
48 |
+
<vk_snd_id translate="label">
|
49 |
+
<label>Merchant ID</label>
|
50 |
+
<frontend_type>text</frontend_type>
|
51 |
+
<sort_order>5</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
</vk_snd_id>
|
56 |
+
<private_key translate="label">
|
57 |
+
<label>Private Key</label>
|
58 |
+
<frontend_type>textarea</frontend_type>
|
59 |
+
<sort_order>6</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>1</show_in_store>
|
63 |
+
</private_key>
|
64 |
+
<bank_certificate translate="label">
|
65 |
+
<label>Bank Certificate</label>
|
66 |
+
<frontend_type>textarea</frontend_type>
|
67 |
+
<sort_order>7</sort_order>
|
68 |
+
<show_in_default>1</show_in_default>
|
69 |
+
<show_in_website>1</show_in_website>
|
70 |
+
<show_in_store>1</show_in_store>
|
71 |
+
</bank_certificate>
|
72 |
+
<order_confirmation translate="label">
|
73 |
+
<label>Send Order Confirmation</label>
|
74 |
+
<frontend_type>select</frontend_type>
|
75 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
76 |
+
<sort_order>8</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>1</show_in_store>
|
80 |
+
</order_confirmation>
|
81 |
+
<invoice_confirmation translate="label">
|
82 |
+
<label>Send Invoice</label>
|
83 |
+
<frontend_type>select</frontend_type>
|
84 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
85 |
+
<sort_order>9</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>1</show_in_store>
|
89 |
+
</invoice_confirmation>
|
90 |
+
<quick_redirect translate="label">
|
91 |
+
<label>Quick Redirect</label>
|
92 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
93 |
+
</description>
|
94 |
+
<frontend_type>select</frontend_type>
|
95 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
96 |
+
<sort_order>10</sort_order>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>1</show_in_website>
|
99 |
+
<show_in_store>1</show_in_store>
|
100 |
+
</quick_redirect>
|
101 |
+
<hide_logo translate="label">
|
102 |
+
<label>Hide Logo</label>
|
103 |
+
<frontend_type>select</frontend_type>
|
104 |
+
<sort_order>20</sort_order>
|
105 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
106 |
+
<show_in_default>1</show_in_default>
|
107 |
+
<show_in_website>1</show_in_website>
|
108 |
+
<show_in_store>1</show_in_store>
|
109 |
+
<comment>Hide logo in checkout</comment>
|
110 |
+
</hide_logo>
|
111 |
+
<sort_order translate="label">
|
112 |
+
<label>Sort order</label>
|
113 |
+
<frontend_type>text</frontend_type>
|
114 |
+
<sort_order>80</sort_order>
|
115 |
+
<show_in_default>1</show_in_default>
|
116 |
+
<show_in_website>1</show_in_website>
|
117 |
+
<show_in_store>1</show_in_store>
|
118 |
+
</sort_order>
|
119 |
+
<version>
|
120 |
+
<label>Version info</label>
|
121 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
122 |
+
<sort_order>90</sort_order>
|
123 |
+
<show_in_default>1</show_in_default>
|
124 |
+
<show_in_website>0</show_in_website>
|
125 |
+
<show_in_store>0</show_in_store>
|
126 |
+
</version>
|
127 |
+
</fields>
|
128 |
+
</multon_seb>
|
129 |
+
<multon_nordea translate="label" module="multonpay">
|
130 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
131 |
+
<label>Nordea</label>
|
132 |
+
<sort_order>110</sort_order>
|
133 |
+
<show_in_default>1</show_in_default>
|
134 |
+
<show_in_website>1</show_in_website>
|
135 |
+
<show_in_store>1</show_in_store>
|
136 |
+
<fields>
|
137 |
+
<active translate="label">
|
138 |
+
<label>Enabled</label>
|
139 |
+
<frontend_type>select</frontend_type>
|
140 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
141 |
+
<sort_order>1</sort_order>
|
142 |
+
<show_in_default>1</show_in_default>
|
143 |
+
<show_in_website>1</show_in_website>
|
144 |
+
<show_in_store>1</show_in_store>
|
145 |
+
</active>
|
146 |
+
<title translate="label">
|
147 |
+
<label>Title</label>
|
148 |
+
<frontend_type>text</frontend_type>
|
149 |
+
<sort_order>2</sort_order>
|
150 |
+
<show_in_default>1</show_in_default>
|
151 |
+
<show_in_website>1</show_in_website>
|
152 |
+
<show_in_store>1</show_in_store>
|
153 |
+
</title>
|
154 |
+
<order_status translate="label">
|
155 |
+
<label>New Order Status</label>
|
156 |
+
<frontend_type>select</frontend_type>
|
157 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
158 |
+
<sort_order>3</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 |
+
</order_status>
|
163 |
+
<gateway_url translate="label">
|
164 |
+
<label>Gateway URL</label>
|
165 |
+
<frontend_type>text</frontend_type>
|
166 |
+
<sort_order>4</sort_order>
|
167 |
+
<show_in_default>1</show_in_default>
|
168 |
+
<show_in_website>1</show_in_website>
|
169 |
+
<show_in_store>1</show_in_store>
|
170 |
+
</gateway_url>
|
171 |
+
<service_provider translate="label">
|
172 |
+
<label>Service Provider's ID</label>
|
173 |
+
<frontend_type>text</frontend_type>
|
174 |
+
<sort_order>5</sort_order>
|
175 |
+
<show_in_default>1</show_in_default>
|
176 |
+
<show_in_website>1</show_in_website>
|
177 |
+
<show_in_store>1</show_in_store>
|
178 |
+
</service_provider>
|
179 |
+
<mac_key translate="label">
|
180 |
+
<label>MAC Key</label>
|
181 |
+
<frontend_type>text</frontend_type>
|
182 |
+
<sort_order>6</sort_order>
|
183 |
+
<show_in_default>1</show_in_default>
|
184 |
+
<show_in_website>1</show_in_website>
|
185 |
+
<show_in_store>1</show_in_store>
|
186 |
+
</mac_key>
|
187 |
+
<order_confirmation translate="label">
|
188 |
+
<label>Send Order Confirmation</label>
|
189 |
+
<frontend_type>select</frontend_type>
|
190 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
191 |
+
<sort_order>7</sort_order>
|
192 |
+
<show_in_default>1</show_in_default>
|
193 |
+
<show_in_website>1</show_in_website>
|
194 |
+
<show_in_store>1</show_in_store>
|
195 |
+
</order_confirmation>
|
196 |
+
<invoice_confirmation translate="label">
|
197 |
+
<label>Send Invoice</label>
|
198 |
+
<frontend_type>select</frontend_type>
|
199 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
200 |
+
<sort_order>8</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 |
+
</invoice_confirmation>
|
205 |
+
<quick_redirect translate="label">
|
206 |
+
<label>Quick Redirect</label>
|
207 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
208 |
+
</description>
|
209 |
+
<frontend_type>select</frontend_type>
|
210 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
211 |
+
<sort_order>10</sort_order>
|
212 |
+
<show_in_default>1</show_in_default>
|
213 |
+
<show_in_website>1</show_in_website>
|
214 |
+
<show_in_store>1</show_in_store>
|
215 |
+
</quick_redirect>
|
216 |
+
<hide_logo translate="label">
|
217 |
+
<label>Hide Logo</label>
|
218 |
+
<frontend_type>select</frontend_type>
|
219 |
+
<sort_order>20</sort_order>
|
220 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
221 |
+
<show_in_default>1</show_in_default>
|
222 |
+
<show_in_website>1</show_in_website>
|
223 |
+
<show_in_store>1</show_in_store>
|
224 |
+
<comment>Hide logo in checkout</comment>
|
225 |
+
</hide_logo>
|
226 |
+
<sort_order translate="label">
|
227 |
+
<label>Sort order</label>
|
228 |
+
<frontend_type>text</frontend_type>
|
229 |
+
<sort_order>80</sort_order>
|
230 |
+
<show_in_default>1</show_in_default>
|
231 |
+
<show_in_website>1</show_in_website>
|
232 |
+
<show_in_store>1</show_in_store>
|
233 |
+
</sort_order>
|
234 |
+
<version>
|
235 |
+
<label>Version info</label>
|
236 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
237 |
+
<sort_order>90</sort_order>
|
238 |
+
<show_in_default>1</show_in_default>
|
239 |
+
<show_in_website>0</show_in_website>
|
240 |
+
<show_in_store>0</show_in_store>
|
241 |
+
</version>
|
242 |
+
</fields>
|
243 |
+
</multon_nordea>
|
244 |
+
<multon_swedbank translate="label" module="multonpay">
|
245 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
246 |
+
<label>Swedbank</label>
|
247 |
+
<sort_order>120</sort_order>
|
248 |
+
<show_in_default>1</show_in_default>
|
249 |
+
<show_in_website>1</show_in_website>
|
250 |
+
<show_in_store>1</show_in_store>
|
251 |
+
<fields>
|
252 |
+
<active translate="label">
|
253 |
+
<label>Enabled</label>
|
254 |
+
<frontend_type>select</frontend_type>
|
255 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
256 |
+
<sort_order>1</sort_order>
|
257 |
+
<show_in_default>1</show_in_default>
|
258 |
+
<show_in_website>1</show_in_website>
|
259 |
+
<show_in_store>1</show_in_store>
|
260 |
+
</active>
|
261 |
+
<title translate="label">
|
262 |
+
<label>Title</label>
|
263 |
+
<frontend_type>text</frontend_type>
|
264 |
+
<sort_order>2</sort_order>
|
265 |
+
<show_in_default>1</show_in_default>
|
266 |
+
<show_in_website>1</show_in_website>
|
267 |
+
<show_in_store>1</show_in_store>
|
268 |
+
</title>
|
269 |
+
<order_status translate="label">
|
270 |
+
<label>New Order Status</label>
|
271 |
+
<frontend_type>select</frontend_type>
|
272 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
273 |
+
<sort_order>3</sort_order>
|
274 |
+
<show_in_default>1</show_in_default>
|
275 |
+
<show_in_website>1</show_in_website>
|
276 |
+
<show_in_store>1</show_in_store>
|
277 |
+
</order_status>
|
278 |
+
<gateway_url translate="label">
|
279 |
+
<label>Gateway URL</label>
|
280 |
+
<frontend_type>text</frontend_type>
|
281 |
+
<sort_order>4</sort_order>
|
282 |
+
<show_in_default>1</show_in_default>
|
283 |
+
<show_in_website>1</show_in_website>
|
284 |
+
<show_in_store>1</show_in_store>
|
285 |
+
</gateway_url>
|
286 |
+
<vk_snd_id translate="label">
|
287 |
+
<label>Merchant ID</label>
|
288 |
+
<frontend_type>text</frontend_type>
|
289 |
+
<sort_order>5</sort_order>
|
290 |
+
<show_in_default>1</show_in_default>
|
291 |
+
<show_in_website>1</show_in_website>
|
292 |
+
<show_in_store>1</show_in_store>
|
293 |
+
</vk_snd_id>
|
294 |
+
<private_key translate="label">
|
295 |
+
<label>Private Key</label>
|
296 |
+
<frontend_type>textarea</frontend_type>
|
297 |
+
<sort_order>6</sort_order>
|
298 |
+
<show_in_default>1</show_in_default>
|
299 |
+
<show_in_website>1</show_in_website>
|
300 |
+
<show_in_store>1</show_in_store>
|
301 |
+
</private_key>
|
302 |
+
<bank_certificate translate="label">
|
303 |
+
<label>Bank Certificate</label>
|
304 |
+
<frontend_type>textarea</frontend_type>
|
305 |
+
<sort_order>7</sort_order>
|
306 |
+
<show_in_default>1</show_in_default>
|
307 |
+
<show_in_website>1</show_in_website>
|
308 |
+
<show_in_store>1</show_in_store>
|
309 |
+
</bank_certificate>
|
310 |
+
<order_confirmation translate="label">
|
311 |
+
<label>Send Order Confirmation</label>
|
312 |
+
<frontend_type>select</frontend_type>
|
313 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
314 |
+
<sort_order>8</sort_order>
|
315 |
+
<show_in_default>1</show_in_default>
|
316 |
+
<show_in_website>1</show_in_website>
|
317 |
+
<show_in_store>1</show_in_store>
|
318 |
+
</order_confirmation>
|
319 |
+
<invoice_confirmation translate="label">
|
320 |
+
<label>Send Invoice</label>
|
321 |
+
<frontend_type>select</frontend_type>
|
322 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
323 |
+
<sort_order>9</sort_order>
|
324 |
+
<show_in_default>1</show_in_default>
|
325 |
+
<show_in_website>1</show_in_website>
|
326 |
+
<show_in_store>1</show_in_store>
|
327 |
+
</invoice_confirmation>
|
328 |
+
<quick_redirect translate="label">
|
329 |
+
<label>Quick Redirect</label>
|
330 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
331 |
+
</description>
|
332 |
+
<frontend_type>select</frontend_type>
|
333 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
334 |
+
<sort_order>10</sort_order>
|
335 |
+
<show_in_default>1</show_in_default>
|
336 |
+
<show_in_website>1</show_in_website>
|
337 |
+
<show_in_store>1</show_in_store>
|
338 |
+
</quick_redirect>
|
339 |
+
<hide_logo translate="label">
|
340 |
+
<label>Hide Logo</label>
|
341 |
+
<frontend_type>select</frontend_type>
|
342 |
+
<sort_order>20</sort_order>
|
343 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
344 |
+
<show_in_default>1</show_in_default>
|
345 |
+
<show_in_website>1</show_in_website>
|
346 |
+
<show_in_store>1</show_in_store>
|
347 |
+
<comment>Hide logo in checkout</comment>
|
348 |
+
</hide_logo>
|
349 |
+
<sort_order translate="label">
|
350 |
+
<label>Sort order</label>
|
351 |
+
<frontend_type>text</frontend_type>
|
352 |
+
<sort_order>80</sort_order>
|
353 |
+
<show_in_default>1</show_in_default>
|
354 |
+
<show_in_website>1</show_in_website>
|
355 |
+
<show_in_store>1</show_in_store>
|
356 |
+
</sort_order>
|
357 |
+
<version>
|
358 |
+
<label>Version info</label>
|
359 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
360 |
+
<sort_order>90</sort_order>
|
361 |
+
<show_in_default>1</show_in_default>
|
362 |
+
<show_in_website>0</show_in_website>
|
363 |
+
<show_in_store>0</show_in_store>
|
364 |
+
</version>
|
365 |
+
</fields>
|
366 |
+
</multon_swedbank>
|
367 |
+
<multon_danske translate="label" module="multonpay">
|
368 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
369 |
+
<label>Danske Bank</label>
|
370 |
+
<sort_order>130</sort_order>
|
371 |
+
<show_in_default>1</show_in_default>
|
372 |
+
<show_in_website>1</show_in_website>
|
373 |
+
<show_in_store>1</show_in_store>
|
374 |
+
<fields>
|
375 |
+
<active translate="label">
|
376 |
+
<label>Enabled</label>
|
377 |
+
<frontend_type>select</frontend_type>
|
378 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
379 |
+
<sort_order>1</sort_order>
|
380 |
+
<show_in_default>1</show_in_default>
|
381 |
+
<show_in_website>1</show_in_website>
|
382 |
+
<show_in_store>1</show_in_store>
|
383 |
+
</active>
|
384 |
+
<title translate="label">
|
385 |
+
<label>Title</label>
|
386 |
+
<frontend_type>text</frontend_type>
|
387 |
+
<sort_order>2</sort_order>
|
388 |
+
<show_in_default>1</show_in_default>
|
389 |
+
<show_in_website>1</show_in_website>
|
390 |
+
<show_in_store>1</show_in_store>
|
391 |
+
</title>
|
392 |
+
<order_status translate="label">
|
393 |
+
<label>New Order Status</label>
|
394 |
+
<frontend_type>select</frontend_type>
|
395 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
396 |
+
<sort_order>3</sort_order>
|
397 |
+
<show_in_default>1</show_in_default>
|
398 |
+
<show_in_website>1</show_in_website>
|
399 |
+
<show_in_store>1</show_in_store>
|
400 |
+
</order_status>
|
401 |
+
<gateway_url translate="label">
|
402 |
+
<label>Gateway URL</label>
|
403 |
+
<frontend_type>text</frontend_type>
|
404 |
+
<sort_order>4</sort_order>
|
405 |
+
<show_in_default>1</show_in_default>
|
406 |
+
<show_in_website>1</show_in_website>
|
407 |
+
<show_in_store>1</show_in_store>
|
408 |
+
</gateway_url>
|
409 |
+
<vk_snd_id translate="label">
|
410 |
+
<label>Merchant ID</label>
|
411 |
+
<frontend_type>text</frontend_type>
|
412 |
+
<sort_order>5</sort_order>
|
413 |
+
<show_in_default>1</show_in_default>
|
414 |
+
<show_in_website>1</show_in_website>
|
415 |
+
<show_in_store>1</show_in_store>
|
416 |
+
</vk_snd_id>
|
417 |
+
<private_key translate="label">
|
418 |
+
<label>Private Key</label>
|
419 |
+
<frontend_type>textarea</frontend_type>
|
420 |
+
<sort_order>6</sort_order>
|
421 |
+
<show_in_default>1</show_in_default>
|
422 |
+
<show_in_website>1</show_in_website>
|
423 |
+
<show_in_store>1</show_in_store>
|
424 |
+
</private_key>
|
425 |
+
<bank_certificate translate="label">
|
426 |
+
<label>Bank Certificate</label>
|
427 |
+
<frontend_type>textarea</frontend_type>
|
428 |
+
<sort_order>7</sort_order>
|
429 |
+
<show_in_default>1</show_in_default>
|
430 |
+
<show_in_website>1</show_in_website>
|
431 |
+
<show_in_store>1</show_in_store>
|
432 |
+
</bank_certificate>
|
433 |
+
<order_confirmation translate="label">
|
434 |
+
<label>Send Order Confirmation</label>
|
435 |
+
<frontend_type>select</frontend_type>
|
436 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
437 |
+
<sort_order>8</sort_order>
|
438 |
+
<show_in_default>1</show_in_default>
|
439 |
+
<show_in_website>1</show_in_website>
|
440 |
+
<show_in_store>1</show_in_store>
|
441 |
+
</order_confirmation>
|
442 |
+
<invoice_confirmation translate="label">
|
443 |
+
<label>Send Invoice</label>
|
444 |
+
<frontend_type>select</frontend_type>
|
445 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
446 |
+
<sort_order>9</sort_order>
|
447 |
+
<show_in_default>1</show_in_default>
|
448 |
+
<show_in_website>1</show_in_website>
|
449 |
+
<show_in_store>1</show_in_store>
|
450 |
+
</invoice_confirmation>
|
451 |
+
<quick_redirect translate="label">
|
452 |
+
<label>Quick Redirect</label>
|
453 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
454 |
+
</description>
|
455 |
+
<frontend_type>select</frontend_type>
|
456 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
457 |
+
<sort_order>10</sort_order>
|
458 |
+
<show_in_default>1</show_in_default>
|
459 |
+
<show_in_website>1</show_in_website>
|
460 |
+
<show_in_store>1</show_in_store>
|
461 |
+
</quick_redirect>
|
462 |
+
<hide_logo translate="label">
|
463 |
+
<label>Hide Logo</label>
|
464 |
+
<frontend_type>select</frontend_type>
|
465 |
+
<sort_order>20</sort_order>
|
466 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
467 |
+
<show_in_default>1</show_in_default>
|
468 |
+
<show_in_website>1</show_in_website>
|
469 |
+
<show_in_store>1</show_in_store>
|
470 |
+
<comment>Hide logo in checkout</comment>
|
471 |
+
</hide_logo>
|
472 |
+
<sort_order translate="label">
|
473 |
+
<label>Sort order</label>
|
474 |
+
<frontend_type>text</frontend_type>
|
475 |
+
<sort_order>80</sort_order>
|
476 |
+
<show_in_default>1</show_in_default>
|
477 |
+
<show_in_website>1</show_in_website>
|
478 |
+
<show_in_store>1</show_in_store>
|
479 |
+
</sort_order>
|
480 |
+
<version>
|
481 |
+
<label>Version info</label>
|
482 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
483 |
+
<sort_order>90</sort_order>
|
484 |
+
<show_in_default>1</show_in_default>
|
485 |
+
<show_in_website>0</show_in_website>
|
486 |
+
<show_in_store>0</show_in_store>
|
487 |
+
</version>
|
488 |
+
</fields>
|
489 |
+
</multon_danske>
|
490 |
+
<multon_krediidipank translate="label" module="multonpay">
|
491 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
492 |
+
<label>Krediidipank</label>
|
493 |
+
<sort_order>140</sort_order>
|
494 |
+
<show_in_default>1</show_in_default>
|
495 |
+
<show_in_website>1</show_in_website>
|
496 |
+
<show_in_store>1</show_in_store>
|
497 |
+
<fields>
|
498 |
+
<active translate="label">
|
499 |
+
<label>Enabled</label>
|
500 |
+
<frontend_type>select</frontend_type>
|
501 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
502 |
+
<sort_order>1</sort_order>
|
503 |
+
<show_in_default>1</show_in_default>
|
504 |
+
<show_in_website>1</show_in_website>
|
505 |
+
<show_in_store>1</show_in_store>
|
506 |
+
</active>
|
507 |
+
<title translate="label">
|
508 |
+
<label>Title</label>
|
509 |
+
<frontend_type>text</frontend_type>
|
510 |
+
<sort_order>2</sort_order>
|
511 |
+
<show_in_default>1</show_in_default>
|
512 |
+
<show_in_website>1</show_in_website>
|
513 |
+
<show_in_store>1</show_in_store>
|
514 |
+
</title>
|
515 |
+
<order_status translate="label">
|
516 |
+
<label>New Order Status</label>
|
517 |
+
<frontend_type>select</frontend_type>
|
518 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
519 |
+
<sort_order>3</sort_order>
|
520 |
+
<show_in_default>1</show_in_default>
|
521 |
+
<show_in_website>1</show_in_website>
|
522 |
+
<show_in_store>1</show_in_store>
|
523 |
+
</order_status>
|
524 |
+
<gateway_url translate="label">
|
525 |
+
<label>Gateway URL</label>
|
526 |
+
<frontend_type>text</frontend_type>
|
527 |
+
<sort_order>4</sort_order>
|
528 |
+
<show_in_default>1</show_in_default>
|
529 |
+
<show_in_website>1</show_in_website>
|
530 |
+
<show_in_store>1</show_in_store>
|
531 |
+
</gateway_url>
|
532 |
+
<vk_snd_id translate="label">
|
533 |
+
<label>Merchant ID</label>
|
534 |
+
<frontend_type>text</frontend_type>
|
535 |
+
<sort_order>5</sort_order>
|
536 |
+
<show_in_default>1</show_in_default>
|
537 |
+
<show_in_website>1</show_in_website>
|
538 |
+
<show_in_store>1</show_in_store>
|
539 |
+
</vk_snd_id>
|
540 |
+
<private_key translate="label">
|
541 |
+
<label>Private Key</label>
|
542 |
+
<frontend_type>textarea</frontend_type>
|
543 |
+
<sort_order>6</sort_order>
|
544 |
+
<show_in_default>1</show_in_default>
|
545 |
+
<show_in_website>1</show_in_website>
|
546 |
+
<show_in_store>1</show_in_store>
|
547 |
+
</private_key>
|
548 |
+
<bank_certificate translate="label">
|
549 |
+
<label>Bank Certificate</label>
|
550 |
+
<frontend_type>textarea</frontend_type>
|
551 |
+
<sort_order>7</sort_order>
|
552 |
+
<show_in_default>1</show_in_default>
|
553 |
+
<show_in_website>1</show_in_website>
|
554 |
+
<show_in_store>1</show_in_store>
|
555 |
+
</bank_certificate>
|
556 |
+
<order_confirmation translate="label">
|
557 |
+
<label>Send Order Confirmation</label>
|
558 |
+
<frontend_type>select</frontend_type>
|
559 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
560 |
+
<sort_order>8</sort_order>
|
561 |
+
<show_in_default>1</show_in_default>
|
562 |
+
<show_in_website>1</show_in_website>
|
563 |
+
<show_in_store>1</show_in_store>
|
564 |
+
</order_confirmation>
|
565 |
+
<invoice_confirmation translate="label">
|
566 |
+
<label>Send Invoice</label>
|
567 |
+
<frontend_type>select</frontend_type>
|
568 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
569 |
+
<sort_order>9</sort_order>
|
570 |
+
<show_in_default>1</show_in_default>
|
571 |
+
<show_in_website>1</show_in_website>
|
572 |
+
<show_in_store>1</show_in_store>
|
573 |
+
</invoice_confirmation>
|
574 |
+
<quick_redirect translate="label">
|
575 |
+
<label>Quick Redirect</label>
|
576 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
577 |
+
</description>
|
578 |
+
<frontend_type>select</frontend_type>
|
579 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
580 |
+
<sort_order>10</sort_order>
|
581 |
+
<show_in_default>1</show_in_default>
|
582 |
+
<show_in_website>1</show_in_website>
|
583 |
+
<show_in_store>1</show_in_store>
|
584 |
+
</quick_redirect>
|
585 |
+
<hide_logo translate="label">
|
586 |
+
<label>Hide Logo</label>
|
587 |
+
<frontend_type>select</frontend_type>
|
588 |
+
<sort_order>20</sort_order>
|
589 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
590 |
+
<show_in_default>1</show_in_default>
|
591 |
+
<show_in_website>1</show_in_website>
|
592 |
+
<show_in_store>1</show_in_store>
|
593 |
+
<comment>Hide logo in checkout</comment>
|
594 |
+
</hide_logo>
|
595 |
+
<sort_order translate="label">
|
596 |
+
<label>Sort order</label>
|
597 |
+
<frontend_type>text</frontend_type>
|
598 |
+
<sort_order>80</sort_order>
|
599 |
+
<show_in_default>1</show_in_default>
|
600 |
+
<show_in_website>1</show_in_website>
|
601 |
+
<show_in_store>1</show_in_store>
|
602 |
+
</sort_order>
|
603 |
+
<version>
|
604 |
+
<label>Version info</label>
|
605 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
606 |
+
<sort_order>90</sort_order>
|
607 |
+
<show_in_default>1</show_in_default>
|
608 |
+
<show_in_website>0</show_in_website>
|
609 |
+
<show_in_store>0</show_in_store>
|
610 |
+
</version>
|
611 |
+
</fields>
|
612 |
+
</multon_krediidipank>
|
613 |
+
<multon_estcard translate="label" module="multonpay">
|
614 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
615 |
+
<label>Estcard</label>
|
616 |
+
<sort_order>150</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 |
+
<fields>
|
621 |
+
<active translate="label">
|
622 |
+
<label>Enabled</label>
|
623 |
+
<frontend_type>select</frontend_type>
|
624 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
625 |
+
<sort_order>1</sort_order>
|
626 |
+
<show_in_default>1</show_in_default>
|
627 |
+
<show_in_website>1</show_in_website>
|
628 |
+
<show_in_store>1</show_in_store>
|
629 |
+
</active>
|
630 |
+
<title translate="label">
|
631 |
+
<label>Title</label>
|
632 |
+
<frontend_type>text</frontend_type>
|
633 |
+
<sort_order>2</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 |
+
</title>
|
638 |
+
<order_status translate="label">
|
639 |
+
<label>New Order Status</label>
|
640 |
+
<frontend_type>select</frontend_type>
|
641 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
642 |
+
<sort_order>3</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 |
+
</order_status>
|
647 |
+
<gateway_url translate="label">
|
648 |
+
<label>Gateway URL</label>
|
649 |
+
<frontend_type>text</frontend_type>
|
650 |
+
<sort_order>4</sort_order>
|
651 |
+
<show_in_default>1</show_in_default>
|
652 |
+
<show_in_website>1</show_in_website>
|
653 |
+
<show_in_store>1</show_in_store>
|
654 |
+
</gateway_url>
|
655 |
+
<merchant_id translate="label">
|
656 |
+
<label>Merchant ID</label>
|
657 |
+
<frontend_type>text</frontend_type>
|
658 |
+
<sort_order>5</sort_order>
|
659 |
+
<show_in_default>1</show_in_default>
|
660 |
+
<show_in_website>1</show_in_website>
|
661 |
+
<show_in_store>1</show_in_store>
|
662 |
+
</merchant_id>
|
663 |
+
<private_key translate="label">
|
664 |
+
<label>Private Key</label>
|
665 |
+
<frontend_type>textarea</frontend_type>
|
666 |
+
<sort_order>6</sort_order>
|
667 |
+
<show_in_default>1</show_in_default>
|
668 |
+
<show_in_website>1</show_in_website>
|
669 |
+
<show_in_store>1</show_in_store>
|
670 |
+
</private_key>
|
671 |
+
<bank_certificate translate="label">
|
672 |
+
<label>Bank Certificate</label>
|
673 |
+
<frontend_type>textarea</frontend_type>
|
674 |
+
<sort_order>7</sort_order>
|
675 |
+
<show_in_default>1</show_in_default>
|
676 |
+
<show_in_website>1</show_in_website>
|
677 |
+
<show_in_store>1</show_in_store>
|
678 |
+
</bank_certificate>
|
679 |
+
<order_confirmation translate="label">
|
680 |
+
<label>Send Order Confirmation</label>
|
681 |
+
<frontend_type>select</frontend_type>
|
682 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
683 |
+
<sort_order>8</sort_order>
|
684 |
+
<show_in_default>1</show_in_default>
|
685 |
+
<show_in_website>1</show_in_website>
|
686 |
+
<show_in_store>1</show_in_store>
|
687 |
+
</order_confirmation>
|
688 |
+
<invoice_confirmation translate="label">
|
689 |
+
<label>Send Invoice</label>
|
690 |
+
<frontend_type>select</frontend_type>
|
691 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
692 |
+
<sort_order>9</sort_order>
|
693 |
+
<show_in_default>1</show_in_default>
|
694 |
+
<show_in_website>1</show_in_website>
|
695 |
+
<show_in_store>1</show_in_store>
|
696 |
+
</invoice_confirmation>
|
697 |
+
<quick_redirect translate="label">
|
698 |
+
<label>Quick Redirect</label>
|
699 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
700 |
+
</description>
|
701 |
+
<frontend_type>select</frontend_type>
|
702 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
703 |
+
<sort_order>10</sort_order>
|
704 |
+
<show_in_default>1</show_in_default>
|
705 |
+
<show_in_website>1</show_in_website>
|
706 |
+
<show_in_store>1</show_in_store>
|
707 |
+
</quick_redirect>
|
708 |
+
<hide_logo translate="label">
|
709 |
+
<label>Hide Logo</label>
|
710 |
+
<frontend_type>select</frontend_type>
|
711 |
+
<sort_order>20</sort_order>
|
712 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
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 |
+
<comment>Hide logo in checkout</comment>
|
717 |
+
</hide_logo>
|
718 |
+
<sort_order translate="label">
|
719 |
+
<label>Sort order</label>
|
720 |
+
<frontend_type>text</frontend_type>
|
721 |
+
<sort_order>80</sort_order>
|
722 |
+
<show_in_default>1</show_in_default>
|
723 |
+
<show_in_website>1</show_in_website>
|
724 |
+
<show_in_store>1</show_in_store>
|
725 |
+
</sort_order>
|
726 |
+
<version>
|
727 |
+
<label>Version info</label>
|
728 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
729 |
+
<sort_order>90</sort_order>
|
730 |
+
<show_in_default>1</show_in_default>
|
731 |
+
<show_in_website>0</show_in_website>
|
732 |
+
<show_in_store>0</show_in_store>
|
733 |
+
</version>
|
734 |
+
</fields>
|
735 |
+
</multon_estcard>
|
736 |
+
<multon_lhv translate="label" module="multonpay">
|
737 |
+
<frontend_model>Multon_Core_Block_Adminhtml_Fieldset</frontend_model>
|
738 |
+
<label>LHV</label>
|
739 |
+
<sort_order>160</sort_order>
|
740 |
+
<show_in_default>1</show_in_default>
|
741 |
+
<show_in_website>1</show_in_website>
|
742 |
+
<show_in_store>1</show_in_store>
|
743 |
+
<fields>
|
744 |
+
<active translate="label">
|
745 |
+
<label>Enabled</label>
|
746 |
+
<frontend_type>select</frontend_type>
|
747 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
748 |
+
<sort_order>1</sort_order>
|
749 |
+
<show_in_default>1</show_in_default>
|
750 |
+
<show_in_website>1</show_in_website>
|
751 |
+
<show_in_store>1</show_in_store>
|
752 |
+
</active>
|
753 |
+
<title translate="label">
|
754 |
+
<label>Title</label>
|
755 |
+
<frontend_type>text</frontend_type>
|
756 |
+
<sort_order>2</sort_order>
|
757 |
+
<show_in_default>1</show_in_default>
|
758 |
+
<show_in_website>1</show_in_website>
|
759 |
+
<show_in_store>1</show_in_store>
|
760 |
+
</title>
|
761 |
+
<order_status translate="label">
|
762 |
+
<label>New Order Status</label>
|
763 |
+
<frontend_type>select</frontend_type>
|
764 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
765 |
+
<sort_order>3</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 |
+
</order_status>
|
770 |
+
<gateway_url translate="label">
|
771 |
+
<label>Gateway URL</label>
|
772 |
+
<frontend_type>text</frontend_type>
|
773 |
+
<sort_order>4</sort_order>
|
774 |
+
<show_in_default>1</show_in_default>
|
775 |
+
<show_in_website>1</show_in_website>
|
776 |
+
<show_in_store>1</show_in_store>
|
777 |
+
</gateway_url>
|
778 |
+
<vk_snd_id translate="label">
|
779 |
+
<label>Merchant ID</label>
|
780 |
+
<frontend_type>text</frontend_type>
|
781 |
+
<sort_order>5</sort_order>
|
782 |
+
<show_in_default>1</show_in_default>
|
783 |
+
<show_in_website>1</show_in_website>
|
784 |
+
<show_in_store>1</show_in_store>
|
785 |
+
</vk_snd_id>
|
786 |
+
<private_key translate="label">
|
787 |
+
<label>Private Key</label>
|
788 |
+
<frontend_type>textarea</frontend_type>
|
789 |
+
<sort_order>6</sort_order>
|
790 |
+
<show_in_default>1</show_in_default>
|
791 |
+
<show_in_website>1</show_in_website>
|
792 |
+
<show_in_store>1</show_in_store>
|
793 |
+
</private_key>
|
794 |
+
<bank_certificate translate="label">
|
795 |
+
<label>Bank Certificate</label>
|
796 |
+
<frontend_type>textarea</frontend_type>
|
797 |
+
<sort_order>7</sort_order>
|
798 |
+
<show_in_default>1</show_in_default>
|
799 |
+
<show_in_website>1</show_in_website>
|
800 |
+
<show_in_store>1</show_in_store>
|
801 |
+
</bank_certificate>
|
802 |
+
<order_confirmation translate="label">
|
803 |
+
<label>Send Order Confirmation</label>
|
804 |
+
<frontend_type>select</frontend_type>
|
805 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
806 |
+
<sort_order>8</sort_order>
|
807 |
+
<show_in_default>1</show_in_default>
|
808 |
+
<show_in_website>1</show_in_website>
|
809 |
+
<show_in_store>1</show_in_store>
|
810 |
+
</order_confirmation>
|
811 |
+
<invoice_confirmation translate="label">
|
812 |
+
<label>Send Invoice</label>
|
813 |
+
<frontend_type>select</frontend_type>
|
814 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
815 |
+
<sort_order>9</sort_order>
|
816 |
+
<show_in_default>1</show_in_default>
|
817 |
+
<show_in_website>1</show_in_website>
|
818 |
+
<show_in_store>1</show_in_store>
|
819 |
+
</invoice_confirmation>
|
820 |
+
<quick_redirect translate="label">
|
821 |
+
<label>Quick Redirect</label>
|
822 |
+
<description><![CDATA[Redirect to bank right after order confirmation (no intermediate page)]]>
|
823 |
+
</description>
|
824 |
+
<frontend_type>select</frontend_type>
|
825 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
826 |
+
<sort_order>10</sort_order>
|
827 |
+
<show_in_default>1</show_in_default>
|
828 |
+
<show_in_website>1</show_in_website>
|
829 |
+
<show_in_store>1</show_in_store>
|
830 |
+
</quick_redirect>
|
831 |
+
<hide_logo translate="label">
|
832 |
+
<label>Hide Logo</label>
|
833 |
+
<frontend_type>select</frontend_type>
|
834 |
+
<sort_order>20</sort_order>
|
835 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
836 |
+
<show_in_default>1</show_in_default>
|
837 |
+
<show_in_website>1</show_in_website>
|
838 |
+
<show_in_store>1</show_in_store>
|
839 |
+
<comment>Hide logo in checkout</comment>
|
840 |
+
</hide_logo>
|
841 |
+
<sort_order translate="label">
|
842 |
+
<label>Sort order</label>
|
843 |
+
<frontend_type>text</frontend_type>
|
844 |
+
<sort_order>80</sort_order>
|
845 |
+
<show_in_default>1</show_in_default>
|
846 |
+
<show_in_website>1</show_in_website>
|
847 |
+
<show_in_store>1</show_in_store>
|
848 |
+
</sort_order>
|
849 |
+
<version>
|
850 |
+
<label>Version info</label>
|
851 |
+
<frontend_model>estpay/adminhtml_system_config_version</frontend_model>
|
852 |
+
<sort_order>90</sort_order>
|
853 |
+
<show_in_default>1</show_in_default>
|
854 |
+
<show_in_website>0</show_in_website>
|
855 |
+
<show_in_store>0</show_in_store>
|
856 |
+
</version>
|
857 |
+
</fields>
|
858 |
+
</multon_lhv>
|
859 |
+
</groups>
|
860 |
+
</payment>
|
861 |
+
</sections>
|
862 |
+
</config>
|
app/code/community/Multon/Payment/Block/Abstract.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
abstract class Multon_Payment_Block_Abstract extends Mage_Payment_Block_Form
|
4 |
+
{
|
5 |
+
protected $_gateway;
|
6 |
+
|
7 |
+
public abstract function getMethodLogoUrl();
|
8 |
+
|
9 |
+
public abstract function getFields();
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Returns payment gateway URL
|
13 |
+
*
|
14 |
+
* @return string Gateway URL
|
15 |
+
*/
|
16 |
+
public function getGatewayUrl()
|
17 |
+
{
|
18 |
+
return Mage::getStoreConfig('payment/' . $this->_code . '/gateway_url');
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Adds payment mehtod logotypes after method name
|
23 |
+
*
|
24 |
+
* @return string
|
25 |
+
*/
|
26 |
+
public function getMethodLabelAfterHtml()
|
27 |
+
{
|
28 |
+
$blockHtml = sprintf(
|
29 |
+
'<img src="%1$s"
|
30 |
+
title="%2$s"
|
31 |
+
alt="%2$s"
|
32 |
+
class="payment-method-logo"/>',
|
33 |
+
$this->getMethodLogoUrl(), ucfirst($this->_gateway)
|
34 |
+
);
|
35 |
+
return $blockHtml;
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Checks if quick redirect is enabled and
|
40 |
+
* returns javascript block that redirects user
|
41 |
+
* to bank without intermediate page
|
42 |
+
*
|
43 |
+
* @since 1.3.0
|
44 |
+
* @return outstr Javascript block
|
45 |
+
*/
|
46 |
+
public function getQuickRedirectScript()
|
47 |
+
{
|
48 |
+
$outstr = '';
|
49 |
+
if (
|
50 |
+
Mage::getStoreConfig('payment/' . $this->_code . '/quick_redirect')
|
51 |
+
) {
|
52 |
+
$outstr = '<script type="text/javascript"><!--
|
53 |
+
if($("GatewayForm")){$("GatewayForm").submit();}
|
54 |
+
//--></script>';
|
55 |
+
}
|
56 |
+
return $outstr;
|
57 |
+
}
|
58 |
+
|
59 |
+
}
|
app/code/community/Multon/Payment/Block/IPizza.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
abstract class Multon_Payment_Block_IPizza extends Multon_Payment_Block_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
protected abstract function getReturnUrl();
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Populates and returns array of fields to be submitted
|
10 |
+
* to a bank for payment
|
11 |
+
*
|
12 |
+
* @return Array
|
13 |
+
*/
|
14 |
+
public function getFields()
|
15 |
+
{
|
16 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
17 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
18 |
+
|
19 |
+
$fields = array();
|
20 |
+
|
21 |
+
$fields['VK_SERVICE'] = '1012';
|
22 |
+
$fields['VK_VERSION'] = '008';
|
23 |
+
$fields['VK_SND_ID'] = substr(Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id'),0,15);
|
24 |
+
$fields['VK_STAMP'] = substr($order->getIncrementId(),0,20);
|
25 |
+
$fields['VK_AMOUNT'] = number_format($order->getTotalDue(), 2, '.', '');
|
26 |
+
$fields['VK_CURR'] = $order->getOrderCurrencyCode();
|
27 |
+
$fields['VK_REF'] = '';
|
28 |
+
$fields['VK_MSG'] = __('Order number') . ' ' . $order->getIncrementId();
|
29 |
+
$fields['VK_ENCODING'] = 'UTF-8';
|
30 |
+
|
31 |
+
$fields = $this->modifyData($fields);
|
32 |
+
|
33 |
+
$fields['VK_RETURN'] = $this->getReturnUrl();
|
34 |
+
$fields['VK_CANCEL'] = $this->getReturnUrl();
|
35 |
+
$fields['VK_DATETIME'] = Mage::getModel('core/date')->date(DATE_ISO8601); //'Y-m-d\TH:i:sO'
|
36 |
+
|
37 |
+
$fields['VK_MAC'] = $this->signData($this->prepareData($fields));
|
38 |
+
|
39 |
+
switch ( Mage::app()->getLocale()->getLocaleCode() ) {
|
40 |
+
case 'et_EE':
|
41 |
+
$language = 'EST';
|
42 |
+
break;
|
43 |
+
case 'lt_LT':
|
44 |
+
$language = 'LIT';
|
45 |
+
break;
|
46 |
+
case 'lv_LV':
|
47 |
+
$language = 'LAT';
|
48 |
+
break;
|
49 |
+
case 'ru_RU':
|
50 |
+
$language = 'RUS';
|
51 |
+
break;
|
52 |
+
default:
|
53 |
+
$language = 'ENG';
|
54 |
+
break;
|
55 |
+
}
|
56 |
+
|
57 |
+
$fields['VK_LANG'] = $language;
|
58 |
+
|
59 |
+
return $fields;
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Prepare data package for signing
|
64 |
+
*
|
65 |
+
* @param array $fields
|
66 |
+
* @return string
|
67 |
+
*/
|
68 |
+
protected function prepareData(array $fields)
|
69 |
+
{
|
70 |
+
return sprintf('%03d%s', mb_strlen($fields['VK_SERVICE'],'UTF-8'), $fields['VK_SERVICE'])
|
71 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_VERSION'],'UTF-8'), $fields['VK_VERSION'])
|
72 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_SND_ID'],'UTF-8'), $fields['VK_SND_ID'])
|
73 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_STAMP'],'UTF-8'), $fields['VK_STAMP'])
|
74 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_AMOUNT'],'UTF-8'), $fields['VK_AMOUNT'])
|
75 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_CURR'],'UTF-8'), $fields['VK_CURR'])
|
76 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_REF'],'UTF-8'), $fields['VK_REF'])
|
77 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_MSG'],'UTF-8'), $fields['VK_MSG'])
|
78 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_RETURN'],'UTF-8'), $fields['VK_RETURN'])
|
79 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_CANCEL'],'UTF-8'), $fields['VK_CANCEL'])
|
80 |
+
. sprintf('%03d%s', mb_strlen($fields['VK_DATETIME'],'UTF-8'), $fields['VK_DATETIME'])
|
81 |
+
;
|
82 |
+
}
|
83 |
+
|
84 |
+
protected function signData($data)
|
85 |
+
{
|
86 |
+
$signature = null;
|
87 |
+
$key = openssl_pkey_get_private(Mage::getStoreConfig('payment/' . $this->_code . '/private_key'), '');
|
88 |
+
openssl_sign($data, $signature, $key);
|
89 |
+
openssl_free_key($key);
|
90 |
+
|
91 |
+
return base64_encode($signature);
|
92 |
+
}
|
93 |
+
|
94 |
+
protected function modifyData(array $data)
|
95 |
+
{
|
96 |
+
return $data;
|
97 |
+
}
|
98 |
+
}
|
app/code/community/Multon/Payment/Block/Info.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Payment_Block_Info extends Mage_Core_Block_Template
|
4 |
+
{
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Returns array of enabled Multon_Payment
|
8 |
+
* gateways
|
9 |
+
*
|
10 |
+
* @return array
|
11 |
+
*/
|
12 |
+
public function getEnabledGateways()
|
13 |
+
{
|
14 |
+
$paymentMethods = Mage::getSingleton('payment/config')->getActiveMethods();
|
15 |
+
$methods = array();
|
16 |
+
foreach ($paymentMethods as $paymentCode => $paymentModel) {
|
17 |
+
if ($paymentModel instanceof Multon_Payment_Model_Abstract) {
|
18 |
+
$paymentTitle = Mage::getStoreConfig('payment/' . $paymentCode . '/title');
|
19 |
+
$formBlockType = $paymentModel->getFormBlockType();
|
20 |
+
$formBlockInstance = Mage::getBlockSingleton($formBlockType);
|
21 |
+
$methods[] = array(
|
22 |
+
'title' => $paymentTitle,
|
23 |
+
'code' => $paymentCode,
|
24 |
+
'logo' => $formBlockInstance->getMethodLogoUrl()
|
25 |
+
);
|
26 |
+
}
|
27 |
+
}
|
28 |
+
return $methods;
|
29 |
+
}
|
30 |
+
|
31 |
+
}
|
app/code/community/Multon/Payment/Controller/Abstract.php
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Payment_Controller_Abstract extends Mage_Core_Controller_Front_Action
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
*
|
7 |
+
* @var specifies log file name for Payment
|
8 |
+
*/
|
9 |
+
protected $logFile = 'payment.log';
|
10 |
+
|
11 |
+
/**
|
12 |
+
*
|
13 |
+
* @var Fieldname of order number in return data (used on automatic response from bank)
|
14 |
+
*/
|
15 |
+
protected $orderNoField = 'VK_STAMP';
|
16 |
+
|
17 |
+
/**
|
18 |
+
*
|
19 |
+
* @var Specifies model to be used to verify response from bank
|
20 |
+
*/
|
21 |
+
protected $_model;
|
22 |
+
|
23 |
+
/**
|
24 |
+
*
|
25 |
+
* @var Specifies payment method code in magento
|
26 |
+
*/
|
27 |
+
protected $_code;
|
28 |
+
|
29 |
+
/**
|
30 |
+
* This action redirects user to bank for payment
|
31 |
+
*
|
32 |
+
* @return void
|
33 |
+
*/
|
34 |
+
public function redirectAction()
|
35 |
+
{
|
36 |
+
|
37 |
+
/* Send order confirmation */
|
38 |
+
if (Mage::getStoreConfig('payment/' . $this->_code . '/order_confirmation') == '1') {
|
39 |
+
try {
|
40 |
+
$order = Mage::getModel('sales/order');
|
41 |
+
$order->load(
|
42 |
+
Mage::getSingleton('checkout/session')->getLastOrderId()
|
43 |
+
);
|
44 |
+
$order->sendNewOrderEmail();
|
45 |
+
$order->save();
|
46 |
+
} catch (Exception $e) {
|
47 |
+
Mage::log(
|
48 |
+
sprintf('%s(%s): %s', __METHOD__, __LINE__, print_r($e->getMessage(), true)
|
49 |
+
), null, $this->logFile
|
50 |
+
);
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
$this->loadLayout();
|
55 |
+
$this->renderLayout();
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* This is return action handler for Multon Payment method
|
60 |
+
* It verifies signature and creates invoice.
|
61 |
+
* In case of verification failure it cancels the order
|
62 |
+
*
|
63 |
+
* @return void
|
64 |
+
*/
|
65 |
+
public function returnAction()
|
66 |
+
{
|
67 |
+
|
68 |
+
Mage::log(
|
69 |
+
sprintf(
|
70 |
+
'%s(%s)@%s: %s', __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR'],
|
71 |
+
print_r($this->getRequest()->getParams(), true)
|
72 |
+
), null, $this->logFile
|
73 |
+
);
|
74 |
+
$session = Mage::getSingleton('checkout/session');
|
75 |
+
$orderId = $session->getLastRealOrderId();
|
76 |
+
if (!$orderId) {
|
77 |
+
$orderId = $this->getRequest()->getParam($this->orderNoField);
|
78 |
+
}
|
79 |
+
if (!$orderId) {
|
80 |
+
Mage::log(sprintf('%s(%s)@%s: Order number not found in session or \'%s\'', __METHOD__, __LINE__, $_SERVER['REMOTE_ADDR'], $this->orderNoField),null, $this->logFile);
|
81 |
+
$this->_redirect('checkout/onepage/failure');
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
$model = Mage::getModel($this->_model);
|
85 |
+
$model->setOrderId($orderId);
|
86 |
+
$verify = $model->verify($this->getRequest()->getParams());
|
87 |
+
switch ($verify) {
|
88 |
+
case Multon_Payment_Helper_Data::_VERIFY_SUCCESS:
|
89 |
+
$model->createInvoice();
|
90 |
+
$this->_redirect('checkout/onepage/success');
|
91 |
+
break;
|
92 |
+
case Multon_Payment_Helper_Data::_VERIFY_CANCEL:
|
93 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
|
94 |
+
$order->cancel()->save();
|
95 |
+
$this->_redirect('checkout/onepage/failure');
|
96 |
+
break;
|
97 |
+
case Multon_Payment_Helper_Data::_VERIFY_CORRUPT:
|
98 |
+
default:
|
99 |
+
$this->_redirect('checkout/onepage/failure');
|
100 |
+
break;
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
}
|
app/code/community/Multon/Payment/Helper/Data.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Payment_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
const _VERIFY_SUCCESS = 1; // payment successful
|
6 |
+
const _VERIFY_CANCEL = 2; // payment unsuccessful
|
7 |
+
const _VERIFY_CORRUPT = 3; // wrong or corrupt response
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Calculates reference number for bank payment
|
11 |
+
*
|
12 |
+
* @param string $refStr Input reference
|
13 |
+
*
|
14 |
+
* @return string reference number
|
15 |
+
*/
|
16 |
+
public function calcRef($refStr)
|
17 |
+
{
|
18 |
+
|
19 |
+
$n = (string) $refStr;
|
20 |
+
$w = array(7, 3, 1);
|
21 |
+
|
22 |
+
$sl = $st = strlen($n);
|
23 |
+
$total = 0;
|
24 |
+
while ( $sl > 0 and substr($n, --$sl, 1) >= '0' ) {
|
25 |
+
$total += substr($n, ($st - 1) - $sl, 1) * $w[($sl % 3)];
|
26 |
+
}
|
27 |
+
$c = ((ceil(($total / 10)) * 10) - $total);
|
28 |
+
return $n . $c;
|
29 |
+
}
|
30 |
+
|
31 |
+
}
|
32 |
+
|
app/code/community/Multon/Payment/Model/Abstract.php
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
abstract class Multon_Payment_Model_Abstract extends Mage_Payment_Model_Method_Abstract
|
4 |
+
{
|
5 |
+
protected $_canAuthorize = true;
|
6 |
+
protected $_isGateway = true;
|
7 |
+
protected $_canUseCheckout = true;
|
8 |
+
protected $logFile = 'payment.log';
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Order Id to create invoice for
|
12 |
+
* @var string
|
13 |
+
*/
|
14 |
+
protected $_orderId;
|
15 |
+
|
16 |
+
public abstract function getOrderPlaceRedirectUrl();
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Returns false.
|
20 |
+
*
|
21 |
+
* @return URL
|
22 |
+
*/
|
23 |
+
public function getCheckoutRedirectUrl()
|
24 |
+
{
|
25 |
+
return;
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* This method creates invoice for current order
|
30 |
+
*/
|
31 |
+
public function createInvoice()
|
32 |
+
{
|
33 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
|
34 |
+
|
35 |
+
if (!$this->isLocked($this->getOrderId()))
|
36 |
+
{
|
37 |
+
if ($order->canInvoice())
|
38 |
+
{
|
39 |
+
|
40 |
+
if ($this->createLock($this->getOrderId()))
|
41 |
+
{
|
42 |
+
|
43 |
+
$invoice = $order->prepareInvoice();
|
44 |
+
$invoice->pay()->register();
|
45 |
+
$invoice->save();
|
46 |
+
|
47 |
+
$order->setStatus(Mage_Sales_Model_Order::STATE_PROCESSING);
|
48 |
+
$order->save();
|
49 |
+
|
50 |
+
/* Release lock file right after creating invoice */
|
51 |
+
$this->releaseLock($this->getOrderId());
|
52 |
+
|
53 |
+
/* Send invoice */
|
54 |
+
if (Mage::getStoreConfig('payment/' . $this->_code . '/invoice_confirmation') == '1')
|
55 |
+
{
|
56 |
+
$invoice->sendEmail(true, '');
|
57 |
+
}
|
58 |
+
|
59 |
+
Mage::register('current_invoice', $invoice);
|
60 |
+
}
|
61 |
+
} else
|
62 |
+
{
|
63 |
+
$this->log('Failed to create invoice for order ' . $this->getOrderId() . '. Reason: invoice already created', __METHOD__, __LINE__);
|
64 |
+
}
|
65 |
+
} else
|
66 |
+
{
|
67 |
+
$this->log('Failed to create invoice for order ' . $this->getOrderId() . '. Reason: order locked', __METHOD__, __LINE__);
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
*
|
73 |
+
* @param string $orderId
|
74 |
+
* @return string
|
75 |
+
*/
|
76 |
+
private function getLockfilePath($orderId)
|
77 |
+
{
|
78 |
+
return Mage::getBaseDir('var') . DS . 'locks' . DS . 'order_' . $orderId . '.lock';
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Checks if given invoice is locked, i.e if it has
|
83 |
+
* a file in var/locks folder
|
84 |
+
*
|
85 |
+
* @param string $orderId
|
86 |
+
*/
|
87 |
+
public function isLocked($orderId)
|
88 |
+
{
|
89 |
+
return file_exists($this->getLockfilePath($orderId));
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Locks order, i.e creates a lock file
|
94 |
+
* in var/locks folder
|
95 |
+
* @param string $orderId
|
96 |
+
*/
|
97 |
+
public function createLock($orderId)
|
98 |
+
{
|
99 |
+
$path = $this->getLockfilePath($orderId);
|
100 |
+
if (!touch($this->getLockfilePath($orderId)))
|
101 |
+
{
|
102 |
+
$this->log('Failed to create lockfile ' . $path, __METHOD__, __LINE__);
|
103 |
+
return false;
|
104 |
+
}
|
105 |
+
$this->log('Created lockfile ' . $path, __METHOD__, __LINE__);
|
106 |
+
return true;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Releases lock for order, i.e deletes
|
111 |
+
* lock file from var/locks folder
|
112 |
+
*
|
113 |
+
* @param string $orderId
|
114 |
+
*/
|
115 |
+
public function releaseLock($orderId)
|
116 |
+
{
|
117 |
+
$path = $this->getLockfilePath($orderId);
|
118 |
+
if (!unlink($path))
|
119 |
+
{
|
120 |
+
$this->log('Failed to delete lockfile ' . $path, __METHOD__, __LINE__);
|
121 |
+
return false;
|
122 |
+
}
|
123 |
+
$this->log('Deleted lockfile ' . $path, __METHOD__, __LINE__);
|
124 |
+
return true;
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Abstract method to be overloaded by implementing classes.
|
129 |
+
* This is used to verify response from bank
|
130 |
+
*
|
131 |
+
* @return int
|
132 |
+
*/
|
133 |
+
public abstract function verify(array $params = array());
|
134 |
+
|
135 |
+
protected function log($t, $m, $l)
|
136 |
+
{
|
137 |
+
Mage::log(sprintf('%s(%s)@%s: %s', $m, $l, $_SERVER['REMOTE_ADDR'], $t), null, $this->logFile);
|
138 |
+
}
|
139 |
+
|
140 |
+
}
|
app/code/community/Multon/Payment/Model/IPizza.php
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
abstract class Multon_Payment_Model_IPizza extends Multon_Payment_Model_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Verifies response sent by bank by checking validity
|
8 |
+
* of banks signature using corresponding public key to bank's private key
|
9 |
+
*
|
10 |
+
* @param array $params Response sent by a bank
|
11 |
+
*
|
12 |
+
* @return int
|
13 |
+
*/
|
14 |
+
public function verify(array $params = array())
|
15 |
+
{
|
16 |
+
if (!isset($params['VK_SERVICE']))
|
17 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
18 |
+
|
19 |
+
$test_success = false;
|
20 |
+
|
21 |
+
switch ($params['VK_SERVICE']) {
|
22 |
+
case '1111': // success
|
23 |
+
$test_success = true;
|
24 |
+
break;
|
25 |
+
case '1911': // fail
|
26 |
+
break;
|
27 |
+
default:
|
28 |
+
Mage::log(sprintf('%s (%s)@%s: IPizza return service is not 1111/1911: %s', __METHOD__, __LINE__,
|
29 |
+
$_SERVER['REMOTE_ADDR'], $params['VK_SERVICE']), null, $this->logFile);
|
30 |
+
Mage::getSingleton('checkout/session')->addError('Wrong service code: ' . $params['VK_SERVICE']);
|
31 |
+
|
32 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
33 |
+
}
|
34 |
+
|
35 |
+
$vkSndId = Mage::getStoreConfig('payment/' . $this->_code . '/vk_snd_id');
|
36 |
+
|
37 |
+
if (!isset($params['VK_REC_ID']) || $params['VK_REC_ID'] != $vkSndId) {
|
38 |
+
Mage::log(sprintf('%s (%s)@%s: Wrong merchant ID used for return: %s vs %s', __METHOD__, __LINE__,
|
39 |
+
$_SERVER['REMOTE_ADDR'], $params['VK_REC_ID'], $vkSndId
|
40 |
+
), null, $this->logFile
|
41 |
+
);
|
42 |
+
Mage::getSingleton('checkout/session')->addError('Internal error.');
|
43 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
44 |
+
}
|
45 |
+
|
46 |
+
$result = $this->verifyData($this->prepareData($params, $test_success), $params['VK_MAC']);
|
47 |
+
|
48 |
+
switch ($result) {
|
49 |
+
case 1: // ssl verify successful
|
50 |
+
if ($test_success)
|
51 |
+
return Multon_Payment_Helper_Data::_VERIFY_SUCCESS;
|
52 |
+
else
|
53 |
+
return Multon_Payment_Helper_Data::_VERIFY_CANCEL;
|
54 |
+
|
55 |
+
case 0: // ssl verify failed
|
56 |
+
Mage::log(sprintf(
|
57 |
+
'%s (%s)@%s: Verification of signature failed for %s', __METHOD__, __LINE__,
|
58 |
+
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID']
|
59 |
+
), null, $this->logFile);
|
60 |
+
Mage::getSingleton('checkout/session')->addError('Signature verification failed.');
|
61 |
+
|
62 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
63 |
+
|
64 |
+
case -1: // ssl verify error
|
65 |
+
default:
|
66 |
+
$error = '';
|
67 |
+
while ($msg = openssl_error_string())
|
68 |
+
$error .= $msg . "\n";
|
69 |
+
Mage::log(sprintf(
|
70 |
+
'%s (%s)@%s: Verification of signature error for %s : %s', __METHOD__, __LINE__,
|
71 |
+
$_SERVER['REMOTE_ADDR'], $params['VK_SND_ID'], $error
|
72 |
+
), null, $this->logFile);
|
73 |
+
Mage::getSingleton('checkout/session')->addError('Signature verification error: ' . $error);
|
74 |
+
|
75 |
+
return Multon_Payment_Helper_Data::_VERIFY_CORRUPT;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Prepare data package for signature verification
|
81 |
+
*
|
82 |
+
* @param array $params
|
83 |
+
* @param boolean $test_success
|
84 |
+
* @return string
|
85 |
+
*/
|
86 |
+
protected function prepareData(array $params, $test_success)
|
87 |
+
{
|
88 |
+
$data = sprintf('%03d%s', mb_strlen($params['VK_SERVICE'],'UTF-8'), $params['VK_SERVICE'])
|
89 |
+
. sprintf('%03d%s', mb_strlen($params['VK_VERSION'],'UTF-8'), $params['VK_VERSION'])
|
90 |
+
. sprintf('%03d%s', mb_strlen($params['VK_SND_ID'],'UTF-8'), $params['VK_SND_ID'])
|
91 |
+
. sprintf('%03d%s', mb_strlen($params['VK_REC_ID'],'UTF-8'), $params['VK_REC_ID'])
|
92 |
+
. sprintf('%03d%s', mb_strlen($params['VK_STAMP'],'UTF-8'), $params['VK_STAMP']);
|
93 |
+
|
94 |
+
if ($test_success) {
|
95 |
+
$data .= sprintf('%03d%s', mb_strlen($params['VK_T_NO'],'UTF-8'), $params['VK_T_NO'])
|
96 |
+
. sprintf('%03d%s', mb_strlen($params['VK_AMOUNT'],'UTF-8'), $params['VK_AMOUNT'])
|
97 |
+
. sprintf('%03d%s', mb_strlen($params['VK_CURR'],'UTF-8'), $params['VK_CURR'])
|
98 |
+
. sprintf('%03d%s', mb_strlen($params['VK_REC_ACC'],'UTF-8'), $params['VK_REC_ACC']) // SEB LV & SEB LT just VK_ACC ?
|
99 |
+
. sprintf('%03d%s', mb_strlen($params['VK_REC_NAME'],'UTF-8'), $params['VK_REC_NAME'])
|
100 |
+
. sprintf('%03d%s', mb_strlen($params['VK_SND_ACC'],'UTF-8'), $params['VK_SND_ACC'])
|
101 |
+
. sprintf('%03d%s', mb_strlen($params['VK_SND_NAME'],'UTF-8'), $params['VK_SND_NAME'])
|
102 |
+
. sprintf('%03d%s', mb_strlen($params['VK_REF'],'UTF-8'), $params['VK_REF'])
|
103 |
+
. sprintf('%03d%s', mb_strlen($params['VK_MSG'],'UTF-8'), $params['VK_MSG'])
|
104 |
+
. sprintf('%03d%s', mb_strlen($params['VK_T_DATETIME'],'UTF-8'), $params['VK_T_DATETIME']);
|
105 |
+
}
|
106 |
+
else {
|
107 |
+
$data .= sprintf('%03d%s', mb_strlen($params['VK_REF'],'UTF-8'), $params['VK_REF'])
|
108 |
+
. sprintf('%03d%s', mb_strlen($params['VK_MSG'],'UTF-8'), $params['VK_MSG']);
|
109 |
+
}
|
110 |
+
|
111 |
+
return $data;
|
112 |
+
}
|
113 |
+
|
114 |
+
protected function verifyData($data, $mac)
|
115 |
+
{
|
116 |
+
$key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
|
117 |
+
$result = openssl_verify($data, base64_decode($mac), $key);
|
118 |
+
openssl_free_key($key);
|
119 |
+
|
120 |
+
return $result;
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Checks if private and public keys exist
|
125 |
+
* If they don't then method is not enabled
|
126 |
+
*
|
127 |
+
* @return Multon_Payment_Model_Abstract
|
128 |
+
*/
|
129 |
+
public function validate()
|
130 |
+
{
|
131 |
+
$key = openssl_pkey_get_public(Mage::getStoreConfig('payment/' . $this->_code . '/bank_certificate'));
|
132 |
+
if ($key === false) {
|
133 |
+
Mage::log(sprintf('%s (%s): Public key not found for %s', __METHOD__, __LINE__, $this->_code), null, $this->logFile);
|
134 |
+
Mage::throwException($this->_getHelper()->__('Public key for ' . $this->_code . ' not set'));
|
135 |
+
}
|
136 |
+
return parent::validate();
|
137 |
+
}
|
138 |
+
|
139 |
+
}
|
app/code/community/Multon/Payment/Model/Missing/Payment.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Payment_Model_Missing_Payment extends Mage_Payment_Model_Method_Abstract
|
4 |
+
{
|
5 |
+
private $name = 'NO_PAY';
|
6 |
+
|
7 |
+
function __construct($name)
|
8 |
+
{
|
9 |
+
$this->name = $name;
|
10 |
+
}
|
11 |
+
|
12 |
+
function isGateway()
|
13 |
+
{
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
|
17 |
+
function getCode()
|
18 |
+
{
|
19 |
+
return $this->name;
|
20 |
+
}
|
21 |
+
|
22 |
+
function getTitle()
|
23 |
+
{
|
24 |
+
return 'Unavailable method: ' . $this->name;
|
25 |
+
}
|
26 |
+
|
27 |
+
}
|
app/code/community/Multon/Payment/Model/Order/Payment.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Multon_Payment_Model_Order_Payment extends Mage_Sales_Model_Order_Payment
|
4 |
+
{
|
5 |
+
function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
}
|
9 |
+
/**
|
10 |
+
* Retrieve payment method model object
|
11 |
+
* Don't die on missing payment method
|
12 |
+
*
|
13 |
+
* @return Mage_Payment_Model_Method_Abstract
|
14 |
+
*/
|
15 |
+
public function getMethodInstance()
|
16 |
+
{
|
17 |
+
try {
|
18 |
+
return parent::getMethodInstance();
|
19 |
+
}
|
20 |
+
catch (Mage_Core_Exception $e) {
|
21 |
+
return new Multon_Payment_Model_Missing_Payment($this->getMethod());
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
}
|
app/code/community/Multon/Payment/etc/config.xml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Multon_Payment>
|
5 |
+
<version>2.3.3</version>
|
6 |
+
</Multon_Payment>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<models>
|
10 |
+
<multonpay>
|
11 |
+
<class>Multon_Payment_Model</class>
|
12 |
+
</multonpay>
|
13 |
+
<sales>
|
14 |
+
<rewrite>
|
15 |
+
<order_payment>Multon_Payment_Model_Order_Payment</order_payment>
|
16 |
+
</rewrite>
|
17 |
+
</sales>
|
18 |
+
</models>
|
19 |
+
<helpers>
|
20 |
+
<multonpay>
|
21 |
+
<class>Multon_Payment_Helper</class>
|
22 |
+
</multonpay>
|
23 |
+
</helpers>
|
24 |
+
<blocks>
|
25 |
+
<multonpay>
|
26 |
+
<class>Multon_Payment_Block</class>
|
27 |
+
</multonpay>
|
28 |
+
</blocks>
|
29 |
+
</global>
|
30 |
+
<adminhtml>
|
31 |
+
<layout>
|
32 |
+
<updates>
|
33 |
+
<Multon_Payment>
|
34 |
+
<file>multon/payment.xml</file>
|
35 |
+
</Multon_Payment>
|
36 |
+
</updates>
|
37 |
+
</layout>
|
38 |
+
</adminhtml>
|
39 |
+
<frontend>
|
40 |
+
<layout>
|
41 |
+
<updates>
|
42 |
+
<Multon_Payment>
|
43 |
+
<file>multon/payment.xml</file>
|
44 |
+
</Multon_Payment>
|
45 |
+
</updates>
|
46 |
+
</layout>
|
47 |
+
</frontend>
|
48 |
+
</config>
|
app/design/adminhtml/default/default/layout/eepohs/estpay.xml
DELETED
@@ -1,53 +0,0 @@
|
|
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) 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 1.4.0
|
39 |
-
* @author Eepohs OÜ
|
40 |
-
* @copyright 2012 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
DELETED
@@ -1,82 +0,0 @@
|
|
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) 2012, 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 1.4.0
|
38 |
-
* @author Eepohs OÜ
|
39 |
-
* @copyright 2012 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 |
-
var EEPOHS_SKIN_URL = '<?php echo Mage::getDesign()->getSkinUrl('',array('_area'=>'adminhtml', '_package'=>'default', '_theme'=>'default'));?>';
|
61 |
-
function initEepohsPayment() {
|
62 |
-
var estpay = new EepohsPayment();
|
63 |
-
estpay.addCss( 'entry-edit-head' ,['payment_eepohs_seb-head', 'payment_eepohs_nordea-head', 'payment_eepohs_swedbank-head', 'payment_eepohs_danske-head', 'payment_eepohs_krediidipank-head', 'payment_eepohs_estcard-head', 'payment_eepohs_lhv-head']);
|
64 |
-
estpay.addLogoTypes(['payment_eepohs_seb-head', 'payment_eepohs_nordea-head', 'payment_eepohs_swedbank-head', 'payment_eepohs_danske-head', 'payment_eepohs_krediidipank-head', 'payment_eepohs_estcard-head', 'payment_eepohs_lhv-head']);
|
65 |
-
estpay.addSupportInformation(['payment_eepohs_seb', 'payment_eepohs_swedbank', 'payment_eepohs_nordea', 'payment_eepohs_krediidipank', 'payment_eepohs_danske', 'payment_eepohs_estcard', 'payment_eepohs_lhv']);
|
66 |
-
estpay.setModuleVersion('<?php echo $this->getModuleVersion() ?>');
|
67 |
-
}
|
68 |
-
//]]>
|
69 |
-
</script>
|
70 |
-
<div id="supportInfoTemplate" class="no-display support-info">
|
71 |
-
<hr class="separator"/>
|
72 |
-
<?php echo $this->__('
|
73 |
-
<h3>Eepohs customer support</h3>
|
74 |
-
Please contact Eepohs Customer Support if you have questions or problems: <br />
|
75 |
-
E-mail: <a href="mailto:support@eepohs.com">support@eepohs.com</a><br />
|
76 |
-
Phone: +372 6041104 (Mon-Fri 9.00-17.00 GMT+2)<br /><br />
|
77 |
-
Your module name is: Eepohs_Estpay<br />
|
78 |
-
Your module version is: ' . $this->getModuleVersion()); ?>
|
79 |
-
<div>
|
80 |
-
<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>
|
81 |
-
</div>
|
82 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/{eepohs → multon}/estpay.xml
RENAMED
@@ -1,62 +1,8 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* estpay.xml
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Estpay frontend layout updates
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*
|
54 |
-
*/
|
55 |
-
-->
|
56 |
<layout version="0.1.0">
|
57 |
<estpay_seb_redirect>
|
58 |
<reference name="content">
|
59 |
-
<block type="estpay/seb" name="estpay_seb" template="
|
60 |
<block type="cms/block" name="estpay_seb_description">
|
61 |
<action method="setBlockId">
|
62 |
<block_id>estpay_seb_description</block_id>
|
@@ -67,7 +13,7 @@
|
|
67 |
</estpay_seb_redirect>
|
68 |
<estpay_nordea_redirect>
|
69 |
<reference name="content">
|
70 |
-
<block type="estpay/nordea" name="estpay_nordea" template="
|
71 |
<block type="cms/block" name="estpay_nordea_description">
|
72 |
<action method="setBlockId">
|
73 |
<block_id>estpay_nordea_description</block_id>
|
@@ -78,7 +24,7 @@
|
|
78 |
</estpay_nordea_redirect>
|
79 |
<estpay_swedbank_redirect>
|
80 |
<reference name="content">
|
81 |
-
<block type="estpay/swedbank" name="estpay_swedbank" template="
|
82 |
<block type="cms/block" name="estpay_swedbank_description">
|
83 |
<action method="setBlockId">
|
84 |
<block_id>estpay_swedbank_description</block_id>
|
@@ -89,7 +35,7 @@
|
|
89 |
</estpay_swedbank_redirect>
|
90 |
<estpay_danske_redirect>
|
91 |
<reference name="content">
|
92 |
-
<block type="estpay/danske" name="estpay_danske" template="
|
93 |
<block type="cms/block" name="estpay_danske_description">
|
94 |
<action method="setBlockId">
|
95 |
<block_id>estpay_danske_description</block_id>
|
@@ -100,7 +46,7 @@
|
|
100 |
</estpay_danske_redirect>
|
101 |
<estpay_krediidipank_redirect>
|
102 |
<reference name="content">
|
103 |
-
<block type="estpay/krediidipank" name="estpay_krediidipank" template="
|
104 |
<block type="cms/block" name="estpay_krediidipank_description">
|
105 |
<action method="setBlockId">
|
106 |
<block_id>estpay_krediidipank_description</block_id>
|
@@ -111,7 +57,7 @@
|
|
111 |
</estpay_krediidipank_redirect>
|
112 |
<estpay_estcard_redirect>
|
113 |
<reference name="content">
|
114 |
-
<block type="estpay/estcard" name="estpay_estcard" template="
|
115 |
<block type="cms/block" name="estpay_estcard_description">
|
116 |
<action method="setBlockId">
|
117 |
<block_id>estpay_estcard_description</block_id>
|
@@ -122,7 +68,7 @@
|
|
122 |
</estpay_estcard_redirect>
|
123 |
<estpay_lhv_redirect>
|
124 |
<reference name="content">
|
125 |
-
<block type="estpay/lhv" name="estpay_lhv" template="
|
126 |
<block type="cms/block" name="estpay_lhv_description">
|
127 |
<action method="setBlockId">
|
128 |
<block_id>estpay_lhv_description</block_id>
|
@@ -133,7 +79,7 @@
|
|
133 |
</estpay_lhv_redirect>
|
134 |
<default>
|
135 |
<reference name="footer">
|
136 |
-
<block type="estpay/info" name="estpay_info" template="
|
137 |
</reference>
|
138 |
</default>
|
139 |
</layout>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<layout version="0.1.0">
|
3 |
<estpay_seb_redirect>
|
4 |
<reference name="content">
|
5 |
+
<block type="estpay/seb" name="estpay_seb" template="multon/estpay/seb.phtml">
|
6 |
<block type="cms/block" name="estpay_seb_description">
|
7 |
<action method="setBlockId">
|
8 |
<block_id>estpay_seb_description</block_id>
|
13 |
</estpay_seb_redirect>
|
14 |
<estpay_nordea_redirect>
|
15 |
<reference name="content">
|
16 |
+
<block type="estpay/nordea" name="estpay_nordea" template="multon/estpay/nordea.phtml">
|
17 |
<block type="cms/block" name="estpay_nordea_description">
|
18 |
<action method="setBlockId">
|
19 |
<block_id>estpay_nordea_description</block_id>
|
24 |
</estpay_nordea_redirect>
|
25 |
<estpay_swedbank_redirect>
|
26 |
<reference name="content">
|
27 |
+
<block type="estpay/swedbank" name="estpay_swedbank" template="multon/estpay/swedbank.phtml">
|
28 |
<block type="cms/block" name="estpay_swedbank_description">
|
29 |
<action method="setBlockId">
|
30 |
<block_id>estpay_swedbank_description</block_id>
|
35 |
</estpay_swedbank_redirect>
|
36 |
<estpay_danske_redirect>
|
37 |
<reference name="content">
|
38 |
+
<block type="estpay/danske" name="estpay_danske" template="multon/estpay/danske.phtml">
|
39 |
<block type="cms/block" name="estpay_danske_description">
|
40 |
<action method="setBlockId">
|
41 |
<block_id>estpay_danske_description</block_id>
|
46 |
</estpay_danske_redirect>
|
47 |
<estpay_krediidipank_redirect>
|
48 |
<reference name="content">
|
49 |
+
<block type="estpay/krediidipank" name="estpay_krediidipank" template="multon/estpay/krediidipank.phtml">
|
50 |
<block type="cms/block" name="estpay_krediidipank_description">
|
51 |
<action method="setBlockId">
|
52 |
<block_id>estpay_krediidipank_description</block_id>
|
57 |
</estpay_krediidipank_redirect>
|
58 |
<estpay_estcard_redirect>
|
59 |
<reference name="content">
|
60 |
+
<block type="estpay/estcard" name="estpay_estcard" template="multon/estpay/estcard.phtml">
|
61 |
<block type="cms/block" name="estpay_estcard_description">
|
62 |
<action method="setBlockId">
|
63 |
<block_id>estpay_estcard_description</block_id>
|
68 |
</estpay_estcard_redirect>
|
69 |
<estpay_lhv_redirect>
|
70 |
<reference name="content">
|
71 |
+
<block type="estpay/lhv" name="estpay_lhv" template="multon/estpay/lhv.phtml">
|
72 |
<block type="cms/block" name="estpay_lhv_description">
|
73 |
<action method="setBlockId">
|
74 |
<block_id>estpay_lhv_description</block_id>
|
79 |
</estpay_lhv_redirect>
|
80 |
<default>
|
81 |
<reference name="footer">
|
82 |
+
<block type="estpay/info" name="estpay_info" template="multon/estpay/info.phtml" />
|
83 |
</reference>
|
84 |
</default>
|
85 |
</layout>
|
app/design/frontend/base/default/template/eepohs/estpay/danske.phtml
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* danske.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Danske payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_danske">
|
55 |
-
<?php echo $this->getChildHtml('estpay_danske_description') ?>
|
56 |
-
<form id="GatewayForm" name="danske" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo danske_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
60 |
-
<?php endforeach; ?>
|
61 |
-
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
62 |
-
</form>
|
63 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
64 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/estcard.phtml
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* estcard.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Estcard payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_estcard">
|
55 |
-
<?php echo $this->getChildHtml('estpay_estcard_description') ?>
|
56 |
-
<form id="GatewayForm" name="estcard" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo estcard_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
60 |
-
<?php endforeach; ?>
|
61 |
-
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
62 |
-
</form>
|
63 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
64 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/info.phtml
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* info.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
/**
|
15 |
-
* Info block for Estpay enabled method logos
|
16 |
-
*
|
17 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
18 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
19 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
20 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
21 |
-
*
|
22 |
-
* Copyright (c) 2012, Eepohs OÜ
|
23 |
-
* All rights reserved.
|
24 |
-
* Redistribution and use in source and binary forms, with or without
|
25 |
-
* modification, are permitted provided that the following conditions are met:
|
26 |
-
* Redistributions of source code must retain the above copyright notice, this
|
27 |
-
* list of conditions and the following disclaimer.
|
28 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
29 |
-
* this list of conditions and the following disclaimer in the documentation
|
30 |
-
* and/or other materials provided with the distribution.
|
31 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
32 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
33 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
34 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
35 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
36 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
37 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
38 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
39 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
40 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
41 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
42 |
-
*
|
43 |
-
* @category Community
|
44 |
-
* @package Eepohs
|
45 |
-
* @subpackage Estpay
|
46 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
47 |
-
* @copyright 2012 Eepohs OÜ
|
48 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
49 |
-
* @version Release 1.4.0
|
50 |
-
* @link http://eepohs.com/
|
51 |
-
*
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<?php $gateways = $this->getEnabledGateways() ?>
|
55 |
-
<?php if ( is_array($gateways) && sizeof($gateways) > 0 ): ?>
|
56 |
-
<ul class="estpay-logo-list">
|
57 |
-
<?php foreach ( $gateways as $gateway ): ?>
|
58 |
-
<li class="item">
|
59 |
-
<img src="<?php echo $gateway['logo'] ?>" alt="<?php echo $gateway['title'] ?>" title="<?php echo $gateway['title'] ?>"/>
|
60 |
-
</li>
|
61 |
-
<?php endforeach; ?>
|
62 |
-
</ul>
|
63 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/krediidipank.phtml
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* krediidipank.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Krediidipank payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_krediidipank">
|
55 |
-
<?php echo $this->getChildHtml('estpay_danske_description') ?>
|
56 |
-
<form id="GatewayForm" name="danske" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo krediidipank_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
60 |
-
<?php endforeach; ?>
|
61 |
-
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
62 |
-
</form>
|
63 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
64 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/lhv.phtml
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* lhv.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* LHV payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_lhv">
|
55 |
-
<?php echo $this->getChildHtml('estpay_lhv_description') ?>
|
56 |
-
<form id="GatewayForm" name="lhv" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo lhv_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
|
60 |
-
<?php endforeach; ?>
|
61 |
-
</form>
|
62 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
63 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/nordea.phtml
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* nordea.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Nordea payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_nordea">
|
55 |
-
<?php echo $this->getChildHtml('estpay_nordea_description') ?>
|
56 |
-
<form id="GatewayForm" name="nordea" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo nordea_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
60 |
-
<?php endforeach; ?>
|
61 |
-
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
62 |
-
</form>
|
63 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
64 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/seb.phtml
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* seb.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* SEB payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_seb">
|
55 |
-
<?php echo $this->getChildHtml('estpay_seb_description') ?>
|
56 |
-
<form id="GatewayForm" name="seb" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo seb_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
60 |
-
<?php endforeach; ?>
|
61 |
-
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
62 |
-
</form>
|
63 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
64 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/eepohs/estpay/swedbank.phtml
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* swedbank.phtml
|
4 |
-
*
|
5 |
-
* PHP version 5
|
6 |
-
*
|
7 |
-
* @category Magento
|
8 |
-
* @package Eepohs
|
9 |
-
* @subpackage Estpay
|
10 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
11 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
12 |
-
* @link http://eepohs.com/
|
13 |
-
*/
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Swedbank payment form block
|
17 |
-
*
|
18 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
19 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
20 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
21 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
22 |
-
*
|
23 |
-
* Copyright (c) 2012, Eepohs OÜ
|
24 |
-
* All rights reserved.
|
25 |
-
* Redistribution and use in source and binary forms, with or without
|
26 |
-
* modification, are permitted provided that the following conditions are met:
|
27 |
-
* Redistributions of source code must retain the above copyright notice, this
|
28 |
-
* list of conditions and the following disclaimer.
|
29 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
-
* this list of conditions and the following disclaimer in the documentation
|
31 |
-
* and/or other materials provided with the distribution.
|
32 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
33 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
34 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
35 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
36 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
37 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
38 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
39 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
40 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
41 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
42 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
-
*
|
44 |
-
* @category Community
|
45 |
-
* @package Eepohs
|
46 |
-
* @subpackage Estpay
|
47 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
48 |
-
* @copyright 2012 Eepohs OÜ
|
49 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
50 |
-
* @version Release: 1.4.0
|
51 |
-
* @link http://eepohs.com/
|
52 |
-
*/
|
53 |
-
?>
|
54 |
-
<div class="payment_estpay_container payment_method_swedbank">
|
55 |
-
<?php echo $this->getChildHtml('estpay_swedbank_description') ?>
|
56 |
-
<form id="GatewayForm" name="swedbank" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
57 |
-
<input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo swedbank_logo"/>
|
58 |
-
<?php foreach ($this->getFields() as $key => $value): ?>
|
59 |
-
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
|
60 |
-
<?php endforeach; ?>
|
61 |
-
</form>
|
62 |
-
<?php echo $this->getQuickRedirectScript(); ?>
|
63 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/multon/estpay/danske.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_danske">
|
2 |
+
<?php echo $this->getChildHtml('estpay_danske_description') ?>
|
3 |
+
<form id="GatewayForm" name="danske" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo danske_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
7 |
+
<?php } ?>
|
8 |
+
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
9 |
+
</form>
|
10 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
11 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/estcard.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_estcard">
|
2 |
+
<?php echo $this->getChildHtml('estpay_estcard_description') ?>
|
3 |
+
<form id="GatewayForm" name="estcard" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo estcard_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
7 |
+
<?php } ?>
|
8 |
+
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
9 |
+
</form>
|
10 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
11 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/info.phtml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$gateways = $this->getEnabledGateways();
|
3 |
+
if (is_array($gateways) && sizeof($gateways) > 0)
|
4 |
+
{
|
5 |
+
?>
|
6 |
+
<ul class="estpay-logo-list">
|
7 |
+
<?php
|
8 |
+
foreach ($gateways as $gateway)
|
9 |
+
{
|
10 |
+
?>
|
11 |
+
<li class="item">
|
12 |
+
<img src="<?php echo $gateway['logo'] ?>" alt="<?php echo $gateway['title'] ?>" title="<?php echo $gateway['title'] ?>"/>
|
13 |
+
</li>
|
14 |
+
<?php } ?>
|
15 |
+
</ul>
|
16 |
+
<?php } ?>
|
app/design/frontend/base/default/template/multon/estpay/krediidipank.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_krediidipank">
|
2 |
+
<?php echo $this->getChildHtml('estpay_danske_description') ?>
|
3 |
+
<form id="GatewayForm" name="danske" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo krediidipank_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
7 |
+
<?php } ?>
|
8 |
+
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
9 |
+
</form>
|
10 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
11 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/lhv.phtml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_lhv">
|
2 |
+
<?php echo $this->getChildHtml('estpay_lhv_description') ?>
|
3 |
+
<form id="GatewayForm" name="lhv" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo lhv_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
|
7 |
+
<?php } ?>
|
8 |
+
</form>
|
9 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
10 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/nordea.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_nordea">
|
2 |
+
<?php echo $this->getChildHtml('estpay_nordea_description') ?>
|
3 |
+
<form id="GatewayForm" name="nordea" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo nordea_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
7 |
+
<?php } ?>
|
8 |
+
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
9 |
+
</form>
|
10 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
11 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/seb.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_seb">
|
2 |
+
<?php echo $this->getChildHtml('estpay_seb_description') ?>
|
3 |
+
<form id="GatewayForm" name="seb" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<img src="<?php echo $this->getMethodLogoUrl(); ?>" class="payment-gateway-logo seb_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>" />
|
7 |
+
<?php } ?>
|
8 |
+
<button class="button" onclick="this.form.submit();"><span><span><?php echo $this->__('Start payment') ?></span></span></button>
|
9 |
+
</form>
|
10 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
11 |
+
</div>
|
app/design/frontend/base/default/template/multon/estpay/swedbank.phtml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="payment_estpay_container payment_method_swedbank">
|
2 |
+
<?php echo $this->getChildHtml('estpay_swedbank_description') ?>
|
3 |
+
<form id="GatewayForm" name="swedbank" action="<?php echo $this->getGatewayUrl() ?>" method="POST" target="_top">
|
4 |
+
<input type="image" src="<?php echo $this->getMethodLogoUrl(); ?>" onclick="this.form.submit()" class="payment-gateway-logo swedbank_logo"/>
|
5 |
+
<?php foreach ($this->getFields() as $key => $value) { ?>
|
6 |
+
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>"/>
|
7 |
+
<?php } ?>
|
8 |
+
</form>
|
9 |
+
<?php echo $this->getQuickRedirectScript(); ?>
|
10 |
+
</div>
|
app/etc/modules/Eepohs_Estpay.xml
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Eepohs_Estpay.xml
|
5 |
-
*
|
6 |
-
* PHP version 5
|
7 |
-
*
|
8 |
-
* @category Magento
|
9 |
-
* @package Eepohs
|
10 |
-
* @subpackage Estpay
|
11 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
12 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
13 |
-
* @link http://eepohs.com/
|
14 |
-
*/
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Eepohs_Estpay extension master configuration file
|
18 |
-
*
|
19 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
20 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
21 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
22 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
23 |
-
*
|
24 |
-
* Copyright (c) 2012, Eepohs OÜ
|
25 |
-
* All rights reserved.
|
26 |
-
* Redistribution and use in source and binary forms, with or without
|
27 |
-
* modification, are permitted provided that the following conditions are met:
|
28 |
-
* Redistributions of source code must retain the above copyright notice, this
|
29 |
-
* list of conditions and the following disclaimer.
|
30 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
31 |
-
* this list of conditions and the following disclaimer in the documentation
|
32 |
-
* and/or other materials provided with the distribution.
|
33 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
34 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
35 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
36 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
37 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
38 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
39 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
40 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
41 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
42 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
43 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
44 |
-
*
|
45 |
-
* @category Community
|
46 |
-
* @package Eepohs
|
47 |
-
* @subpackage Estpay
|
48 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
49 |
-
* @copyright 2012 Eepohs OÜ
|
50 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
51 |
-
* @version Release: 1.4.0
|
52 |
-
* @link http://eepohs.com/
|
53 |
-
*/
|
54 |
-
-->
|
55 |
-
<config>
|
56 |
-
<modules>
|
57 |
-
<Eepohs_Estpay>
|
58 |
-
<active>true</active>
|
59 |
-
<codePool>community</codePool>
|
60 |
-
<depends>
|
61 |
-
<Mage_Payment />
|
62 |
-
</depends>
|
63 |
-
</Eepohs_Estpay>
|
64 |
-
</modules>
|
65 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Multon_Core.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Multon_Core>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Multon_Core>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/etc/modules/Multon_Estpay.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Multon_Estpay>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<depends>
|
8 |
+
<Multon_Payment />
|
9 |
+
</depends>
|
10 |
+
</Multon_Estpay>
|
11 |
+
</modules>
|
12 |
+
</config>
|
app/etc/modules/Multon_Payment.xml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Multon_Payment>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<depends>
|
8 |
+
<Mage_Payment />
|
9 |
+
<Multon_Core />
|
10 |
+
</depends>
|
11 |
+
</Multon_Payment>
|
12 |
+
</modules>
|
13 |
+
</config>
|
app/locale/en_US/Eepohs_Estpay.csv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
"Invoice number","Invoice number"
|
2 |
-
"Start payment","Start payment"
|
3 |
-
"Order number","Order number"
|
|
|
|
|
|
app/locale/et_EE/Eepohs_Estpay.csv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
"Invoice number","Arve number"
|
2 |
-
"Start payment","Alusta maksmist"
|
3 |
-
"Order number","Tellimuse number"
|
|
|
|
|
|
js/eepohs/estpay.js
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* estpay.js
|
3 |
-
*
|
4 |
-
* PHP version 5
|
5 |
-
*
|
6 |
-
* @category Magento
|
7 |
-
* @package Eepohs
|
8 |
-
* @subpackage Estpay
|
9 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
10 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
11 |
-
* @link http://eepohs.com/
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Estpay custom javascript for backend
|
16 |
-
*
|
17 |
-
* PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY
|
18 |
-
* BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING
|
19 |
-
* TO BE BOUND BY THE TERMS OF THIS LICENSE.
|
20 |
-
* IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.
|
21 |
-
*
|
22 |
-
* Copyright (c) 2012, Eepohs OÜ
|
23 |
-
* All rights reserved.
|
24 |
-
* Redistribution and use in source and binary forms, with or without
|
25 |
-
* modification, are permitted provided that the following conditions are met:
|
26 |
-
* Redistributions of source code must retain the above copyright notice, this
|
27 |
-
* list of conditions and the following disclaimer.
|
28 |
-
* Redistributions in binary form must reproduce the above copyright notice,
|
29 |
-
* this list of conditions and the following disclaimer in the documentation
|
30 |
-
* and/or other materials provided with the distribution.
|
31 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
32 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
33 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
34 |
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
35 |
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
36 |
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
37 |
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
38 |
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
39 |
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
40 |
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
41 |
-
* THE POSSIBILITY OF SUCH DAMAGE.
|
42 |
-
*
|
43 |
-
* @category Community
|
44 |
-
* @package Eepohs
|
45 |
-
* @subpackage Estpay
|
46 |
-
* @author Eepohs OÜ <info@eepohs.com>
|
47 |
-
* @copyright 2012 Eepohs OÜ
|
48 |
-
* @license http://opensource.org/licenses/bsd-license.php BSDL
|
49 |
-
* @version Release: 1.4.0
|
50 |
-
* @link http://eepohs.com/
|
51 |
-
*/
|
52 |
-
Event.observe(window, 'load', function() {
|
53 |
-
initEepohsPayment();
|
54 |
-
});
|
55 |
-
|
56 |
-
EepohsPayment = Class.create();
|
57 |
-
EepohsPayment.prototype = {
|
58 |
-
initialize: function(){
|
59 |
-
|
60 |
-
},
|
61 |
-
/**
|
62 |
-
* @elements array of element id-s / payment methods
|
63 |
-
*/
|
64 |
-
addLogoTypes: function(elementIds){
|
65 |
-
$A(elementIds).each(
|
66 |
-
function(item){
|
67 |
-
var img = document.createElement('img');
|
68 |
-
Element.extend(img);
|
69 |
-
img.src = EEPOHS_SKIN_URL + 'images/eepohs/estpay/eepohs_logo_small.png';
|
70 |
-
img.addClassName('eepohs-logo title-logo');
|
71 |
-
img.writeAttribute('alt', 'Eepohs');
|
72 |
-
img.writeAttribute('title', 'Eepohs');
|
73 |
-
$(item).appendChild(img);
|
74 |
-
}
|
75 |
-
);
|
76 |
-
},
|
77 |
-
addCss: function(elementClass, classPrefixes){
|
78 |
-
$A(classPrefixes).each(function(item){
|
79 |
-
$(item).up('div.'+elementClass).addClassName('eepohs-payment-method-head');
|
80 |
-
});
|
81 |
-
},
|
82 |
-
/**
|
83 |
-
* Adds blocks with support information
|
84 |
-
*/
|
85 |
-
addSupportInformation: function(elementIds){
|
86 |
-
var template = $('supportInfoTemplate');
|
87 |
-
$A(elementIds).each(
|
88 |
-
function(item){
|
89 |
-
$(item).appendChild(template.clone(true).removeClassName('no-display'));
|
90 |
-
}
|
91 |
-
);
|
92 |
-
|
93 |
-
},
|
94 |
-
/**
|
95 |
-
* Sets current module version
|
96 |
-
*/
|
97 |
-
setModuleVersion: function(version){
|
98 |
-
this.version = version;
|
99 |
-
}
|
100 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,25 +1,42 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>estpay</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
<notes>
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>estpay</name>
|
4 |
+
<version>2.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Multon Estonian payment methods</summary>
|
10 |
+
<description>Multon Estonian payment methods:
|
11 |
+
- Danske
|
12 |
+
- Estcard
|
13 |
+
- Krediidipank
|
14 |
+
- LHV
|
15 |
+
- Nordea
|
16 |
+
- SEB
|
17 |
+
- Swedbank</description>
|
18 |
+
<notes>2.1.1
|
19 |
+
add module version info to system config
|
20 |
+

|
21 |
+
2.1.0
|
22 |
+
Multon_Estpay
|
23 |
+

|
24 |
+
2.0.6
|
25 |
+
** Bug
|
26 |
+
* [ES-3] - EstCardiga makstes on pangast tagasi tulles 505 viga
|
27 |
+

|
28 |
+
2.0.2
|
29 |
+
First stable release
|
30 |
+

|
31 |
+
2.0.1
|
32 |
+

|
33 |
+
Eepohs_Estpay
|
34 |
+

|
35 |
+
FIX: get currency from order</notes>
|
36 |
+
<authors><author><name>Multon</name><user>eepohs</user><email>magento@multon.ee</email></author><author><name>Tanel Raja</name><user>pronto</user><email>tanel.raja@eepohs.com</email></author><author><name>Jaanus Vapper</name><user>jaanusvapper</user><email>jaanus.vapper@eepohs.com</email></author></authors>
|
37 |
+
<date>2015-03-26</date>
|
38 |
+
<time>10:44:59</time>
|
39 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Multon_Estpay.xml" hash="209262d42545fe73b60a76db2bb6bf75"/><file name="Multon_Payment.xml" hash="7eb147bd55cdf00bef633796b76f52bb"/><file name="Multon_Core.xml" hash="048e74dc0b8a981abb849076f413f6d2"/></dir></target><target name="magecommunity"><dir name="Multon"><dir name="Estpay"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Version.php" hash="a81f66b790094c1d06579361c81cd12a"/></dir></dir></dir><file name="Danske.php" hash="f0a8ec576fae998f2b0c22498eb3932c"/><file name="Estcard.php" hash="96d6f8f13987952d94c1fa1f82354bf6"/><file name="IPizza.php" hash="147b52eece72e9e351549a0aa327666c"/><file name="Info.php" hash="24d7d927d4d6367d229cdde690caab5e"/><file name="Krediidipank.php" hash="5c8f8f77bcf825565311577a06ebaf5f"/><file name="Lhv.php" hash="8940798d54e2180c80831b2155858cb0"/><file name="Nordea.php" hash="40a11e8a4abfdbc16cd1f346d89672cb"/><file name="Seb.php" hash="fe7a672ad8e3b50d3cdb375ea7ae4063"/><file name="Swedbank.php" hash="1ef47437e1446a349432f48b9ea4b269"/></dir><dir name="Model"><file name="Danske.php" hash="585c45b3d22c0e19afe12f6480f4bd5c"/><file name="Estcard.php" hash="dc7ffb78d2520b8f86b20e81d4eebcbe"/><file name="IPizza.php" hash="bb28133f03aef9a58cce4ba3f15b481c"/><file name="Krediidipank.php" hash="c8d00c9c36552193ea9080de15b2cdfa"/><file name="Lhv.php" hash="231c2f4cafa7ae15fe8f5b889be937e9"/><file name="Nordea.php" hash="f173b3267ffdf60dc62bb41e4526852e"/><file name="Seb.php" hash="b3885f44533eea858c62bc012b78dd1a"/><file name="Swedbank.php" hash="c321b391ae888598ba6a4d218d555a5a"/></dir><dir name="controllers"><file name="DanskeController.php" hash="27e872d1c4649f41c84751861824dab9"/><file name="EstcardController.php" hash="5364a7e069cfebb47435c1d4b5773db6"/><file name="KrediidipankController.php" hash="48f8469c1bd21f58928810e768d9eea3"/><file name="LhvController.php" hash="2ce4ec012fb81ccc94b07699f05620d9"/><file name="NordeaController.php" hash="a354d8adbb5156144020212832f6208c"/><file name="SebController.php" hash="a3950e8a375b5958cc5df3e4253ae218"/><file name="SwedbankController.php" hash="46988c5b01fa78c913329d055ea2ec62"/></dir><dir name="etc"><file name="config.xml" hash="0ec8d1281aa83a591b0ed2832eb821be"/><file name="system.xml" hash="87f8208f525dbc5d91b520f6f4da4555"/></dir></dir><dir name="Payment"><dir name="Block"><file name="Abstract.php" hash="34ec40038cb6da7529181192444a9eac"/><file name="IPizza.php" hash="39993edf67e079b4e15628bfaee49634"/><file name="Info.php" hash="8b6f91671c9ed3b8b7d5cd275ce45189"/></dir><dir name="Controller"><file name="Abstract.php" hash="317bff38a591509c7b89ba022cfd7a9c"/></dir><dir name="Helper"><file name="Data.php" hash="c318d32c8542229e7a38620d2633aaf0"/></dir><dir name="Model"><file name="Abstract.php" hash="18ed7a433eb2d2a3d5481cb9350f208c"/><file name="IPizza.php" hash="fe2219c122cd39b0c70d61eef7aa96ec"/><dir name="Missing"><file name="Payment.php" hash="6f2022d124885bb2d31eb6d2d419f3f0"/></dir><dir name="Order"><file name="Payment.php" hash="390c32997842b0e110292b108f90276c"/></dir></dir><dir name="etc"><file name="config.xml" hash="64453670fa91a09d0c5ff1faf7383242"/></dir></dir><dir name="Core"><dir name="Block"><dir name="Adminhtml"><file name="Fieldset.php" hash="873121b363f5f493a27f22e8e616036f"/></dir></dir><dir name="Helper"><file name="Data.php" hash="10fd58123cf85a045b0aa7b8d30c9fd5"/></dir><dir name="Model"><file name="Observer.php" hash="73f762d57742314cac26da764d718d62"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3545209ac94359f2bb350a8023113c80"/><file name="config.xml" hash="ba373987e2d530973cf85fcfb89869cd"/><file name="system.xml" hash="2a68529ed5009c335d66a5af02eadb06"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="multon"><file name="estpay.xml" hash="948094a2646af8b88b4ddad3bdb128f3"/></dir></dir><dir name="template"><dir name="multon"><dir name="estpay"><file name="danske.phtml" hash="48a7510a2b0108278f41603acbcf2af0"/><file name="estcard.phtml" hash="180f6301ef02ea42e4eb31ec69abc238"/><file name="info.phtml" hash="994d5e38b6d170a4ddf4cee2e187afc3"/><file name="krediidipank.phtml" hash="f3a2b92868d542992635e5dd4926b49c"/><file name="lhv.phtml" hash="5b475f239dd0bf351e7558b7233f62d3"/><file name="nordea.phtml" hash="978ed6adb285d5c46e2e6aecbe32a005"/><file name="seb.phtml" hash="7e6e1db92353bd1ecfbb0848c5b9d318"/><file name="swedbank.phtml" hash="1827e59015ea5d607ca4bf6290e8b118"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="multon"><dir name="estpay"><file name="danske_logo_88x31.gif" hash="32ca890ec2888596ad6644e1d1ea22d2"/><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="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><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="multon"><file name="multon_black.png" hash="6ca9fb17c2e58d27b2d820e04077c568"/><file name="multon_blue.png" hash="471ac2cc37f17b91a8426febf808e73e"/><file name="multon_small.png" hash="ff3f6931a2dd2023f6a2a008dc13fd2e"/></dir></dir></dir></dir></dir></target></contents>
|
40 |
<compatible/>
|
41 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
42 |
</package>
|
skin/adminhtml/default/default/images/eepohs/eepohs_logo_small.png
DELETED
Binary file
|
skin/adminhtml/default/default/images/eepohs/eepohs_logo_x40px.png
DELETED
Binary file
|
skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_small.png
DELETED
Binary file
|
skin/adminhtml/default/default/images/eepohs/estpay/eepohs_logo_x40px.png
DELETED
Binary file
|
skin/adminhtml/default/default/images/eepohs/informer/eepohs_logo_x40px.png
DELETED
Binary file
|
skin/adminhtml/default/default/images/multon/multon_black.png
ADDED
Binary file
|
skin/adminhtml/default/default/images/multon/multon_blue.png
ADDED
Binary file
|
skin/adminhtml/default/default/images/multon/multon_small.png
ADDED
Binary file
|
skin/frontend/base/default/images/eepohs/estpay/sampo_logo_88x31.gif
DELETED
Binary file
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/danske_logo_88x31.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/estcard_logo_120x31.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/krediidipank_logo_88x31.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/lhv_logo_120x60.png
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/lhv_logo_88x31.png
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/nordea_logo_88x31.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/seb_logo_88x31.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_eng.png
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_est.png
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_220x31_rus.png
RENAMED
File without changes
|
skin/frontend/base/default/images/{eepohs → multon}/estpay/swedbank_logo_88x31.gif
RENAMED
File without changes
|