DebitPayment - Version 0.5.1

Version Notes

Changelog:
0.4.5
- Bestimmte Zeichen werden rausgefiltert um kryptische Zeichen zu vermeiden.
- Copyright aktualisiert
- Bugfixes

0.4.2
- Theme-Support für Magento 1.4
- Neue Bankleitzahlen-Datei der Bundesbank
- Bugfixes

0.4.1
- Fehlende "debit.xml" zum Paket hinzugefügt
- Bestellung auch ohne gültige BLZ möglich gemacht / Im Benutzerkonto kann man jedoch nur eine gültige BLZ angeben!
- Neue Bankleitzahlen-Datei
- Bugfixes

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

Download this release

Release Info

Developer Magento Core Team
Extension DebitPayment
Version 0.5.1
Comparing to
See all releases


Code changes from version 0.5.0 to 0.5.1

app/code/community/Mage/Debit/controllers/AccountController.php CHANGED
@@ -88,7 +88,8 @@ class Mage_Debit_AccountController extends Mage_Core_Controller_Front_Action
88
  return;
89
  }
90
 
91
- $customer->setData('debit_payment_acount_update', now());
 
92
  $customer->setData('debit_payment_acount_name', $this->getRequest()->getPost('account_name'));
93
  $customer->setData('debit_payment_acount_number', $this->getRequest()->getPost('account_number'));
94
  $customer->setData('debit_payment_acount_blz', $this->getRequest()->getPost('account_blz'));
88
  return;
89
  }
90
 
91
+ $now = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);
92
+ $customer->setData('debit_payment_acount_update', $now);
93
  $customer->setData('debit_payment_acount_name', $this->getRequest()->getPost('account_name'));
94
  $customer->setData('debit_payment_acount_number', $this->getRequest()->getPost('account_number'));
95
  $customer->setData('debit_payment_acount_blz', $this->getRequest()->getPost('account_blz'));
app/code/community/Mage/Debit/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Mage_Debit>
27
- <version>0.5.0</version>
28
  </Mage_Debit>
29
  </modules>
30
 
24
  <config>
25
  <modules>
26
  <Mage_Debit>
27
+ <version>0.5.1</version>
28
  </Mage_Debit>
29
  </modules>
30
 
app/code/community/Mage/Debit/sql/debit_setup/mysql4-upgrade-0.4.9-0.5.0.php CHANGED
@@ -31,8 +31,12 @@
31
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
32
  * @link http://www.magentocommerce.com/extension/676/
33
  */
 
 
34
 
35
  $write = Mage::getSingleton('core/resource')->getConnection('core_write');
36
  $write->query('SET FOREIGN_KEY_CHECKS=0;');
37
- $write->query('UPDATE eav_attribute SET attribute_code = "debit_payment_acount_update" WHERE attribute_code = "debit_payment_acount_data_update";');
38
- $write->query('SET FOREIGN_KEY_CHECKS=1;');
 
 
31
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
32
  * @link http://www.magentocommerce.com/extension/676/
33
  */
34
+ $installer = $this;
35
+ $installer->startSetup();
36
 
37
  $write = Mage::getSingleton('core/resource')->getConnection('core_write');
38
  $write->query('SET FOREIGN_KEY_CHECKS=0;');
39
+ $write->query("UPDATE {$this->getTable('eav_attribute')} SET attribute_code = 'debit_payment_acount_update' WHERE attribute_code = 'debit_payment_acount_data_update';");
40
+ $write->query('SET FOREIGN_KEY_CHECKS=1;');
41
+
42
+ $installer->endSetup();
app/code/community/Mage/Debit/sql/debit_setup/mysql4-upgrade-0.5.0-0.5.1.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the Mage_Debit module.
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ * If you did not receive a copy of the license and are unable to
14
+ * obtain it through the world-wide-web, please send an email
15
+ * to license@magentocommerce.com so we can send you a copy immediately.
16
+ *
17
+ * @category Mage
18
+ * @package Mage_Debit
19
+ * @author Rouven Alexander Rieker <rouven.rieker@itabs.de>
20
+ * @copyright 2011 ITABS GmbH / Rouven Alexander Rieker (http://www.itabs.de)
21
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
+ * @link http://www.magentocommerce.com/extension/676/
23
+ */
24
+ /**
25
+ * Setup script
26
+ *
27
+ * @category Mage
28
+ * @package Mage_Debit
29
+ * @author Rouven Alexander Rieker <rouven.rieker@itabs.de>
30
+ * @copyright 2011 ITABS GmbH / Rouven Alexander Rieker (http://www.itabs.de)
31
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
32
+ * @link http://www.magentocommerce.com/extension/676/
33
+ */
34
+
35
+ $installer = $this;
36
+ $installer->startSetup();
37
+
38
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
39
+ $setup->updateAttribute('customer', 'debit_payment_acount_update', 'frontend_input', 'date');
40
+
41
+ $installer->endSetup();
app/code/local/Mage/Customer/Model/Attribute/Data/Label.php DELETED
@@ -1,140 +0,0 @@
1
- <?php
2
- /**
3
- * ============================================================================
4
- *
5
- * NECESSARY FILE FOR EXTENSION "DEBIT PAYMENT"
6
- *
7
- * THIS FILE IS IN THIS PACKAGE BECAUSE MAGENTO DOES NOT PROVIDE SUCH AN FILE
8
- * IF YOU HAVE AN CUSTOM CUSTOMER ATTRIBUTE "LABEL" FOR THE "INPUT" FIELD.
9
- *
10
- * THIS FILE WILL BE REMOVED WHEN MAGENTO WILL HOPEFULLY DELIVER SUCH A FILE IN
11
- * AN UPCOMING MAGENTO RELEASE.
12
- *
13
- * ============================================================================
14
- *
15
- * PHP version 5
16
- *
17
- * Magento
18
- *
19
- * NOTICE OF LICENSE
20
- *
21
- * This source file is subject to the Open Software License (OSL 3.0)
22
- * that is bundled with this package in the file LICENSE.txt.
23
- * It is also available through the world-wide-web at this URL:
24
- * http://opensource.org/licenses/osl-3.0.php
25
- * If you did not receive a copy of the license and are unable to
26
- * obtain it through the world-wide-web, please send an email
27
- * to license@magentocommerce.com so we can send you a copy immediately.
28
- *
29
- * DISCLAIMER
30
- *
31
- * Do not edit or add to this file if you wish to upgrade Magento to newer
32
- * versions in the future. If you wish to customize Magento for your
33
- * needs please refer to http://www.magentocommerce.com for more information.
34
- *
35
- * @category Mage
36
- * @package Mage_Customer
37
- * @author Magento Core Team <core@magentocommerce.com>
38
- * @copyright 2010 Magento Inc. (http://www.magentocommerce.com)
39
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
40
- * @link http://www.magentocommerce.com
41
- */
42
- /**
43
- * Customer Attribute Select Data Model
44
- *
45
- * @category Mage
46
- * @package Mage_Customer
47
- * @author Magento Core Team <core@magentocommerce.com>
48
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
49
- * @link http://www.magentocommerce.com
50
- */
51
- class Mage_Customer_Model_Attribute_Data_Label extends Mage_Customer_Model_Attribute_Data_Abstract
52
- {
53
- /**
54
- * Extract data from request and return value
55
- *
56
- * @param Zend_Controller_Request_Http $request HTTP-Request
57
- *
58
- * @return array|string Requested Value
59
- */
60
- public function extractValue(Zend_Controller_Request_Http $request)
61
- {
62
- return $this->_getRequestValue($request);
63
- }
64
-
65
- /**
66
- * Validate data
67
- * Return true or array of errors
68
- *
69
- * @param array|string $value Value
70
- *
71
- * @return boolean|array Return true or array of errors
72
- */
73
- public function validateValue($value)
74
- {
75
- return true;
76
- }
77
-
78
- /**
79
- * Export attribute value to entity model
80
- *
81
- * @param array|string $value Value
82
- *
83
- * @return Mage_Customer_Model_Attribute_Data_Text Object
84
- */
85
- public function compactValue($value)
86
- {
87
- if ($value !== false) {
88
- $this->getEntity()->setData($this->getAttribute()->getAttributeCode(), $value);
89
- }
90
- return $this;
91
- }
92
-
93
- /**
94
- * Restore attribute value from SESSION to entity model
95
- *
96
- * @param array|string $value Value
97
- *
98
- * @return Mage_Customer_Model_Attribute_Data_Abstract Object
99
- */
100
- public function restoreValue($value)
101
- {
102
- return $this->compactValue($value);
103
- }
104
-
105
- /**
106
- * Return a text for option value
107
- *
108
- * @param int $value Option Value
109
- *
110
- * @return string Text
111
- */
112
- protected function _getOptionText($value)
113
- {
114
- return $this->getAttribute()->getSource()->getOptionText($value);
115
- }
116
-
117
- /**
118
- * Return formated attribute value from entity model
119
- *
120
- * @param string $format Output format
121
- *
122
- * @return string|array Output
123
- */
124
- public function outputValue($format = Mage_Customer_Model_Attribute_Data::OUTPUT_FORMAT_TEXT)
125
- {
126
- $value = $this->getEntity()->getData($this->getAttribute()->getAttributeCode());
127
- switch ($format) {
128
- case Mage_Customer_Model_Attribute_Data::OUTPUT_FORMAT_JSON:
129
- $output = $value;
130
- default:
131
- if ($value != '') {
132
- $output = $this->_getOptionText($value);
133
- } else {
134
- $output = '';
135
- }
136
- break;
137
- }
138
- return $output;
139
- }
140
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitPayment</name>
4
- <version>0.5.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -54,9 +54,9 @@
54
  0.1.0
55
  - erste Ver&#xF6;ffentlichung mit einer Grundfunktionalit&#xE4;t</notes>
56
  <authors><author><name>ITABS GmbH - Rouven Alexander Rieker</name><user>auto-converted</user><email>rouven.rieker@itabs.de</email></author></authors>
57
- <date>2011-08-22</date>
58
- <time>18:52:19</time>
59
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="debit"><file name="debit.phtml" hash="668381d2a305c522b46470c6b56ba836"/><file name="form.phtml" hash="c309248ba984f388593fdedf05bb844d"/><file name="info.phtml" hash="df0d0b2353b4b18f6489e6d822acdcb3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="debit.xml" hash="7073be54bb35f85fe37d6bb3cf0c51c7"/></dir><dir name="template"><dir name="debit"><dir name="account"><file name="data.phtml" hash="39bd5d531b9e20124d1ac4874a9ca8c1"/></dir><file name="form.phtml" hash="b18f8d37dc7f3189f823592e44fe3df5"/><file name="info.phtml" hash="659a419f57de40e9d2cedbd819002813"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="code"><dir name="local"><dir name="Mage"><dir name="Customer"><dir name="Model"><dir name="Attribute"><dir name="Data"><file name="Label.php" hash="89b809662cd9dc3c7a26f99c494597f4"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="mage"><dir name="debit"><file name="blzcheck.js" hash="99c6d2638404860043105207f616d7db"/></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mage_Debit.csv" hash="953e30bcb8c07623773fb0be42120335"/></dir><dir name="en_US"><file name="Mage_Debit.csv" hash="1e7a6bf76f185a89dca643e63d95dbff"/></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Debit"><dir name="Block"><dir name="Account"><file name="Data.php" hash="00caa8c5b2900eaf8601672fc9a989c0"/></dir><file name="Form.php" hash="5c8a3ad068cf18788ec0a70339edbf50"/><file name="Info.php" hash="0bc4694dce19f8f859126e01acc643af"/></dir><dir name="controllers"><file name="AccountController.php" hash="2f9817db29947ac1542fb6626c24e313"/><file name="AjaxController.php" hash="65bfdaf619caa811707140691b110424"/></dir><dir name="etc"><file name="bankleitzahlen.csv" hash="2efa8e81a1a8abe640045982fff78b70"/><file name="config.xml" hash="9dfcc462c57a18e9be4dee8259525415"/><file name="system.xml" hash="4b84c5ddae5b672f229f8ab346095b76"/></dir><dir name="Helper"><file name="Data.php" hash="5339ea3c22eed7385baf7de661647b33"/></dir><dir name="Model"><dir name="Entity"><dir name="Customer"><dir name="Attribute"><dir name="Backend"><file name="Encrypted.php" hash="73407cb3592b42b9813b8b8a85a32b1b"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Customer"><file name="Group.php" hash="c46060c44860e7021aac664af577a8cf"/></dir></dir></dir></dir><file name="Debit.php" hash="9db05346ed8270d24d5b9001f17caaa9"/><file name="Observer.php" hash="a10e97ef5627331d59922dc22ddc7cce"/></dir><dir name="sql"><dir name="debit_setup"><file name="mysql4-install-0.4.0.php" hash="94d7b8b8e0541d707c2fb365c7f8bce6"/><file name="mysql4-upgrade-0.4.9-0.5.0.php" hash="1cfdba10cab25db78704295ad90fe729"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Debit.xml" hash="3a07e78ad3de76f12d3db7b88cefda1a"/></dir></target></contents>
60
  <compatible/>
61
  <dependencies/>
62
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitPayment</name>
4
+ <version>0.5.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
54
  0.1.0
55
  - erste Ver&#xF6;ffentlichung mit einer Grundfunktionalit&#xE4;t</notes>
56
  <authors><author><name>ITABS GmbH - Rouven Alexander Rieker</name><user>auto-converted</user><email>rouven.rieker@itabs.de</email></author></authors>
57
+ <date>2011-09-30</date>
58
+ <time>19:09:38</time>
59
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="debit"><file name="debit.phtml" hash="668381d2a305c522b46470c6b56ba836"/><file name="form.phtml" hash="c309248ba984f388593fdedf05bb844d"/><file name="info.phtml" hash="df0d0b2353b4b18f6489e6d822acdcb3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="debit.xml" hash="7073be54bb35f85fe37d6bb3cf0c51c7"/></dir><dir name="template"><dir name="debit"><dir name="account"><file name="data.phtml" hash="39bd5d531b9e20124d1ac4874a9ca8c1"/></dir><file name="form.phtml" hash="b18f8d37dc7f3189f823592e44fe3df5"/><file name="info.phtml" hash="659a419f57de40e9d2cedbd819002813"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mage_Debit.csv" hash="953e30bcb8c07623773fb0be42120335"/></dir><dir name="en_US"><file name="Mage_Debit.csv" hash="1e7a6bf76f185a89dca643e63d95dbff"/></dir></target><target name="mage"><dir name="js"><dir name="mage"><dir name="debit"><file name="blzcheck.js" hash="99c6d2638404860043105207f616d7db"/></dir></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Debit"><dir name="Block"><dir name="Account"><file name="Data.php" hash="00caa8c5b2900eaf8601672fc9a989c0"/></dir><file name="Form.php" hash="5c8a3ad068cf18788ec0a70339edbf50"/><file name="Info.php" hash="0bc4694dce19f8f859126e01acc643af"/></dir><dir name="controllers"><file name="AccountController.php" hash="d271e3a8c57c450c6fc14fbe697dc521"/><file name="AjaxController.php" hash="65bfdaf619caa811707140691b110424"/></dir><dir name="etc"><file name="bankleitzahlen.csv" hash="2efa8e81a1a8abe640045982fff78b70"/><file name="config.xml" hash="76b0e5d6580e16514efca71980272133"/><file name="system.xml" hash="4b84c5ddae5b672f229f8ab346095b76"/></dir><dir name="Helper"><file name="Data.php" hash="5339ea3c22eed7385baf7de661647b33"/></dir><dir name="Model"><dir name="Entity"><dir name="Customer"><dir name="Attribute"><dir name="Backend"><file name="Encrypted.php" hash="73407cb3592b42b9813b8b8a85a32b1b"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Customer"><file name="Group.php" hash="c46060c44860e7021aac664af577a8cf"/></dir></dir></dir></dir><file name="Debit.php" hash="9db05346ed8270d24d5b9001f17caaa9"/><file name="Observer.php" hash="a10e97ef5627331d59922dc22ddc7cce"/></dir><dir name="sql"><dir name="debit_setup"><file name="mysql4-install-0.4.0.php" hash="94d7b8b8e0541d707c2fb365c7f8bce6"/><file name="mysql4-upgrade-0.4.9-0.5.0.php" hash="d99e2c9899c97fd100c5220b30145d9e"/><file name="mysql4-upgrade-0.5.0-0.5.1.php" hash="47dd4cc4b58571f5b2407d75b726105f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Debit.xml" hash="3a07e78ad3de76f12d3db7b88cefda1a"/></dir></target></contents>
60
  <compatible/>
61
  <dependencies/>
62
  </package>