Version Notes
Changelog:
0.4
- Vollständiges Refactoring des Moduls
- AJAX-Abfrage des Kreditinstituts
- Caching der Bankinformationen zur Verbesserung der Performance
- Möglichkeit hinzugefügt, Kontodaten zu speichern und im Frontend und Backend zu bearbeiten
- Formularfelder im Checkout vorausgefüllt mit gespeicherten Bankdaten
- Encryption Bug behoben
- Erweiterung vollständig übersetzbar gemacht
- Erweiterung auch für StoreView konfigurierbar gemacht
0.3
- Anzeige der Bankdaten in der Rechnung
- Anlegen von Bestellungen im Backend nun mit dieser Zahlungsart möglich
- Bearbeiten von Bestellungen mit dieser Zahlungsart möglich
- Bugfixes
0.2.5.
- Der Shopbesitzer kann nun einstellen, ob die Bankdaten verschlüsselt oder unverschlüsselt zum Lastschriftverfahren per E-Mail mitgesendet werden sollen
0.2.1.
- Bugfix
0.2.0
- Verschlüsselung der Einträge in der Datenbank
- Überprüfung der BLZ im Backend und Anzeige, ob ein Fehler vorliegt oder nicht
0.1.0
- erste Veröffentlichung mit einer Grundfunktionalität
Release Info
Developer | Magento Core Team |
Extension | DebitPayment |
Version | 0.4 |
Comparing to | |
See all releases |
Code changes from version 0.3 to 0.4
- app/code/community/Mage/Debit/Block/Account/Data.php +58 -0
- app/code/community/Mage/Debit/Block/Form.php +59 -2
- app/code/community/Mage/Debit/Block/Info.php +40 -2
- app/code/community/Mage/Debit/Helper/Data.php +37 -112
- app/code/community/Mage/Debit/Model/Debit.php +39 -145
- app/code/community/Mage/Debit/Model/Entity/Customer/Attribute/Backend/Encrypted.php +39 -0
- app/code/community/Mage/Debit/Model/Observer.php +51 -0
- app/code/community/Mage/Debit/controllers/AccountController.php +73 -0
- app/code/community/Mage/Debit/controllers/AjaxController.php +33 -0
- app/code/community/Mage/Debit/etc/config.xml +36 -9
- app/code/community/Mage/Debit/etc/system.xml +20 -11
- app/code/community/Mage/Debit/sql/debit_setup/mysql4-upgrade-0.3.0-0.4.0.php +63 -0
- app/design/adminhtml/default/default/template/debit/debit.phtml +12 -21
- app/design/adminhtml/default/default/template/debit/form.phtml +19 -19
- app/design/adminhtml/default/default/template/debit/info.phtml +16 -26
- app/design/frontend/default/default/template/debit/account/data.phtml +63 -0
- app/design/frontend/default/default/template/debit/form.phtml +16 -24
- app/design/frontend/default/default/template/debit/info.phtml +25 -13
- app/etc/modules/Mage_Debit.xml +2 -2
- app/locale/de_DE/Mage_Debit.csv +22 -1
- app/locale/en_US/Mage_Debit.csv +25 -954
- js/mage/debit/blzcheck.js +72 -0
- package.xml +15 -5
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
14 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Mage_Debit_Block_Account_Data extends Mage_Customer_Block_Account_Dashboard
|
18 |
+
{
|
19 |
+
public function getBankName()
|
20 |
+
{
|
21 |
+
$blz = $this->getAccountBLZ();
|
22 |
+
if (empty($blz)) {
|
23 |
+
return $this->__('-- will be filled in automatically --');
|
24 |
+
}
|
25 |
+
$bankName = Mage::helper('debit')->getBankByBlz($blz);
|
26 |
+
if ($bankName == null) {
|
27 |
+
$bankName = $this->__('not available');
|
28 |
+
}
|
29 |
+
return $bankName;
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getAccountBLZ()
|
33 |
+
{
|
34 |
+
return $this->_getAccountData('debit_payment_acount_blz');
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getAccountName()
|
38 |
+
{
|
39 |
+
return $this->_getAccountData('debit_payment_acount_name');
|
40 |
+
}
|
41 |
+
|
42 |
+
public function getAccountNumber()
|
43 |
+
{
|
44 |
+
return $this->_getAccountData('debit_payment_acount_number');
|
45 |
+
}
|
46 |
+
|
47 |
+
protected function _getAccountData($field)
|
48 |
+
{
|
49 |
+
if (!Mage::getStoreConfigFlag('payment/debit/save_account_data')) {
|
50 |
+
return '';
|
51 |
+
}
|
52 |
+
$data = $this->getCustomer()->getData($field);
|
53 |
+
if (strlen($data) == 0) {
|
54 |
+
return '';
|
55 |
+
}
|
56 |
+
return $this->htmlEscape($data);
|
57 |
+
}
|
58 |
+
}
|
@@ -10,16 +10,73 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
17 |
class Mage_Debit_Block_Form extends Mage_Payment_Block_Form
|
18 |
{
|
19 |
-
|
20 |
protected function _construct()
|
21 |
{
|
22 |
parent::_construct();
|
23 |
$this->setTemplate('debit/form.phtml');
|
24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Mage_Debit_Block_Form extends Mage_Payment_Block_Form
|
19 |
{
|
|
|
20 |
protected function _construct()
|
21 |
{
|
22 |
parent::_construct();
|
23 |
$this->setTemplate('debit/form.phtml');
|
24 |
}
|
25 |
+
|
26 |
+
public function getBankName()
|
27 |
+
{
|
28 |
+
$blz = $this->getAccountBLZ();
|
29 |
+
if (empty($blz)) {
|
30 |
+
return $this->__('-- will be filled in automatically --');
|
31 |
+
}
|
32 |
+
$bankName = Mage::helper('debit')->getBankByBlz($blz);
|
33 |
+
if ($bankName == null) {
|
34 |
+
$bankName = $this->__('not available');
|
35 |
+
}
|
36 |
+
return $bankName;
|
37 |
+
}
|
38 |
+
|
39 |
+
public function getAccountBLZ()
|
40 |
+
{
|
41 |
+
if ($data = $this->getInfoData('cc_type')) {
|
42 |
+
return $this->getMethod()->getInfoInstance()->decrypt($data);
|
43 |
+
}
|
44 |
+
return $this->_getAccountData('debit_payment_acount_blz');
|
45 |
+
}
|
46 |
+
|
47 |
+
public function getAccountName()
|
48 |
+
{
|
49 |
+
if ($data = $this->getInfoData('cc_owner')) {
|
50 |
+
return $data;
|
51 |
+
}
|
52 |
+
return $this->_getAccountData('debit_payment_acount_name');
|
53 |
+
}
|
54 |
+
|
55 |
+
public function getAccountNumber()
|
56 |
+
{
|
57 |
+
if ($data = $this->getInfoData('cc_number')) {
|
58 |
+
return $data;
|
59 |
+
}
|
60 |
+
return $this->_getAccountData('debit_payment_acount_number');
|
61 |
+
}
|
62 |
+
|
63 |
+
protected function _getAccountData($field)
|
64 |
+
{
|
65 |
+
if (!Mage::getStoreConfigFlag('payment/debit/save_account_data')) {
|
66 |
+
return '';
|
67 |
+
}
|
68 |
+
$data = $this->getCustomer()->getData($field);
|
69 |
+
if (strlen($data) == 0) {
|
70 |
+
return '';
|
71 |
+
}
|
72 |
+
return $this->htmlEscape($data);
|
73 |
+
}
|
74 |
+
|
75 |
+
public function getCustomer()
|
76 |
+
{
|
77 |
+
if (Mage::app()->getStore()->isAdmin()) {
|
78 |
+
return Mage::getSingleton('adminhtml/session_quote')->getCustomer();
|
79 |
+
}
|
80 |
+
return Mage::getSingleton('customer/session')->getCustomer();
|
81 |
+
}
|
82 |
}
|
@@ -10,7 +10,8 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
@@ -22,11 +23,48 @@ class Mage_Debit_Block_Info extends Mage_Payment_Block_Info
|
|
22 |
parent::_construct();
|
23 |
$this->setTemplate('debit/info.phtml');
|
24 |
}
|
25 |
-
|
26 |
public function toPdf()
|
27 |
{
|
28 |
$this->setTemplate('debit/debit.phtml');
|
29 |
return $this->toHtml();
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
23 |
parent::_construct();
|
24 |
$this->setTemplate('debit/info.phtml');
|
25 |
}
|
26 |
+
|
27 |
public function toPdf()
|
28 |
{
|
29 |
$this->setTemplate('debit/debit.phtml');
|
30 |
return $this->toHtml();
|
31 |
}
|
32 |
|
33 |
+
public function isEmailContext()
|
34 |
+
{
|
35 |
+
$info = $this->getInfo();
|
36 |
+
if ($info instanceof Mage_Sales_Model_Quote_Payment) {
|
37 |
+
return false;
|
38 |
+
} elseif ($info instanceof Mage_Sales_Model_Order_Payment) {
|
39 |
+
return true;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
public function sendDataInEmail()
|
44 |
+
{
|
45 |
+
return Mage::getStoreConfigFlag('payment/'.$this->getMethod()->getCode().'/sendmail');
|
46 |
+
}
|
47 |
+
|
48 |
+
public function getEmailData()
|
49 |
+
{
|
50 |
+
$payment = $this->getMethod();
|
51 |
+
|
52 |
+
$data = array(
|
53 |
+
'account_name' => $payment->getAccountName(),
|
54 |
+
'account_number' => $payment->getAccountNumber(),
|
55 |
+
'account_blz' => $payment->getAccountBLZ(),
|
56 |
+
'bank_name' => $payment->getAccountBankname()
|
57 |
+
);
|
58 |
+
|
59 |
+
// mask bank data
|
60 |
+
if (Mage::getStoreConfigFlag('payment/'.$this->getMethod()->getCode().'/sendmail_crypt'))
|
61 |
+
{
|
62 |
+
$data['account_number'] = $payment->maskString($payment->getAccountNumber());
|
63 |
+
$data['account_blz'] = $payment->maskString($payment->getAccountBLZ());
|
64 |
+
$data['bank_name'] = '';
|
65 |
+
}
|
66 |
+
|
67 |
+
return $data;
|
68 |
+
}
|
69 |
+
|
70 |
}
|
@@ -10,137 +10,62 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
17 |
-
|
18 |
-
* Payment module base helper
|
19 |
-
*
|
20 |
-
* @author Magento Core Team <core@magentocommerce.com>
|
21 |
-
*/
|
22 |
-
class Mage_Debit_Helper_Data extends Mage_Core_Helper_Abstract
|
23 |
{
|
24 |
-
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Retrieve method model object
|
28 |
-
*
|
29 |
-
* @param string $code
|
30 |
-
* @return Mage_Payment_Model_Method_Abstract
|
31 |
-
*/
|
32 |
-
public function getMethodInstance($code)
|
33 |
{
|
34 |
-
$
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
-
return
|
40 |
}
|
41 |
|
42 |
-
|
43 |
-
* Retrieve available payment methods for store
|
44 |
-
*
|
45 |
-
* array structure:
|
46 |
-
* $index => Varien_Simplexml_Element
|
47 |
-
*
|
48 |
-
* @param mixed $store
|
49 |
-
* @return array
|
50 |
-
*/
|
51 |
-
public function getStoreMethods($store=null, $quote=null)
|
52 |
{
|
53 |
-
|
54 |
-
|
55 |
-
foreach ($methods as $code => $methodConfig) {
|
56 |
-
$prefix = self::XML_PATH_PAYMENT_METHODS.'/'.$code.'/';
|
57 |
-
|
58 |
-
if (!Mage::getStoreConfigFlag($prefix.'active', $store)) {
|
59 |
-
continue;
|
60 |
-
}
|
61 |
-
if (!$model = Mage::getStoreConfig($prefix.'model', $store)) {
|
62 |
-
continue;
|
63 |
-
}
|
64 |
-
|
65 |
-
$methodInstance = Mage::getModel($model);
|
66 |
-
|
67 |
-
if ($methodInstance instanceof Mage_Payment_Model_Method_Cc && !Mage::getStoreConfig($prefix.'cctypes')) {
|
68 |
-
/* if the payment method has credit card types configuration option
|
69 |
-
and no credit card type is enabled in configuration */
|
70 |
-
continue;
|
71 |
-
}
|
72 |
-
|
73 |
-
if ( !$methodInstance->isAvailable($quote) ) {
|
74 |
-
/* if the payment method can not be used at this time */
|
75 |
-
continue;
|
76 |
-
}
|
77 |
-
|
78 |
-
$sortOrder = (int)Mage::getStoreConfig($prefix.'sort_order', $store);
|
79 |
-
$methodInstance->setSortOrder($sortOrder);
|
80 |
-
// while (isset($res[$sortOrder])) {
|
81 |
-
// $sortOrder++;
|
82 |
-
// }
|
83 |
-
// $res[$sortOrder] = $methodInstance;
|
84 |
-
$res[] = $methodInstance;
|
85 |
}
|
86 |
-
|
87 |
-
//die('!');
|
88 |
-
|
89 |
-
//echo '<pre>';
|
90 |
-
//var_dump( (array)$res);
|
91 |
-
usort($res, array($this, '_sortMethods'));
|
92 |
-
//var_dump((array)$res);
|
93 |
-
// echo '</pre>';
|
94 |
-
return $res;
|
95 |
}
|
96 |
|
97 |
-
protected function
|
98 |
{
|
99 |
-
|
100 |
-
|
101 |
-
//var_dump($a->getData());
|
102 |
-
//var_dump($a->sort_order);
|
103 |
-
//die ();
|
104 |
-
|
105 |
-
return (int)$a->sort_order < (int)$b->sort_order ? -1 : ((int)$a->sort_order > (int)$b->sort_order ? 1 : 0);
|
106 |
}
|
107 |
-
|
|
|
108 |
}
|
109 |
|
110 |
-
|
111 |
-
* Retreive payment method form html
|
112 |
-
*
|
113 |
-
* @param Mage_Payment_Model_Abstract $method
|
114 |
-
* @return Mage_Payment_Block_Form
|
115 |
-
*/
|
116 |
-
public function getMethodFormBlock(Mage_Payment_Model_Method_Abstract $method)
|
117 |
{
|
118 |
-
|
119 |
-
$blockType = $method->getFormBlockType();
|
120 |
-
if ($this->getLayout()) {
|
121 |
-
$block = $this->getLayout()->createBlock($blockType);
|
122 |
-
$block->setMethod($method);
|
123 |
-
}
|
124 |
-
return $block;
|
125 |
}
|
126 |
|
127 |
-
|
128 |
-
* Retrieve payment information block
|
129 |
-
*
|
130 |
-
* @param Mage_Payment_Model_Info $info
|
131 |
-
* @return Mage_Core_Block_Template
|
132 |
-
*/
|
133 |
-
public function getInfoBlock(Mage_Payment_Model_Info $info)
|
134 |
{
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
$block = new $className;
|
142 |
-
}
|
143 |
-
$block->setInfo($info);
|
144 |
-
return $block;
|
145 |
}
|
146 |
}
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
+
class Mage_Debit_Helper_Data extends Mage_Payment_Helper_Data
|
|
|
|
|
|
|
|
|
|
|
19 |
{
|
20 |
+
public function getBankByBlz($blz)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
{
|
22 |
+
$data = $this->_loadBlzCache();
|
23 |
+
if (!$data) {
|
24 |
+
// open blz file handle
|
25 |
+
$io = new Varien_Io_File();
|
26 |
+
$io->open(array('path'=>Mage::getModuleDir('etc', 'Mage_Debit')));
|
27 |
+
$io->streamOpen('bankleitzahlen.csv', 'r');
|
28 |
+
|
29 |
+
// read csv stream
|
30 |
+
while (($line = $io->streamReadCsv(';')) !== false) {
|
31 |
+
$data[$line[0]] = $line[1];
|
32 |
+
}
|
33 |
+
$this->_saveBlzCache(serialize($data));
|
34 |
+
} else {
|
35 |
+
$data = unserialize($data);
|
36 |
}
|
37 |
+
return empty($data[$blz]) ? null : $data[$blz];
|
38 |
}
|
39 |
|
40 |
+
protected function _loadBlzCache()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
{
|
42 |
+
if (!Mage::app()->useCache('config')) {
|
43 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
+
return Mage::app()->loadCache($this->_getCacheKey());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
+
protected function _saveBlzCache($data)
|
49 |
{
|
50 |
+
if (!Mage::app()->useCache('config')) {
|
51 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
+
Mage::app()->saveCache($data, $this->_getCacheKey(), $this->_getCacheTags(), $this->_getCacheLifetime());
|
54 |
+
return $this;
|
55 |
}
|
56 |
|
57 |
+
protected function _getCacheLifetime()
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
{
|
59 |
+
return 3600*24;
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
62 |
+
protected function _getCacheKey()
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
{
|
64 |
+
return 'debit_blz_bank_mapping';
|
65 |
+
}
|
66 |
+
|
67 |
+
protected function _getCacheTags()
|
68 |
+
{
|
69 |
+
return array(Mage_Core_Model_Config::CACHE_TAG);
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
}
|
@@ -10,197 +10,91 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
17 |
class Mage_Debit_Model_Debit extends Mage_Payment_Model_Method_Abstract
|
18 |
{
|
19 |
-
|
20 |
/**
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
protected $_code = 'debit';
|
26 |
-
|
27 |
protected $_formBlockType = 'debit/form';
|
28 |
protected $_infoBlockType = 'debit/info';
|
29 |
|
30 |
-
|
31 |
public function assignData($data)
|
32 |
{
|
33 |
if (!($data instanceof Varien_Object)) {
|
34 |
$data = new Varien_Object($data);
|
35 |
}
|
36 |
$info = $this->getInfoInstance();
|
37 |
-
$info->setCcType($
|
38 |
-
->setCcOwner($data->getCcOwner())
|
39 |
-
->
|
40 |
-
return $this;
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Prepare info instance for save
|
45 |
-
*
|
46 |
-
* @return Mage_Payment_Model_Abstract
|
47 |
-
*/
|
48 |
-
public function prepareSave()
|
49 |
-
{
|
50 |
-
$info = $this->getInfoInstance();
|
51 |
-
$info->setCcNumberEnc($this->encrypt($info->getCcNumber()));
|
52 |
return $this;
|
53 |
-
}
|
54 |
-
|
55 |
-
public function getCODTitle()
|
56 |
-
{
|
57 |
-
return $this->getConfigData('title');
|
58 |
}
|
59 |
|
60 |
public function getCustomText()
|
61 |
{
|
62 |
return $this->getConfigData('customtext');
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
-
public function getEmailSettings()
|
67 |
-
{
|
68 |
-
if($this->getConfigData('sendmail')) // send bank data via mail
|
69 |
-
{
|
70 |
-
if($this->getConfigData('sendmail_crypt')) // encrypt bank data
|
71 |
-
{
|
72 |
-
$return = "<br />Kontoinhaber: ".$this->getAccountName();
|
73 |
-
$return .= "<br />Kontonummer: ".$this->emailEncrypt($this->getAccountNumber());
|
74 |
-
$return .= "<br />Bankleitzahl: ".$this->emailEncrypt($this->getAccountBLZ());
|
75 |
-
}
|
76 |
-
else // do not encrypt bank data
|
77 |
-
{
|
78 |
-
$return = "<br />Kontoinhaber: ".$this->getAccountName();
|
79 |
-
$return .= "<br />Kontonummer: ".$this->getAccountNumber();
|
80 |
-
$return .= "<br />Bankleitzahl: ".$this->getAccountBLZ();
|
81 |
-
$return .= "<br />Kreditinstitut: ".$this->getAccountBankname();
|
82 |
-
}
|
83 |
-
return $return;
|
84 |
-
}
|
85 |
-
return false;
|
86 |
-
}
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
public function getAccountName()
|
92 |
{
|
93 |
$info = $this->getInfoInstance();
|
94 |
return $info->getCcOwner();
|
95 |
}
|
96 |
-
|
97 |
public function getAccountNumber()
|
98 |
{
|
99 |
$info = $this->getInfoInstance();
|
100 |
-
$
|
101 |
|
102 |
-
if(
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
{
|
109 |
-
$info = $this->getInfoInstance();
|
110 |
-
$return = $info->getCcType();
|
111 |
-
|
112 |
-
if(strlen(intval($return)) == 1) $return = $this->decrypt($return); // decrypt
|
113 |
|
114 |
-
return $
|
115 |
}
|
116 |
-
|
117 |
-
public function
|
118 |
{
|
119 |
$info = $this->getInfoInstance();
|
120 |
-
$
|
121 |
-
$name = '';
|
122 |
-
$file = $this->getFilePath();
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
while ($data = fgetcsv($fp, 1024, ";")) {
|
128 |
-
if ($data[0] == $blz) {
|
129 |
-
$name = $data[1];
|
130 |
-
}
|
131 |
-
}
|
132 |
|
133 |
-
|
134 |
-
else return $name;
|
135 |
}
|
136 |
-
|
137 |
-
|
138 |
-
* Get the path of the file "bankleitzahlen.csv"
|
139 |
-
*
|
140 |
-
* @return string
|
141 |
-
*/
|
142 |
-
private function getFilePath()
|
143 |
{
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
//echo $f; exit;
|
151 |
-
|
152 |
-
return $f;
|
153 |
}
|
154 |
-
|
155 |
-
|
156 |
-
/**
|
157 |
* Encrypt data for mail
|
158 |
*
|
159 |
* @param string $data
|
160 |
* @return string
|
161 |
*/
|
162 |
-
|
163 |
{
|
164 |
-
$
|
165 |
-
|
166 |
-
$rest = $l - 3;
|
167 |
-
$crypt = '';
|
168 |
-
for($i=1; $i<=$rest; $i++)
|
169 |
-
{
|
170 |
-
$crypt .= '*';
|
171 |
-
}
|
172 |
-
$crypt .= $l3; // add plain text values to crypted value
|
173 |
-
|
174 |
-
return $crypt;
|
175 |
}
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
/**
|
180 |
-
* Encrypt data
|
181 |
-
*
|
182 |
-
* @param string $data
|
183 |
-
* @return string
|
184 |
-
*/
|
185 |
-
public function encrypt($data)
|
186 |
-
{
|
187 |
-
if ($data) {
|
188 |
-
return Mage::helper('core')->encrypt($data);
|
189 |
-
}
|
190 |
-
return $data;
|
191 |
-
}
|
192 |
-
|
193 |
-
/**
|
194 |
-
* Decrypt data
|
195 |
-
*
|
196 |
-
* @param string $data
|
197 |
-
* @return string
|
198 |
-
*/
|
199 |
-
public function decrypt($data)
|
200 |
-
{
|
201 |
-
if ($data) {
|
202 |
-
return Mage::helper('core')->decrypt($data);
|
203 |
-
}
|
204 |
-
return $data;
|
205 |
-
}
|
206 |
}
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Mage_Debit_Model_Debit extends Mage_Payment_Model_Method_Abstract
|
19 |
{
|
|
|
20 |
/**
|
21 |
+
* unique internal payment method identifier
|
22 |
+
*
|
23 |
+
* @var string [a-z0-9_]
|
24 |
+
*/
|
25 |
protected $_code = 'debit';
|
|
|
26 |
protected $_formBlockType = 'debit/form';
|
27 |
protected $_infoBlockType = 'debit/info';
|
28 |
|
29 |
+
|
30 |
public function assignData($data)
|
31 |
{
|
32 |
if (!($data instanceof Varien_Object)) {
|
33 |
$data = new Varien_Object($data);
|
34 |
}
|
35 |
$info = $this->getInfoInstance();
|
36 |
+
$info->setCcType($info->encrypt($data->getCcType())) // BLZ
|
37 |
+
->setCcOwner($data->getCcOwner()) // Kontoinhaber
|
38 |
+
->setCcNumberEnc($info->encrypt($data->getCcNumber())); // Kontonummer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
return $this;
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
public function getCustomText()
|
43 |
{
|
44 |
return $this->getConfigData('customtext');
|
45 |
}
|
46 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
public function getAccountName()
|
48 |
{
|
49 |
$info = $this->getInfoInstance();
|
50 |
return $info->getCcOwner();
|
51 |
}
|
52 |
+
|
53 |
public function getAccountNumber()
|
54 |
{
|
55 |
$info = $this->getInfoInstance();
|
56 |
+
$data = $info->getCcNumberEnc();
|
57 |
|
58 |
+
if(!is_numeric($data)) {
|
59 |
+
$data = $info->decrypt($data);
|
60 |
+
}
|
61 |
+
if(!is_numeric($data)) {
|
62 |
+
$data = $info->decrypt($data);
|
63 |
+
}
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
return $data;
|
66 |
}
|
67 |
+
|
68 |
+
public function getAccountBLZ()
|
69 |
{
|
70 |
$info = $this->getInfoInstance();
|
71 |
+
$data = $info->getCcType();
|
|
|
|
|
72 |
|
73 |
+
if(!is_numeric($data)) {
|
74 |
+
$data = $info->decrypt($data);
|
75 |
+
}
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
+
return $data;
|
|
|
78 |
}
|
79 |
+
|
80 |
+
public function getAccountBankname()
|
|
|
|
|
|
|
|
|
|
|
81 |
{
|
82 |
+
$bankName = Mage::helper('debit')->getBankByBlz($this->getAccountBLZ());
|
83 |
+
if ($bankName == null) {
|
84 |
+
$bankName = Mage::helper('debit')->__('not available');
|
85 |
+
}
|
86 |
+
return $bankName;
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
+
|
89 |
+
/**
|
|
|
90 |
* Encrypt data for mail
|
91 |
*
|
92 |
* @param string $data
|
93 |
* @return string
|
94 |
*/
|
95 |
+
public function maskString($data)
|
96 |
{
|
97 |
+
$crypt = str_repeat('*', strlen($data)-3) . substr($data,-3);
|
98 |
+
return $crypt;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
13 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
14 |
+
*/
|
15 |
+
|
16 |
+
class Mage_Debit_Model_Entity_Customer_Attribute_Backend_Encrypted extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Encrypt value before saving
|
20 |
+
* @param <type> $object
|
21 |
+
*/
|
22 |
+
public function beforeSave($object)
|
23 |
+
{
|
24 |
+
$attributeName = $this->getAttribute()->getName();
|
25 |
+
$value = Mage::helper('core')->encrypt($object->getData($attributeName));
|
26 |
+
$object->setData($attributeName, $value);
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* decrypt value after load
|
31 |
+
* @param <type> $object
|
32 |
+
*/
|
33 |
+
public function afterLoad($object)
|
34 |
+
{
|
35 |
+
$attributeName = $this->getAttribute()->getName();
|
36 |
+
$value = Mage::helper('core')->decrypt($object->getData($attributeName));
|
37 |
+
$object->setData($attributeName, $value);
|
38 |
+
}
|
39 |
+
}
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
13 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
14 |
+
*/
|
15 |
+
class Mage_Debit_Model_Observer
|
16 |
+
{
|
17 |
+
public function saveAccountInfo($observer)
|
18 |
+
{
|
19 |
+
$order = $observer->getEvent()->getOrder();
|
20 |
+
$paymentMethodInstance = $order->getPayment()->getMethodInstance();
|
21 |
+
if ($paymentMethodInstance->getCode() != 'debit') {
|
22 |
+
return;
|
23 |
+
}
|
24 |
+
if (!$paymentMethodInstance->getConfigData('save_account_data')) {
|
25 |
+
return;
|
26 |
+
}
|
27 |
+
|
28 |
+
if ($customer = $this->_getOrderCustomer($order)) {
|
29 |
+
$customer->setData('debit_payment_acount_data_update', now())
|
30 |
+
->setData('debit_payment_acount_name', $paymentMethodInstance->getAccountName())
|
31 |
+
->setData('debit_payment_acount_number', $paymentMethodInstance->getAccountNumber())
|
32 |
+
->setData('debit_payment_acount_blz', $paymentMethodInstance->getAccountBLZ())
|
33 |
+
->save();
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
public function _getOrderCustomer($order)
|
38 |
+
{
|
39 |
+
if (Mage::app()->getStore()->isAdmin()) {
|
40 |
+
if ($customer = $order->getCustomer()) {
|
41 |
+
return $customer;
|
42 |
+
}
|
43 |
+
} else {
|
44 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
45 |
+
if ($customer->getId()) {
|
46 |
+
return $customer;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
return null;
|
50 |
+
}
|
51 |
+
}
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @package Mage_Debit
|
16 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
*/
|
19 |
+
class Mage_Debit_AccountController extends Mage_Core_Controller_Front_Action
|
20 |
+
{
|
21 |
+
/**
|
22 |
+
* Retrieve customer session object
|
23 |
+
*
|
24 |
+
* @return Mage_Customer_Model_Session
|
25 |
+
*/
|
26 |
+
protected function _getSession()
|
27 |
+
{
|
28 |
+
return Mage::getSingleton('customer/session');
|
29 |
+
}
|
30 |
+
|
31 |
+
public function preDispatch()
|
32 |
+
{
|
33 |
+
parent::preDispatch();
|
34 |
+
|
35 |
+
if (!Mage::getSingleton('customer/session')->authenticate($this)) {
|
36 |
+
$this->setFlag('', 'no-dispatch', true);
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
public function editAction()
|
41 |
+
{
|
42 |
+
$this->loadLayout();
|
43 |
+
$this->getLayout()->getBlock('head')->setTitle($this->__('Debit Account Data'));
|
44 |
+
$this->renderLayout();
|
45 |
+
}
|
46 |
+
|
47 |
+
public function saveAction()
|
48 |
+
{
|
49 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
50 |
+
if (!$customer) {
|
51 |
+
return;
|
52 |
+
}
|
53 |
+
$customer->setData('debit_payment_acount_data_update', now());
|
54 |
+
$customer->setData('debit_payment_acount_name', $this->getRequest()->getPost('account_name'));
|
55 |
+
$customer->setData('debit_payment_acount_number', $this->getRequest()->getPost('account_number'));
|
56 |
+
$customer->setData('debit_payment_acount_blz', $this->getRequest()->getPost('account_blz'));
|
57 |
+
try {
|
58 |
+
$customer->save();
|
59 |
+
$this->_getSession()->setCustomer($customer)
|
60 |
+
->addSuccess($this->__('Debit account information was successfully saved'));
|
61 |
+
$this->_redirect('customer/account');
|
62 |
+
return;
|
63 |
+
}
|
64 |
+
catch (Mage_Core_Exception $e) {
|
65 |
+
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
|
66 |
+
->addError($e->getMessage());
|
67 |
+
}
|
68 |
+
catch (Exception $e) {
|
69 |
+
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
|
70 |
+
->addException($e, $this->__('Can\'t save customer'));
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @package Mage_Debit
|
16 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
*/
|
19 |
+
class Mage_Debit_AjaxController extends Mage_Core_Controller_Front_Action
|
20 |
+
{
|
21 |
+
public function checkblzAction()
|
22 |
+
{
|
23 |
+
$result = array();
|
24 |
+
if ($bank = Mage::helper('debit')->getBankByBlz($this->getRequest()->getPost('blz'))) {
|
25 |
+
$result['found'] = 1;
|
26 |
+
$result['bank'] = $bank;
|
27 |
+
} else {
|
28 |
+
$result['found'] = 0;
|
29 |
+
$result['bank'] = $this->__('Bank not found');
|
30 |
+
}
|
31 |
+
$this->getResponse()->setBody(Zend_Json::encode($result));
|
32 |
+
}
|
33 |
+
}
|
@@ -10,7 +10,7 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
@@ -22,7 +22,6 @@
|
|
22 |
<class>Mage_Debit_Model</class>
|
23 |
</debit>
|
24 |
</models>
|
25 |
-
|
26 |
<resources>
|
27 |
<debit_setup>
|
28 |
<setup>
|
@@ -39,8 +38,17 @@
|
|
39 |
<use>core_read</use>
|
40 |
</debit_read>
|
41 |
</resources>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
</global>
|
43 |
-
|
44 |
<default>
|
45 |
<payment>
|
46 |
<debit>
|
@@ -51,10 +59,10 @@
|
|
51 |
<order_status>1</order_status>
|
52 |
<title>Debit Payment</title>
|
53 |
<allowspecific>0</allowspecific>
|
|
|
54 |
</debit>
|
55 |
</payment>
|
56 |
</default>
|
57 |
-
|
58 |
<adminhtml>
|
59 |
<translate>
|
60 |
<modules>
|
@@ -65,9 +73,12 @@
|
|
65 |
</Mage_Debit>
|
66 |
</modules>
|
67 |
</translate>
|
68 |
-
</adminhtml>
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
71 |
<translate>
|
72 |
<modules>
|
73 |
<Mage_Debit>
|
@@ -76,6 +87,22 @@
|
|
76 |
</files>
|
77 |
</Mage_Debit>
|
78 |
</modules>
|
79 |
-
</translate>
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
</config>
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
22 |
<class>Mage_Debit_Model</class>
|
23 |
</debit>
|
24 |
</models>
|
|
|
25 |
<resources>
|
26 |
<debit_setup>
|
27 |
<setup>
|
38 |
<use>core_read</use>
|
39 |
</debit_read>
|
40 |
</resources>
|
41 |
+
<events>
|
42 |
+
<sales_order_save_after>
|
43 |
+
<observers>
|
44 |
+
<debit_observer>
|
45 |
+
<class>debit/observer</class>
|
46 |
+
<method>saveAccountInfo</method>
|
47 |
+
</debit_observer>
|
48 |
+
</observers>
|
49 |
+
</sales_order_save_after>
|
50 |
+
</events>
|
51 |
</global>
|
|
|
52 |
<default>
|
53 |
<payment>
|
54 |
<debit>
|
59 |
<order_status>1</order_status>
|
60 |
<title>Debit Payment</title>
|
61 |
<allowspecific>0</allowspecific>
|
62 |
+
<save_account_data>0</save_account_data>
|
63 |
</debit>
|
64 |
</payment>
|
65 |
</default>
|
|
|
66 |
<adminhtml>
|
67 |
<translate>
|
68 |
<modules>
|
73 |
</Mage_Debit>
|
74 |
</modules>
|
75 |
</translate>
|
76 |
+
</adminhtml>
|
77 |
+
<frontend>
|
78 |
+
<secure_url>
|
79 |
+
<debit_account>/debit/account</debit_account>
|
80 |
+
<debit_ajax>/debit/ajax</debit_ajax>
|
81 |
+
</secure_url>
|
82 |
<translate>
|
83 |
<modules>
|
84 |
<Mage_Debit>
|
87 |
</files>
|
88 |
</Mage_Debit>
|
89 |
</modules>
|
90 |
+
</translate>
|
91 |
+
<layout>
|
92 |
+
<updates>
|
93 |
+
<dabit>
|
94 |
+
<file>debit.xml</file>
|
95 |
+
</dabit>
|
96 |
+
</updates>
|
97 |
+
</layout>
|
98 |
+
<routers>
|
99 |
+
<debit>
|
100 |
+
<use>standard</use>
|
101 |
+
<args>
|
102 |
+
<module>Mage_Debit</module>
|
103 |
+
<frontName>debit</frontName>
|
104 |
+
</args>
|
105 |
+
</debit>
|
106 |
+
</routers>
|
107 |
+
</frontend>
|
108 |
</config>
|
@@ -10,7 +10,7 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
@@ -25,7 +25,7 @@
|
|
25 |
<sort_order>1</sort_order>
|
26 |
<show_in_default>1</show_in_default>
|
27 |
<show_in_website>1</show_in_website>
|
28 |
-
<show_in_store>
|
29 |
<fields>
|
30 |
<active translate="label">
|
31 |
<label>Enabled</label>
|
@@ -34,7 +34,7 @@
|
|
34 |
<sort_order>1</sort_order>
|
35 |
<show_in_default>1</show_in_default>
|
36 |
<show_in_website>1</show_in_website>
|
37 |
-
<show_in_store>
|
38 |
</active>
|
39 |
<title translate="label">
|
40 |
<label>Title</label>
|
@@ -42,7 +42,7 @@
|
|
42 |
<sort_order>2</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
44 |
<show_in_website>1</show_in_website>
|
45 |
-
<show_in_store>
|
46 |
</title>
|
47 |
<sendmail translate="label">
|
48 |
<label>Send bank data via mail</label>
|
@@ -51,7 +51,7 @@
|
|
51 |
<sort_order>3</sort_order>
|
52 |
<show_in_default>1</show_in_default>
|
53 |
<show_in_website>1</show_in_website>
|
54 |
-
<show_in_store>
|
55 |
</sendmail>
|
56 |
<sendmail_crypt translate="label">
|
57 |
<label>Encrypt bank data in mail</label>
|
@@ -60,7 +60,7 @@
|
|
60 |
<sort_order>4</sort_order>
|
61 |
<show_in_default>1</show_in_default>
|
62 |
<show_in_website>1</show_in_website>
|
63 |
-
<show_in_store>
|
64 |
</sendmail_crypt>
|
65 |
<order_status translate="label">
|
66 |
<label>New order status</label>
|
@@ -69,7 +69,7 @@
|
|
69 |
<sort_order>5</sort_order>
|
70 |
<show_in_default>1</show_in_default>
|
71 |
<show_in_website>1</show_in_website>
|
72 |
-
<show_in_store>
|
73 |
</order_status>
|
74 |
<sort_order translate="label">
|
75 |
<label>Sort order</label>
|
@@ -77,7 +77,7 @@
|
|
77 |
<sort_order>6</sort_order>
|
78 |
<show_in_default>1</show_in_default>
|
79 |
<show_in_website>1</show_in_website>
|
80 |
-
<show_in_store>
|
81 |
</sort_order>
|
82 |
<allowspecific translate="label">
|
83 |
<label>Payment from applicable countries</label>
|
@@ -86,7 +86,7 @@
|
|
86 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
87 |
<show_in_default>1</show_in_default>
|
88 |
<show_in_website>1</show_in_website>
|
89 |
-
<show_in_store>
|
90 |
</allowspecific>
|
91 |
<specificcountry translate="label">
|
92 |
<label>Payment from Specific countries</label>
|
@@ -95,7 +95,7 @@
|
|
95 |
<source_model>adminhtml/system_config_source_country</source_model>
|
96 |
<show_in_default>1</show_in_default>
|
97 |
<show_in_website>1</show_in_website>
|
98 |
-
<show_in_store>
|
99 |
</specificcountry>
|
100 |
<customtext translate="label">
|
101 |
<label>Custom text for checkout page</label>
|
@@ -103,8 +103,17 @@
|
|
103 |
<sort_order>9</sort_order>
|
104 |
<show_in_default>1</show_in_default>
|
105 |
<show_in_website>1</show_in_website>
|
106 |
-
<show_in_store>
|
107 |
</customtext>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
</fields>
|
109 |
</debit>
|
110 |
</groups>
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
25 |
<sort_order>1</sort_order>
|
26 |
<show_in_default>1</show_in_default>
|
27 |
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>1</show_in_store>
|
29 |
<fields>
|
30 |
<active translate="label">
|
31 |
<label>Enabled</label>
|
34 |
<sort_order>1</sort_order>
|
35 |
<show_in_default>1</show_in_default>
|
36 |
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
</active>
|
39 |
<title translate="label">
|
40 |
<label>Title</label>
|
42 |
<sort_order>2</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
44 |
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
</title>
|
47 |
<sendmail translate="label">
|
48 |
<label>Send bank data via mail</label>
|
51 |
<sort_order>3</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 |
</sendmail>
|
56 |
<sendmail_crypt translate="label">
|
57 |
<label>Encrypt bank data in mail</label>
|
60 |
<sort_order>4</sort_order>
|
61 |
<show_in_default>1</show_in_default>
|
62 |
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>1</show_in_store>
|
64 |
</sendmail_crypt>
|
65 |
<order_status translate="label">
|
66 |
<label>New order status</label>
|
69 |
<sort_order>5</sort_order>
|
70 |
<show_in_default>1</show_in_default>
|
71 |
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
</order_status>
|
74 |
<sort_order translate="label">
|
75 |
<label>Sort order</label>
|
77 |
<sort_order>6</sort_order>
|
78 |
<show_in_default>1</show_in_default>
|
79 |
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>1</show_in_store>
|
81 |
</sort_order>
|
82 |
<allowspecific translate="label">
|
83 |
<label>Payment from applicable countries</label>
|
86 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
87 |
<show_in_default>1</show_in_default>
|
88 |
<show_in_website>1</show_in_website>
|
89 |
+
<show_in_store>1</show_in_store>
|
90 |
</allowspecific>
|
91 |
<specificcountry translate="label">
|
92 |
<label>Payment from Specific countries</label>
|
95 |
<source_model>adminhtml/system_config_source_country</source_model>
|
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 |
</specificcountry>
|
100 |
<customtext translate="label">
|
101 |
<label>Custom text for checkout page</label>
|
103 |
<sort_order>9</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 |
</customtext>
|
108 |
+
<save_account_data translate="label">
|
109 |
+
<label>Save account data</label>
|
110 |
+
<frontend_type>select</frontend_type>
|
111 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
112 |
+
<sort_order>10</sort_order>
|
113 |
+
<show_in_default>1</show_in_default>
|
114 |
+
<show_in_website>1</show_in_website>
|
115 |
+
<show_in_store>1</show_in_store>
|
116 |
+
</save_account_data>
|
117 |
</fields>
|
118 |
</debit>
|
119 |
</groups>
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// load id for customer entity
|
3 |
+
$read = Mage::getSingleton('core/resource')->getConnection('core_read');
|
4 |
+
$eid = $read->fetchRow("select entity_type_id from {$this->getTable('eav_entity_type')} where entity_type_code = 'customer'");
|
5 |
+
$customer_type_id = $eid['entity_type_id'];
|
6 |
+
|
7 |
+
$attr_date = array(
|
8 |
+
'type' => 'datetime',
|
9 |
+
'input' => 'label',
|
10 |
+
'label' => 'Account update date',
|
11 |
+
'global' => 1,
|
12 |
+
'required' => 0,
|
13 |
+
'default' => '',
|
14 |
+
'position' => '100'
|
15 |
+
);
|
16 |
+
|
17 |
+
$attr_name = array(
|
18 |
+
'type' => 'varchar',
|
19 |
+
'input' => 'text',
|
20 |
+
'label' => 'Account Name',
|
21 |
+
'global' => 1,
|
22 |
+
'required' => 0,
|
23 |
+
'default' => '',
|
24 |
+
'position' => '100'
|
25 |
+
);
|
26 |
+
|
27 |
+
|
28 |
+
$attr_number = array(
|
29 |
+
'type' => 'varchar',
|
30 |
+
'input' => 'text',
|
31 |
+
'label' => 'Account number',
|
32 |
+
'backend' => 'debit/entity_customer_attribute_backend_encrypted',
|
33 |
+
'global' => 1,
|
34 |
+
'required' => 0,
|
35 |
+
'default' => '',
|
36 |
+
'position' => '100'
|
37 |
+
);
|
38 |
+
|
39 |
+
$attr_blz = array(
|
40 |
+
'type' => 'varchar',
|
41 |
+
'input' => 'text',
|
42 |
+
'label' => 'Bank code',
|
43 |
+
'backend' => 'debit/entity_customer_attribute_backend_encrypted',
|
44 |
+
'global' => 1,
|
45 |
+
'required' => 0,
|
46 |
+
'default' => '',
|
47 |
+
'position' => '100'
|
48 |
+
);
|
49 |
+
|
50 |
+
|
51 |
+
$installer = $this;
|
52 |
+
$installer->startSetup();
|
53 |
+
|
54 |
+
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
|
55 |
+
$setup->addAttribute($customer_type_id, 'debit_payment_acount_data_update', $attr_date);
|
56 |
+
$setup->addAttribute($customer_type_id, 'debit_payment_acount_name', $attr_name);
|
57 |
+
$setup->addAttribute($customer_type_id, 'debit_payment_acount_number', $attr_number);
|
58 |
+
$setup->addAttribute($customer_type_id, 'debit_payment_acount_blz', $attr_blz);
|
59 |
+
|
60 |
+
$installer->endSetup();
|
61 |
+
|
62 |
+
// EOF
|
63 |
+
|
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Magento
|
5 |
*
|
@@ -10,26 +9,18 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-
|
17 |
?>
|
18 |
-
|
19 |
-
<?php
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
?>
|
28 |
-
|
29 |
-
<?php echo $this->getMethod()->getTitle() ?>
|
30 |
-
{{pdf_row_separator}}
|
31 |
-
Kontoinhaber: <?php echo $this->htmlEscape($this->getInfo()->getCcOwner()) ?>
|
32 |
-
{{pdf_row_separator}}
|
33 |
-
Kontonummer: <?php echo $this->htmlEscape($accountNumber) ?>
|
34 |
-
{{pdf_row_separator}}
|
35 |
-
BLZ: <?php echo $this->htmlEscape($accountBlz) ?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Magento
|
4 |
*
|
9 |
* http://opensource.org/licenses/osl-3.0.php
|
10 |
*
|
11 |
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
13 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
|
|
16 |
?>
|
17 |
+
<?php if($_info = $this->getMethod()): ?>
|
18 |
+
<?php echo $this->htmlEscape($_info->getTitle()) ?>
|
19 |
+
{{pdf_row_separator}}
|
20 |
+
<?php echo $this->__('Account holder: %s', $_info->getAccountName()) ?>
|
21 |
+
{{pdf_row_separator}}
|
22 |
+
<?php echo $this->__('Account number: %s', $_info->getAccountNumber()) ?>
|
23 |
+
{{pdf_row_separator}}
|
24 |
+
<?php echo $this->__('Bank code: %s', $_info->getAccountBLZ()) ?>
|
25 |
+
{{pdf_row_separator}}
|
26 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -10,7 +10,7 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
@@ -23,22 +23,22 @@
|
|
23 |
<?php endif; ?>
|
24 |
</div>
|
25 |
</li>
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
</ul>
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
|
23 |
<?php endif; ?>
|
24 |
</div>
|
25 |
</li>
|
26 |
+
<li>
|
27 |
+
<div class="input-box">
|
28 |
+
<label for="bankleitzahl"><?php echo $this->__('Bankleitzahl') ?> <span class="required">*</span></label><br />
|
29 |
+
<input type="text" id="bankleitzahl" name="payment[cc_type]" title="<?php echo $this->__('Bankleitzahl') ?>" class="input-text required-entry validate-number validate-debit-blz" value="<?php echo $this->getAccountBLZ() ?>" />
|
30 |
+
</div>
|
31 |
+
</li>
|
32 |
+
<li>
|
33 |
+
<div class="input-box">
|
34 |
+
<label for="kontoinhaber"><?php echo $this->__('Kontoinhaber') ?> <span class="required">*</span></label><br />
|
35 |
+
<input type="text" id="kontoinhaber" name="payment[cc_owner]" title="<?php echo $this->__('Kontoinhaber') ?>" class="input-text required-entry" value="<?php echo $this->getAccountName() ?>" />
|
36 |
+
</div>
|
37 |
+
</li>
|
38 |
+
<li>
|
39 |
+
<div class="input-box">
|
40 |
+
<label for="kontonummer"><?php echo $this->__('Konto-Nummer') ?> <span class="required">*</span></label><br />
|
41 |
+
<input type="text" id="kontonummer" name="payment[cc_number]" title="<?php echo $this->__('Konto-Nummer') ?>" class="input-text required-entry validate-number" value="<?php echo $this->getAccountNumber() ?>" />
|
42 |
+
</div>
|
43 |
+
</li>
|
44 |
</ul>
|
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Magento
|
5 |
*
|
@@ -10,31 +9,22 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-
|
17 |
?>
|
18 |
-
<?php
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
<?php
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
<?php
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
<?php if($this->getMethod()->getAccountBLZ()):?>
|
33 |
-
<strong>Bankleitzahl:</strong> <?php echo $this->htmlEscape($this->getMethod()->getAccountBLZ()) //$this->getMethod()->getAccountBLZ() ?><br />
|
34 |
-
<?php endif; ?>
|
35 |
-
|
36 |
-
<?php if($this->getMethod()->getAccountBankname()):?>
|
37 |
-
<strong>Kreditinstitut:</strong> <?php echo $this->htmlEscape($this->getMethod()->getAccountBankname()) //$this->getMethod()->getAccountBLZ() ?><br />
|
38 |
-
<?php endif; ?>
|
39 |
-
|
40 |
-
<br />
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Magento
|
4 |
*
|
9 |
* http://opensource.org/licenses/osl-3.0.php
|
10 |
*
|
11 |
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
13 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
|
|
16 |
?>
|
17 |
+
<?php if ($_info = $this->getMethod()): ?>
|
18 |
+
<?php echo $this->htmlEscape($_info->getTitle()) ?><br /><br />
|
19 |
+
|
20 |
+
<?php if ($_info->getAccountBankname() == Mage::helper('debit')->__('not available')): ?>
|
21 |
+
<span style="color: #cc0000;font-weight:bold;"><?php echo $this->__('Fehler! Die eingegebenen Bankdaten können fehlerhaft sein!<br />Bitte setzen Sie sich mit dem Kunden in Verbindung!') ?></span><br /><br />
|
22 |
+
<?php else: ?>
|
23 |
+
<?php echo $this->__('Bank name: %s', $this->htmlEscape($_info->getAccountBankname())) ?><br />
|
24 |
+
<?php endif; ?>
|
25 |
+
|
26 |
+
<?php echo $this->__('Bank code: %s', $this->htmlEscape($_info->getAccountBLZ())) ?><br />
|
27 |
+
<?php echo $this->__('Account holder: %s', $this->htmlEscape($_info->getAccountName())) ?><br />
|
28 |
+
<?php echo $this->__('Account number: %s', $this->htmlEscape($_info->getAccountNumber())) ?><br />
|
29 |
+
<br />
|
30 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
13 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
14 |
+
*/
|
15 |
+
?>
|
16 |
+
<div class="page-title">
|
17 |
+
<h1><?php echo $this->__('Edit Debit Account Data') ?></h1>
|
18 |
+
</div>
|
19 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
20 |
+
<form action="<?php echo $this->getUrl('debit/account/save') ?>" method="post" id="form-validate">
|
21 |
+
<div class="fieldset">
|
22 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
23 |
+
<h2 class="legend"><?php echo $this->__('Debit Account Data') ?></h2>
|
24 |
+
<ul class="form-list">
|
25 |
+
<li>
|
26 |
+
<div class="input-box">
|
27 |
+
<label for="kreditinstitut"><?php echo $this->__('Kreditinstitut') ?></label><br />
|
28 |
+
<span id="blz_bank_name" style="display: block; padding : 0 0 0 10px; float:left;"><?php echo $this->getBankName(); ?></span>
|
29 |
+
</div>
|
30 |
+
</li>
|
31 |
+
<li>
|
32 |
+
<div class="input-box">
|
33 |
+
<label for="bankleitzahl"><?php echo $this->__('Bankleitzahl') ?></label><br />
|
34 |
+
<input type="text" id="bankleitzahl" name="account_blz" title="<?php echo $this->__('Bankleitzahl') ?>" class="input-text required-entry validate-number validate-debit-blz" value="<?php echo $this->getAccountBLZ() ?>" onchange="blzCheck.checkBlz(this); return false;" />
|
35 |
+
</div>
|
36 |
+
</li>
|
37 |
+
<li>
|
38 |
+
<div class="input-box">
|
39 |
+
<label for="kontoinhaber"><?php echo $this->__('Kontoinhaber') ?></label><br />
|
40 |
+
<input type="text" id="kontoinhaber" name="account_name" title="<?php echo $this->__('Kontoinhaber') ?>" class="input-text required-entry" value="<?php echo $this->getAccountName() ?>" />
|
41 |
+
</div>
|
42 |
+
</li>
|
43 |
+
<li>
|
44 |
+
<div class="input-box">
|
45 |
+
<label for="kontonummer"><?php echo $this->__('Konto-Nummer') ?></label><br />
|
46 |
+
<input type="text" id="kontonummer" name="account_number" title="<?php echo $this->__('Konto-Nummer') ?>" class="input-text required-entry validate-number validate-debit-number" value="<?php echo $this->getAccountNumber() ?>" />
|
47 |
+
</div>
|
48 |
+
</li>
|
49 |
+
</ul>
|
50 |
+
</div>
|
51 |
+
<div class="buttons-set">
|
52 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
53 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
54 |
+
<button type="submit" title="<?php echo $this->__('Save') ?>" class="button"><span><span><?php echo $this->__('Save') ?></span></span></button>
|
55 |
+
</div>
|
56 |
+
</form>
|
57 |
+
|
58 |
+
<script type="text/javascript">
|
59 |
+
//<![CDATA[
|
60 |
+
blzCheck = new blzAjaxCheck('<?php echo $this->getUrl('debit/ajax/checkblz');?>');
|
61 |
+
var dataForm = new VarienForm('form-validate', true);
|
62 |
+
//]]>
|
63 |
+
</script>
|
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Magento
|
5 |
*
|
@@ -10,19 +9,14 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-
|
17 |
?>
|
18 |
<script type="text/javascript">
|
19 |
//<![CDATA[
|
20 |
-
|
21 |
-
if (v.length == 8) {
|
22 |
-
return true;
|
23 |
-
}
|
24 |
-
return false;
|
25 |
-
});
|
26 |
//]]>
|
27 |
</script>
|
28 |
|
@@ -35,31 +29,29 @@ Validation.add('validate-debit-blz', 'Bitte geben Sie eine gültige Bankleit
|
|
35 |
<?php endif; ?>
|
36 |
</div>
|
37 |
</li>
|
38 |
-
|
39 |
<div class="input-box">
|
40 |
-
<label for="
|
41 |
-
<
|
42 |
</div>
|
43 |
-
|
44 |
-
|
45 |
-
<div class="input-box">
|
46 |
-
<label for="
|
47 |
-
<input type="text" id="
|
48 |
</div>
|
49 |
-
|
50 |
<li>
|
51 |
<div class="input-box">
|
52 |
-
<label for="
|
53 |
-
<input type="text" id="
|
54 |
</div>
|
55 |
</li>
|
56 |
-
<!--
|
57 |
<li>
|
58 |
<div class="input-box">
|
59 |
-
<label for="
|
60 |
-
<input type="text" id="
|
61 |
</div>
|
62 |
</li>
|
63 |
-
-->
|
64 |
</ul>
|
65 |
</fieldset>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Magento
|
4 |
*
|
9 |
* http://opensource.org/licenses/osl-3.0.php
|
10 |
*
|
11 |
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
13 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
|
|
16 |
?>
|
17 |
<script type="text/javascript">
|
18 |
//<![CDATA[
|
19 |
+
blzCheck = new blzAjaxCheck('<?php echo $this->getUrl('debit/ajax/checkblz');?>');
|
|
|
|
|
|
|
|
|
|
|
20 |
//]]>
|
21 |
</script>
|
22 |
|
29 |
<?php endif; ?>
|
30 |
</div>
|
31 |
</li>
|
32 |
+
<li>
|
33 |
<div class="input-box">
|
34 |
+
<label for="kreditinstitut"><?php echo $this->__('Kreditinstitut') ?></label><br />
|
35 |
+
<span id="blz_bank_name" style="display: block; padding : 0 0 0 10px; float:left;"><?php echo $this->getBankName(); ?></span>
|
36 |
</div>
|
37 |
+
</li>
|
38 |
+
<li>
|
39 |
+
<div class="input-box" style="width: 500px; width: 500px; position: relative;">
|
40 |
+
<label for="bankleitzahl"><?php echo $this->__('Bankleitzahl') ?> <span class="required">*</span></label><br />
|
41 |
+
<input type="text" id="bankleitzahl" name="payment[cc_type]" title="<?php echo $this->__('Bankleitzahl') ?>" class="input-text required-entry validate-number validate-debit-blz" style="display: block; float: left;" value="<?php echo $this->getAccountBLZ() ?>" onchange="blzCheck.checkBlz(this); return false;"/>
|
42 |
</div>
|
43 |
+
</li>
|
44 |
<li>
|
45 |
<div class="input-box">
|
46 |
+
<label for="kontoinhaber"><?php echo $this->__('Kontoinhaber') ?> <span class="required">*</span></label><br />
|
47 |
+
<input type="text" id="kontoinhaber" name="payment[cc_owner]" title="<?php echo $this->__('Kontoinhaber') ?>" class="input-text required-entry" value="<?php echo $this->getAccountName() ?>" />
|
48 |
</div>
|
49 |
</li>
|
|
|
50 |
<li>
|
51 |
<div class="input-box">
|
52 |
+
<label for="kontonummer"><?php echo $this->__('Konto-Nummer') ?> <span class="required">*</span></label><br />
|
53 |
+
<input type="text" id="kontonummer" name="payment[cc_number]" title="<?php echo $this->__('Konto-Nummer') ?>" maxlenth="10" class="input-text required-entry validate-number validate-debit-number" value="<?php echo $this->getAccountNumber() ?>" />
|
54 |
</div>
|
55 |
</li>
|
|
|
56 |
</ul>
|
57 |
</fieldset>
|
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Magento
|
5 |
*
|
@@ -10,20 +9,33 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
|
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-
|
17 |
?>
|
18 |
-
|
19 |
-
<?php echo $this->
|
20 |
-
|
21 |
-
<?php if ($this->
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<?php endif; ?>
|
25 |
-
|
26 |
-
<?php if ($
|
27 |
-
|
|
|
28 |
<?php endif; ?>
|
29 |
-
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Magento
|
4 |
*
|
9 |
* http://opensource.org/licenses/osl-3.0.php
|
10 |
*
|
11 |
* @package Mage_Debit
|
12 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
13 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
|
|
16 |
?>
|
17 |
+
<?php if ($_info = $this->getMethod()): ?>
|
18 |
+
<?php echo $this->htmlEscape($_info->getTitle()) ?><br />
|
19 |
+
|
20 |
+
<?php if ($this->isEmailContext()): ?>
|
21 |
+
<?php if ($this->sendDataInEmail()): ?>
|
22 |
+
<?php $_data = $this->getEmailData() ?>
|
23 |
+
<?php if (!empty($data['bank_name'])): ?>
|
24 |
+
<?php echo $this->__('Bank name: %s', $this->htmlEscape($_data['bank_name'])) ?><br />
|
25 |
+
<?php endif; ?>
|
26 |
+
<?php echo $this->__('Bank code: %s', $this->htmlEscape($_data['account_blz'])) ?><br />
|
27 |
+
<?php echo $this->__('Account holder: %s', $this->htmlEscape($_data['account_name'])) ?><br />
|
28 |
+
<?php echo $this->__('Account number: %s', $this->htmlEscape($_data['account_number'])) ?><br />
|
29 |
+
<?php endif; ?>
|
30 |
+
<?php else: ?>
|
31 |
+
<?php echo $this->__('Bank name: %s', $this->htmlEscape($_info->getAccountBankname())) ?><br />
|
32 |
+
<?php echo $this->__('Bank code: %s', $this->htmlEscape($_info->getAccountBLZ())) ?><br />
|
33 |
+
<?php echo $this->__('Account holder: %s', $this->htmlEscape($_info->getAccountName())) ?><br />
|
34 |
+
<?php echo $this->__('Account number: %s', $this->htmlEscape($_info->getAccountNumber())) ?><br />
|
35 |
<?php endif; ?>
|
36 |
+
|
37 |
+
<?php if ($_customText = $_info->getCustomText()): ?>
|
38 |
+
<br />
|
39 |
+
<?php echo $this->htmlEscape($_customText) ?><br />
|
40 |
<?php endif; ?>
|
41 |
+
<?php endif; ?>
|
@@ -10,7 +10,7 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
-
* @copyright Copyright (c)
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
@@ -23,7 +23,7 @@
|
|
23 |
<depends>
|
24 |
<Mage_Payment />
|
25 |
</depends>
|
26 |
-
<version>0.
|
27 |
</Mage_Debit>
|
28 |
</modules>
|
29 |
</config>
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @package Mage_Debit
|
13 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
14 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
15 |
*/
|
16 |
-->
|
23 |
<depends>
|
24 |
<Mage_Payment />
|
25 |
</depends>
|
26 |
+
<version>0.4.0</version>
|
27 |
</Mage_Debit>
|
28 |
</modules>
|
29 |
</config>
|
@@ -1,4 +1,25 @@
|
|
1 |
"Debit Payment","Bankeinzug / Lastschrift"
|
2 |
"Send bank data via mail","Bankdaten in der E-Mail mitsenden"
|
3 |
"Encrypt bank data in mail","Bankdaten in der E-Mail verschlüsseln"
|
4 |
-
"Custom text for checkout page","Benutzerdefinierter Text"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
"Debit Payment","Bankeinzug / Lastschrift"
|
2 |
"Send bank data via mail","Bankdaten in der E-Mail mitsenden"
|
3 |
"Encrypt bank data in mail","Bankdaten in der E-Mail verschlüsseln"
|
4 |
+
"Custom text for checkout page","Benutzerdefinierter Text"
|
5 |
+
"Kontoinhaber","Kontoinhaber"
|
6 |
+
"Account holder","Kontoinhaber"
|
7 |
+
"Konto-Nummer","Konto-Nummer"
|
8 |
+
"Account number","Konto-Nummer"
|
9 |
+
"Bankleitzahl","Bankleitzahl"
|
10 |
+
"Bank code","Bankleitzahl"
|
11 |
+
"Bank name","Kreditinstitut"
|
12 |
+
"Account holder: %s","Kontoinhaber: %s"
|
13 |
+
"Account number: %s","Konto-Nummer: %s"
|
14 |
+
"Bank code: %s","Bankleitzahl: %s"
|
15 |
+
"Bank name: %s","Kreditinstitut: %s"
|
16 |
+
"-- will be filled in automatically --","-- wird automatisch ausgefüllt --"
|
17 |
+
"not available","nicht verfügbar"
|
18 |
+
"Bank not found","Bank nicht gefunden"
|
19 |
+
"Debit Account Data","Kontodaten"
|
20 |
+
"Edit Debit Account Data","Kontodaten bearbeiten"
|
21 |
+
"Debit account information was successfully saved","Kontodaten wurden erfolgreich gespeichert"
|
22 |
+
"Can't save customer","Kundendaten konnten nicht gespeichert werden"
|
23 |
+
"Please enter a valid bank code.","Bitte geben Sie eine gültige Bankleitzahl ein."
|
24 |
+
"Please enter a valid bank acount number.","Bitte geben Sie eine gültige Konto-Nummer ein."
|
25 |
+
"Save account data","Bankdaten speichern"
|
@@ -1,954 +1,25 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
1 |
+
"Debit Payment","Debit Payment"
|
2 |
+
"Send bank data via mail","Send bank data via mail"
|
3 |
+
"Encrypt bank data in mail","Encrypt bank data in mail"
|
4 |
+
"Custom text for checkout page","Custom text for checkout page"
|
5 |
+
"Kontoinhaber","Account holder"
|
6 |
+
"Account holder","Account holder"
|
7 |
+
"Konto-Nummer","Account number"
|
8 |
+
"Account number","Account number"
|
9 |
+
"Bankleitzahl","Bank code"
|
10 |
+
"Bank code","Bank code"
|
11 |
+
"Bank name","Bank name"
|
12 |
+
"Account holder: %s","Account holder: %s"
|
13 |
+
"Account number: %s","Account number: %s"
|
14 |
+
"Bank code: %s","Bank code: %s"
|
15 |
+
"Bank name: %s","Bank name: %s"
|
16 |
+
"-- will be filled in automatically --","-- will be filled in automatically --"
|
17 |
+
"not available","not available"
|
18 |
+
"Bank not found","Bank not found"
|
19 |
+
"Debit Account Data","Debit Account Data"
|
20 |
+
"Edit Debit Account Data","Edit Debit Account Data"
|
21 |
+
"Debit account information was successfully saved","Debit account information was successfully saved"
|
22 |
+
"Can't save customer","Can't save customer"
|
23 |
+
"Please enter a valid bank code.","Please enter a valid bank code."
|
24 |
+
"Please enter a valid bank acount number.","Please enter a valid bank acount number."
|
25 |
+
"Save account data","Save account data"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magento
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is available through the world-wide-web at this URL:
|
8 |
+
* http://opensource.org/licenses/osl-3.0.php
|
9 |
+
*
|
10 |
+
* @package Mage_Debit
|
11 |
+
* @copyright Copyright (c) 2010 ITABS GbR - Rouven Alexander Rieker
|
12 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
13 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
14 |
+
*/
|
15 |
+
|
16 |
+
var blzAjaxCheck = Class.create();
|
17 |
+
blzAjaxCheck.prototype = {
|
18 |
+
initialize: function(checkBlzUrl){
|
19 |
+
this.checkBlzUrl = checkBlzUrl;
|
20 |
+
this.isBlzValid = false;
|
21 |
+
},
|
22 |
+
checkBlz: function() {
|
23 |
+
var request = new Ajax.Request(
|
24 |
+
this.checkBlzUrl,
|
25 |
+
{
|
26 |
+
method:'post',
|
27 |
+
asynchronous: false,
|
28 |
+
onSuccess: this.setStatus.bind(this),
|
29 |
+
parameters: {blz:$('bankleitzahl').value}
|
30 |
+
}
|
31 |
+
);
|
32 |
+
},
|
33 |
+
setStatus: function(transport) {
|
34 |
+
if (transport && transport.responseText){
|
35 |
+
$('blz_bank_name').update('');
|
36 |
+
try{
|
37 |
+
response = eval('(' + transport.responseText + ')');
|
38 |
+
}
|
39 |
+
catch (e) {
|
40 |
+
response = {};
|
41 |
+
}
|
42 |
+
}
|
43 |
+
if (response.found && response.found == 1) {
|
44 |
+
this.isBlzValid = true;
|
45 |
+
} else {
|
46 |
+
this.isBlzValid = false;
|
47 |
+
}
|
48 |
+
$('blz_bank_name').update(response.bank);
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
Event.observe(window, 'load', function() {
|
53 |
+
Validation.add('validate-debit-blz', Translator.translate('Please enter a valid bank code.'), function(v) {
|
54 |
+
|
55 |
+
blzCheck.checkBlz();
|
56 |
+
if (!blzCheck.isBlzValid) {
|
57 |
+
return false;
|
58 |
+
}
|
59 |
+
|
60 |
+
if (v.length == 8 || v.length == 5) {
|
61 |
+
return true;
|
62 |
+
}
|
63 |
+
return false;
|
64 |
+
});
|
65 |
+
|
66 |
+
Validation.add('validate-debit-number', Translator.translate('Please enter a valid bank acount number.'), function(v) {
|
67 |
+
if (v.length > 4 && v.length < 11) {
|
68 |
+
return true;
|
69 |
+
}
|
70 |
+
return false;
|
71 |
+
});
|
72 |
+
});
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>DebitPayment</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,6 +10,16 @@
|
|
10 |
<description>Gerade in Deutschland gehört die Lastschrift (Bankeinzug) zu den populärsten Zahlungsmöglichkeiten. Mit Hilfe dieser Erweiterung können Sie Ihren Kunden die Zahlungsmöglichkeit Lastschrift anbieten.</description>
|
11 |
<notes>Changelog:
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
0.3
|
14 |
- Anzeige der Bankdaten in der Rechnung
|
15 |
- Anlegen von Bestellungen im Backend nun mit dieser Zahlungsart möglich
|
@@ -28,10 +38,10 @@
|
|
28 |
|
29 |
0.1.0
|
30 |
- erste Veröffentlichung mit einer Grundfunktionalität</notes>
|
31 |
-
<authors><author><name>Rouven Rieker</name><user>auto-converted</user><email>rouven.rieker@itabs.de</email></author></authors>
|
32 |
-
<date>
|
33 |
-
<time>
|
34 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="debit"><file name="debit.phtml" hash="
|
35 |
<compatible/>
|
36 |
<dependencies/>
|
37 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>DebitPayment</name>
|
4 |
+
<version>0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Gerade in Deutschland gehört die Lastschrift (Bankeinzug) zu den populärsten Zahlungsmöglichkeiten. Mit Hilfe dieser Erweiterung können Sie Ihren Kunden die Zahlungsmöglichkeit Lastschrift anbieten.</description>
|
11 |
<notes>Changelog:
|
12 |
|
13 |
+
0.4
|
14 |
+
- Vollständiges Refactoring des Moduls
|
15 |
+
- AJAX-Abfrage des Kreditinstituts
|
16 |
+
- Caching der Bankinformationen zur Verbesserung der Performance
|
17 |
+
- Möglichkeit hinzugefügt, Kontodaten zu speichern und im Frontend und Backend zu bearbeiten
|
18 |
+
- Formularfelder im Checkout vorausgefüllt mit gespeicherten Bankdaten
|
19 |
+
- Encryption Bug behoben
|
20 |
+
- Erweiterung vollständig übersetzbar gemacht
|
21 |
+
- Erweiterung auch für StoreView konfigurierbar gemacht
|
22 |
+
|
23 |
0.3
|
24 |
- Anzeige der Bankdaten in der Rechnung
|
25 |
- Anlegen von Bestellungen im Backend nun mit dieser Zahlungsart möglich
|
38 |
|
39 |
0.1.0
|
40 |
- erste Veröffentlichung mit einer Grundfunktionalität</notes>
|
41 |
+
<authors><author><name>ITABS GbR - Rouven Rieker</name><user>auto-converted</user><email>rouven.rieker@itabs.de</email></author><author><name>Phoenix Medien GmbH </name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
42 |
+
<date>2010-04-16</date>
|
43 |
+
<time>12:31:06</time>
|
44 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="debit"><file name="debit.phtml" hash="9dad4db2520b14b74419e2416442f32e"/><file name="form.phtml" hash="e6ebce751df4146eb927100a99ad5c54"/><file name="info.phtml" hash="894e5c8b91cb00b1d464b0e0705c2e68"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="debit"><dir name="account"><file name="data.phtml" hash="733ef783b3cac78bb7db0c38b5218f55"/></dir><file name="form.phtml" hash="3045f7603615cbe055e719c60f4a03f4"/><file name="info.phtml" hash="9b98213cd2d48058cc0bd9180f15d5ee"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mage_Debit.csv" hash="d9c1222a0c0c04f1897e266f29f00d42"/></dir><dir name="en_US"><file name="Mage_Debit.csv" hash="4946ff2e3cc36b95719354d14405e6f2"/></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Debit"><dir name="Block"><dir name="Account"><file name="Data.php" hash="c880e83d45e0a0268138f3946b7eddf2"/></dir><file name="Form.php" hash="50374e9108e4c6918c7ca71a2b945939"/><file name="Info.php" hash="8c1c2dd6c719451ab3bb48dd5cf170db"/></dir><dir name="controllers"><file name="AccountController.php" hash="49fff8d469377dc4aec1d9ab63507d86"/><file name="AjaxController.php" hash="461d14f155c4d02a7b6d248e9d6c6b63"/></dir><dir name="etc"><file name="bankleitzahlen.csv" hash="0966d54b7cd29c01146a00b0da436420"/><file name="config.xml" hash="2c464f3b29d655a113a4d811fcdc9fa3"/><file name="system.xml" hash="bc8a7578f533e00d233707b4d54c6b96"/></dir><dir name="Helper"><file name="Data.php" hash="08c7f0804ee000aa19ce9ad4a9f28b6c"/></dir><dir name="Model"><dir name="Entity"><dir name="Customer"><dir name="Attribute"><dir name="Backend"><file name="Encrypted.php" hash="02d8497cd75ce0c17e32e2f289801515"/></dir></dir></dir></dir><file name="Debit.php" hash="ff56c9a294b401e5b1708115406a785a"/><file name="Observer.php" hash="f17a3a254a730b53a5effb9adacbbf4b"/></dir><dir name="sql"><dir name="debit_setup"><file name="mysql4-upgrade-0.3.0-0.4.0.php" hash="e54ce893c9b68eb88b5f99bc095acace"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Debit.xml" hash="8161883ab8da793a90df14f6ae28a6a4"/></dir></target><target name="mage"><dir name="js"><dir name="mage"><dir name="debit"><file name="blzcheck.js" hash="91d6446acffb3b9598f48c39c9a661ba"/></dir></dir></dir></target></contents>
|
45 |
<compatible/>
|
46 |
<dependencies/>
|
47 |
</package>
|