pn_sofortueberweisung - Version 1.1.4

Version Notes

- fixed problem with module not being deactivated properly
- changed sending of email

Download this release

Release Info

Developer Magento Core Team
Extension pn_sofortueberweisung
Version 1.1.4
Comparing to
See all releases


Version 1.1.4

Files changed (58) hide show
  1. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung.php +12 -0
  2. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit.php +63 -0
  3. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Form.php +36 -0
  4. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tab/Form.php +70 -0
  5. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tabs.php +42 -0
  6. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Grid.php +152 -0
  7. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Paycode.php +41 -0
  8. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Pnsofortueberweisung.php +63 -0
  9. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Paycode.php +62 -0
  10. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Pnsofortueberweisung.php +62 -0
  11. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Infobox.php +28 -0
  12. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Pnsofortueberweisung.php +50 -0
  13. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Pnsofortueberweisungnotice.php +28 -0
  14. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/Data.php +346 -0
  15. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Order.php +44 -0
  16. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Quote.php +45 -0
  17. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Data/Form/Element/Link.php +54 -0
  18. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Pnsofortueberweisung.php +10 -0
  19. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Pnsofortueberweisung/Collection.php +10 -0
  20. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Setup.php +24 -0
  21. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Params.php +21 -0
  22. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Paycode.php +227 -0
  23. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Pnsofortueberweisung.php +174 -0
  24. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Status.php +15 -0
  25. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/Adminhtml/PnsofortueberweisungController.php +117 -0
  26. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PcsofortueberweisungController.php +198 -0
  27. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PnsofortueberweisungController.php +225 -0
  28. app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/config.xml +267 -0
  29. app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/system.xml +144 -0
  30. app/code/community/Paymentnetwork/Pnsofortueberweisung/sql/pnsofortueberweisung_setup/mysql4-install-1.1.1.php +30 -0
  31. app/design/adminhtml/default/default/template/pnsofortueberweisung/form/paycode.phtml +21 -0
  32. app/design/adminhtml/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +21 -0
  33. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/paycode.phtml +28 -0
  34. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf/paycode.phtml +27 -0
  35. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf/sofortueberweisung.phtml +26 -0
  36. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +25 -0
  37. app/design/frontend/default/default/layout/pnsofortueberweisung.xml +27 -0
  38. app/design/frontend/default/default/template/pnsofortueberweisung/form/paycode.phtml +39 -0
  39. app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +41 -0
  40. app/design/frontend/default/default/template/pnsofortueberweisung/info/paycode.phtml +39 -0
  41. app/design/frontend/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +34 -0
  42. app/design/frontend/default/default/template/pnsofortueberweisung/infobox.phtml +42 -0
  43. app/design/frontend/default/default/template/pnsofortueberweisung/notice.phtml +2 -0
  44. app/etc/modules/Paymentnetwork_Sofortueberweisung.xml +11 -0
  45. app/locale/de_AT/Paymentnetwork_Sofortueberweisung.csv +46 -0
  46. app/locale/de_CH/Paymentnetwork_Sofortueberweisung.csv +46 -0
  47. app/locale/de_DE/Paymentnetwork_Sofortueberweisung.csv +46 -0
  48. app/locale/en_US/Paymentnetwork_Sofortueberweisung.csv +46 -0
  49. app/locale/fr_FR/Paymentnetwork_Sofortueberweisung.csv +46 -0
  50. app/locale/it_IT/Paymentnetwork_Sofortueberweisung.csv +46 -0
  51. app/locale/nl_NL/Paymentnetwork_Sofortueberweisung.csv +46 -0
  52. lib/Varien/Data/Form/Element/Linkpnso.php +117 -0
  53. package.xml +21 -0
  54. skin/frontend/default/default/images/pnsofortueberweisung/logo_paycode_198.gif +0 -0
  55. skin/frontend/default/default/images/pnsofortueberweisung/logo_sofortueberweisung170.jpg +0 -0
  56. skin/frontend/default/default/images/pnsofortueberweisung/logo_sofortueberweisung200.jpg +0 -0
  57. skin/frontend/default/default/images/pnsofortueberweisung/logo_tuev_144px.gif +0 -0
  58. skin/frontend/default/default/images/pnsofortueberweisung/piktogram.jpg +0 -0
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung extends Mage_Adminhtml_Block_Widget_Grid_Container
3
+ {
4
+ public function __construct()
5
+ {
6
+ $this->_controller = 'adminhtml_pnsofortueberweisung';
7
+ $this->_blockGroup = 'pnsofortueberweisung';
8
+ $this->_headerText = Mage::helper('pnsofortueberweisung')->__('Item Manager');
9
+ $this->_addButtonLabel = Mage::helper('pnsofortueberweisung')->__('Add Item');
10
+ parent::__construct();
11
+ }
12
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit.php ADDED
@@ -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 bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Edit.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
22
+ {
23
+ public function __construct()
24
+ {
25
+ parent::__construct();
26
+
27
+ $this->_objectId = 'id';
28
+ $this->_blockGroup = 'pnsofortueberweisung';
29
+ $this->_controller = 'adminhtml_pnsofortueberweisung';
30
+
31
+ $this->_updateButton('save', 'label', Mage::helper('pnsofortueberweisung')->__('Save Item'));
32
+ $this->_updateButton('delete', 'label', Mage::helper('pnsofortueberweisung')->__('Delete Item'));
33
+
34
+ $this->_addButton('saveandcontinue', array(
35
+ 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
36
+ 'onclick' => 'saveAndContinueEdit()',
37
+ 'class' => 'save',
38
+ ), -100);
39
+
40
+ $this->_formScripts[] = "
41
+ function toggleEditor() {
42
+ if (tinyMCE.getInstanceById('pnsofortueberweisung_content') == null) {
43
+ tinyMCE.execCommand('mceAddControl', false, 'pnsofortueberweisung_content');
44
+ } else {
45
+ tinyMCE.execCommand('mceRemoveControl', false, 'pnsofortueberweisung_content');
46
+ }
47
+ }
48
+
49
+ function saveAndContinueEdit(){
50
+ editForm.submit($('edit_form').action+'back/edit/');
51
+ }
52
+ ";
53
+ }
54
+
55
+ public function getHeaderText()
56
+ {
57
+ if( Mage::registry('pnsofortueberweisung_data') && Mage::registry('pnsofortueberweisung_data')->getId() ) {
58
+ return Mage::helper('pnsofortueberweisung')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('pnsofortueberweisung_data')->getTitle()));
59
+ } else {
60
+ return Mage::helper('pnsofortueberweisung')->__('Add Item');
61
+ }
62
+ }
63
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Form.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Form.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
22
+ {
23
+ protected function _prepareForm()
24
+ {
25
+ $form = new Varien_Data_Form(array(
26
+ 'id' => 'edit_form',
27
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
28
+ 'method' => 'post',
29
+ )
30
+ );
31
+
32
+ $form->setUseContainer(true);
33
+ $this->setForm($form);
34
+ return parent::_prepareForm();
35
+ }
36
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tab/Form.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Form.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
22
+ {
23
+ protected function _prepareForm()
24
+ {
25
+ $form = new Varien_Data_Form();
26
+ $this->setForm($form);
27
+ $fieldset = $form->addFieldset('pnsofortueberweisung_form', array('legend'=>Mage::helper('pnsofortueberweisung')->__('Item information')));
28
+
29
+ $fieldset->addField('title', 'text', array(
30
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Title'),
31
+ 'class' => 'required-entry',
32
+ 'required' => true,
33
+ 'name' => 'title',
34
+ ));
35
+
36
+ $fieldset->addField('status', 'select', array(
37
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Status'),
38
+ 'name' => 'status',
39
+ 'values' => array(
40
+ array(
41
+ 'value' => 1,
42
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Enabled'),
43
+ ),
44
+
45
+ array(
46
+ 'value' => 2,
47
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Disabled'),
48
+ ),
49
+ ),
50
+ ));
51
+
52
+ $fieldset->addField('content', 'editor', array(
53
+ 'name' => 'content',
54
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Content'),
55
+ 'title' => Mage::helper('pnsofortueberweisung')->__('Content'),
56
+ 'style' => 'width:700px; height:500px;',
57
+ 'wysiwyg' => false,
58
+ 'required' => true,
59
+ ));
60
+
61
+ if ( Mage::getSingleton('adminhtml/session')->getSofortueberweisungData() )
62
+ {
63
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getSofortueberweisungData());
64
+ Mage::getSingleton('adminhtml/session')->setSofortueberweisungData(null);
65
+ } elseif ( Mage::registry('pnsofortueberweisung_data') ) {
66
+ $form->setValues(Mage::registry('pnsofortueberweisung_data')->getData());
67
+ }
68
+ return parent::_prepareForm();
69
+ }
70
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tabs.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Tabs.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
22
+ {
23
+
24
+ public function __construct()
25
+ {
26
+ parent::__construct();
27
+ $this->setId('pnsofortueberweisung_tabs');
28
+ $this->setDestElementId('edit_form');
29
+ $this->setTitle(Mage::helper('pnsofortueberweisung')->__('Item Information'));
30
+ }
31
+
32
+ protected function _beforeToHtml()
33
+ {
34
+ $this->addTab('form_section', array(
35
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Item Information'),
36
+ 'title' => Mage::helper('pnsofortueberweisung')->__('Item Information'),
37
+ 'content' => $this->getLayout()->createBlock('pnsofortueberweisung/adminhtml_sofortueberweisung_edit_tab_form')->toHtml(),
38
+ ));
39
+
40
+ return parent::_beforeToHtml();
41
+ }
42
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Grid.php ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Grid.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Grid extends Mage_Adminhtml_Block_Widget_Grid
22
+ {
23
+ public function __construct()
24
+ {
25
+ parent::__construct();
26
+ $this->setId('pnsofortueberweisungGrid');
27
+ $this->setDefaultSort('pnsofortueberweisung_id');
28
+ $this->setDefaultDir('ASC');
29
+ $this->setSaveParametersInSession(true);
30
+ }
31
+
32
+ protected function _prepareCollection()
33
+ {
34
+ $collection = Mage::getModel('pnsofortueberweisung/pnsofortueberweisung')->getCollection();
35
+ $this->setCollection($collection);
36
+ return parent::_prepareCollection();
37
+ }
38
+
39
+ protected function _prepareColumns()
40
+ {
41
+ $this->addColumn('pnsofortueberweisung_id', array(
42
+ 'header' => Mage::helper('pnsofortueberweisung')->__('ID'),
43
+ 'align' =>'right',
44
+ 'width' => '50px',
45
+ 'index' => 'pnsofortueberweisung_id',
46
+ ));
47
+
48
+ $this->addColumn('title', array(
49
+ 'header' => Mage::helper('pnsofortueberweisung')->__('Title'),
50
+ 'align' =>'left',
51
+ 'index' => 'title',
52
+ ));
53
+
54
+ /*
55
+ $this->addColumn('content', array(
56
+ 'header' => Mage::helper('sofortueberweisung')->__('Item Content'),
57
+ 'width' => '150px',
58
+ 'index' => 'content',
59
+ ));
60
+ */
61
+
62
+ $this->addColumn('created_time', array(
63
+ 'header' => Mage::helper('pnsofortueberweisung')->__('Creation Time'),
64
+ 'align' => 'left',
65
+ 'width' => '120px',
66
+ 'type' => 'date',
67
+ 'default' => '--',
68
+ 'index' => 'created_time',
69
+ ));
70
+
71
+ $this->addColumn('update_time', array(
72
+ 'header' => Mage::helper('pnsofortueberweisung')->__('Update Time'),
73
+ 'align' => 'left',
74
+ 'width' => '120px',
75
+ 'type' => 'date',
76
+ 'default' => '--',
77
+ 'index' => 'update_time',
78
+ ));
79
+
80
+ $this->addColumn('status', array(
81
+ 'header' => Mage::helper('pnsofortueberweisung')->__('Status'),
82
+ 'align' => 'left',
83
+ 'width' => '80px',
84
+ 'index' => 'status',
85
+ 'type' => 'options',
86
+ 'options' => array(
87
+ 1 => 'Enabled',
88
+ 2 => 'Disabled',
89
+ ),
90
+ ));
91
+
92
+ $this->addColumn('action',
93
+ array(
94
+ 'header' => Mage::helper('pnsofortueberweisung')->__('Action'),
95
+ 'width' => '100',
96
+ 'type' => 'action',
97
+ 'getter' => 'getId',
98
+ 'actions' => array(
99
+ array(
100
+ 'caption' => Mage::helper('pnsofortueberweisung')->__('Edit'),
101
+ 'url' => array('base'=> '*/*/edit'),
102
+ 'field' => 'id'
103
+ )
104
+ ),
105
+ 'filter' => false,
106
+ 'sortable' => false,
107
+ 'index' => 'stores',
108
+ 'is_system' => true,
109
+ ));
110
+
111
+ $this->addExportType('*/*/exportCsv', Mage::helper('pnsofortueberweisung')->__('CSV'));
112
+ $this->addExportType('*/*/exportXml', Mage::helper('pnsofortueberweisung')->__('XML'));
113
+
114
+ return parent::_prepareColumns();
115
+ }
116
+
117
+ protected function _prepareMassaction()
118
+ {
119
+ $this->setMassactionIdField('pnsofortueberweisung_id');
120
+ $this->getMassactionBlock()->setFormFieldName('pnsofortueberweisung');
121
+
122
+ $this->getMassactionBlock()->addItem('delete', array(
123
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Delete'),
124
+ 'url' => $this->getUrl('*/*/massDelete'),
125
+ 'confirm' => Mage::helper('sofortueberweisung')->__('Are you sure?')
126
+ ));
127
+
128
+ $statuses = Mage::getSingleton('pnsofortueberweisung/status')->getOptionArray();
129
+
130
+ array_unshift($statuses, array('label'=>'', 'value'=>''));
131
+ $this->getMassactionBlock()->addItem('status', array(
132
+ 'label'=> Mage::helper('pnsofortueberweisung')->__('Change status'),
133
+ 'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
134
+ 'additional' => array(
135
+ 'visibility' => array(
136
+ 'name' => 'status',
137
+ 'type' => 'select',
138
+ 'class' => 'required-entry',
139
+ 'label' => Mage::helper('pnsofortueberweisung')->__('Status'),
140
+ 'values' => $statuses
141
+ )
142
+ )
143
+ ));
144
+ return $this;
145
+ }
146
+
147
+ public function getRowUrl($row)
148
+ {
149
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
150
+ }
151
+
152
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Paycode.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Paycode.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Form_Paycode extends Mage_Payment_Block_Form
22
+ {
23
+ /**
24
+ * Init default template for block
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->setTemplate('pnsofortueberweisung/form/paycode.phtml');
30
+ }
31
+
32
+ /**
33
+ * Retrieve payment configuration object
34
+ *
35
+ * @return Mage_Payment_Model_Config
36
+ */
37
+ protected function _getConfig()
38
+ {
39
+ return Mage::getSingleton('payment/config');
40
+ }
41
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Pnsofortueberweisung.php ADDED
@@ -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 bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Pnsofortueberweisung.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Form_Pnsofortueberweisung extends Mage_Payment_Block_Form
22
+ {
23
+ /**
24
+ * Init default template for block
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->setTemplate('pnsofortueberweisung/form/sofortueberweisung.phtml');
30
+ }
31
+
32
+ /**
33
+ * Retrieve payment configuration object
34
+ *
35
+ * @return Mage_Payment_Model_Config
36
+ */
37
+ protected function _getConfig()
38
+ {
39
+ return Mage::getSingleton('payment/config');
40
+ }
41
+
42
+ public function getNetherlandBanks($selected)
43
+ {
44
+ $bankArray = Array(
45
+ 'NL_101' => 'ING Calculator',
46
+ 'NL_102' => 'Fortis Bank',
47
+ 'NL_103' => 'ABN Amro Bank',
48
+ 'NL_104' => 'SNS Bank',
49
+ 'NL_105' => 'Rabobank',
50
+ 'NL_106' => 'ING Wachtwoord',
51
+ 'NL_109' => 'SNS Regio Bank',
52
+ );
53
+
54
+ foreach($bankArray AS $key => $val){
55
+ $selectArray[$key] = Array('value' => $val,'selected' => 0);
56
+ if($key == $selected){
57
+ $selectArray[$key]['selected'] = 1;
58
+ }
59
+ }
60
+
61
+ return $selectArray;
62
+ }
63
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Paycode.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Paycode.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Info_Paycode extends Mage_Payment_Block_Info
22
+ {
23
+ /**
24
+ * Init default template for block
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->setTemplate('pnsofortueberweisung/info/paycode.phtml');
30
+ }
31
+
32
+ /**
33
+ * Retrieve info model
34
+ *
35
+ * @return Mage_Sofortueberweisung_Model_Info
36
+ */
37
+ public function getInfo()
38
+ {
39
+ $info = $this->getData('info');
40
+
41
+ if (!($info instanceof Mage_Payment_Model_Info)) {
42
+ Mage::throwException($this->__('Can not retrieve payment info model object.'));
43
+ }
44
+ return $info;
45
+ }
46
+
47
+ /**
48
+ * Retrieve payment method model
49
+ *
50
+ * @return Mage_Payment_Model_Method_Abstract
51
+ */
52
+ public function getMethod()
53
+ {
54
+ return $this->getInfo()->getMethodInstance();
55
+ }
56
+
57
+ public function toPdf()
58
+ {
59
+ $this->setTemplate('pnsofortueberweisung/info/pdf/paycode.phtml');
60
+ return $this->toHtml();
61
+ }
62
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Pnsofortueberweisung.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Pnsofortueberweisung.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Info_Pnsofortueberweisung extends Mage_Payment_Block_Info
22
+ {
23
+ /**
24
+ * Init default template for block
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->setTemplate('pnsofortueberweisung/info/sofortueberweisung.phtml');
30
+ }
31
+
32
+ /**
33
+ * Retrieve info model
34
+ *
35
+ * @return Mage_Sofortueberweisung_Model_Info
36
+ */
37
+ public function getInfo()
38
+ {
39
+ $info = $this->getData('info');
40
+
41
+ if (!($info instanceof Mage_Payment_Model_Info)) {
42
+ Mage::throwException($this->__('Can not retrieve payment info model object.'));
43
+ }
44
+ return $info;
45
+ }
46
+
47
+ /**
48
+ * Retrieve payment method model
49
+ *
50
+ * @return Mage_Payment_Model_Method_Abstract
51
+ */
52
+ public function getMethod()
53
+ {
54
+ return $this->getInfo()->getMethodInstance();
55
+ }
56
+
57
+ public function toPdf()
58
+ {
59
+ $this->setTemplate('pnsofortueberweisung/info/pdf/sofortueberweisung.phtml');
60
+ return $this->toHtml();
61
+ }
62
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Infobox.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Infobox.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Infobox extends Mage_Core_Block_Template
22
+ {
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('pnsofortueberweisung/infobox.phtml');
27
+ }
28
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Pnsofortueberweisung.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Pnsofortueberweisung.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Pnsofortueberweisung extends Mage_Core_Block_Abstract
22
+ {
23
+ protected function _toHtml()
24
+ {
25
+ $payment = $this->getOrder()->getPayment()->getMethodInstance();
26
+
27
+ if($payment->getConfigData('project_pswd')){
28
+ $form = new Varien_Data_Form();
29
+ $form->setAction($payment->getUrl())
30
+ ->setId('pnsofortueberweisung')
31
+ ->setName('pnsofortueberweisung')
32
+ ->setMethod('POST')
33
+ ->setUseContainer(true);
34
+
35
+ foreach ($payment->getFormFields() as $field=>$value) {
36
+ $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
37
+ }
38
+ $html = '<html><body>';
39
+ $html.= $this->__('You will be redirected to Sofortueberweisung in a few seconds.');
40
+ $html.= $form->toHtml();
41
+ $html.= '<script type="text/javascript">document.getElementById("pnsofortueberweisung").submit();</script>';
42
+ $html.= '</body></html>';
43
+
44
+ return $html;
45
+ }else{
46
+ $html = $this->__('Theres no password defined');
47
+ return $html;
48
+ }
49
+ }
50
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Pnsofortueberweisungnotice.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Pnsofortueberweisungnotice.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Pnsofortueberweisungnotice extends Mage_Core_Block_Template
22
+ {
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('pnsofortueberweisung/notice.phtml');
27
+ }
28
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/Data.php ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Data.php 278 2010-08-12 15:31:55Z poser $
20
+ */
21
+
22
+ class Paymentnetwork_Pnsofortueberweisung_Helper_Data extends Mage_Core_Helper_Abstract
23
+ {
24
+ var $hashfunction;
25
+ var $password;
26
+ var $password2;
27
+ var $formActionUrl;
28
+ var $version;
29
+
30
+
31
+
32
+ function classPnSofortueberweisung($password = '', $hashfunction = 'sha1') {
33
+
34
+ $this->password = $password;
35
+ $this->password2 = '';
36
+ $this->hashfunction = $hashfunction;
37
+ $this->version = 'pn_mag_1.1.4';
38
+ $this->formActionUrl = 'https://www.sofortueberweisung.de/payment/start?';
39
+
40
+
41
+ return true;
42
+ }
43
+
44
+ /**
45
+ * @param int $userId
46
+ * @param int $projectId
47
+ * @param string $amount
48
+ * @param string $currency EUR|CHF
49
+ * @param string [optional] $reason1
50
+ * @param string [optional] $reason2
51
+ * @param string [optional] $userVariable0
52
+ * @param string [optional] $userVariable1
53
+ * @param string [optional] $userVariable2
54
+ * @param string [optional] $userVariable3
55
+ * @param string [optional] $userVariable4
56
+ * @param string [optional] $userVariable5
57
+ * @param string [optional] $senderHolder
58
+ * @param string [optional] $senderAccountNumber
59
+ * @param string [optional] $senderBankCode
60
+ * @param string [optional] $senderCountryId
61
+ * @return string url with urlencoded variables
62
+ */
63
+ function getPaymentUrl($userId, $projectId, $amount, $currency,
64
+ $reason1 = '' , $reason2 = '' , $userVariable0 = '' , $userVariable1 = '' , $userVariable2 = '' ,
65
+ $userVariable3 = '' , $userVariable4 = '' , $userVariable5 = '',
66
+ $senderHolder = '', $senderAccountNumber = '', $senderBankCode = '', $senderCountryId = ''){
67
+
68
+
69
+ $data = $this->getPaymentParameters($userId, $projectId, $amount, $currency,
70
+ $reason1, $reason2, $userVariable0, $userVariable1, $userVariable2,
71
+ $userVariable3, $userVariable4, $userVariable5,
72
+ $senderHolder, $senderAccountNumber, $senderBankCode, $senderCountryId);
73
+
74
+ $dataString = '';
75
+ foreach ($data as $key => $value) {
76
+ $dataString .= $key.'='.urlencode($value).'&';
77
+ }
78
+ $dataString = substr($dataString, 0, -1); //remove last &
79
+
80
+ return $this->formActionUrl.$dataString;
81
+ }
82
+
83
+ /**
84
+ * @param int $userId
85
+ * @param int $projectId
86
+ * @param string $amount
87
+ * @param string $currency EUR|CHF
88
+ * @param string [optional] $reason1
89
+ * @param string [optional] $reason2
90
+ * @param string [optional] $userVariable0
91
+ * @param string [optional] $userVariable1
92
+ * @param string [optional] $userVariable2
93
+ * @param string [optional] $userVariable3
94
+ * @param string [optional] $userVariable4
95
+ * @param string [optional] $userVariable5
96
+ * @param string [optional] $senderHolder
97
+ * @param string [optional] $senderAccountNumber
98
+ * @param string [optional] $senderBankCode
99
+ * @param string [optional] $senderCountryId
100
+ * @return array array with parameters for payment message
101
+ */
102
+ function getPaymentParameters($userId, $projectId, $amount, $currency,
103
+ $reason1 = '' , $reason2 = '' , $userVariable0 = '' , $userVariable1 = '' , $userVariable2 = '' ,
104
+ $userVariable3 = '' , $userVariable4 = '' , $userVariable5 = '',
105
+ $senderHolder = '', $senderAccountNumber = '', $senderBankCode = '', $senderCountryId = '') {
106
+
107
+ $tmparray = array(
108
+ $userId,
109
+ $projectId,
110
+ $senderHolder,
111
+ $senderAccountNumber,
112
+ $senderBankCode,
113
+ $senderCountryId,
114
+ $amount,
115
+ $currency,
116
+ $reason1,
117
+ $reason2,
118
+ $userVariable0,
119
+ $userVariable1,
120
+ $userVariable2,
121
+ $userVariable3,
122
+ $userVariable4,
123
+ $userVariable5,
124
+ $this->password);
125
+
126
+ $hash = $this->generateHash(implode("|", $tmparray));
127
+
128
+ $data['user_id'] = $userId;
129
+ $data['project_id'] = $projectId;
130
+ $data['amount'] = $amount;
131
+ $data['currency_id'] = $currency;
132
+ $data['reason_1'] = $reason1;
133
+ $data['reason_2'] = $reason2;
134
+ $data['user_variable_0'] = $userVariable0;
135
+ $data['user_variable_1'] = $userVariable1;
136
+ $data['user_variable_2'] = $userVariable2;
137
+ $data['user_variable_3'] = $userVariable3;
138
+ $data['user_variable_4'] = $userVariable4;
139
+ $data['user_variable_5'] = $userVariable5;
140
+ $data['hash'] = $hash;
141
+ $data['encoding'] = 'UTF-8';
142
+ $data['payment_module'] = $this->version;
143
+ $data['interface_version'] = $this->version;
144
+
145
+ return $data;
146
+ }
147
+
148
+ /**
149
+ * checks server response and gets parameters
150
+ * @return $data array|string response parameters or ERROR_WRONG_HASH|ERROR_NO_ORDER_DETAILS if error
151
+ *
152
+ */
153
+ function getNotification(){
154
+
155
+ $fields = array(
156
+ 'transaction', 'user_id', 'project_id',
157
+ 'sender_holder', 'sender_account_number', 'sender_bank_code', 'sender_bank_name', 'sender_bank_bic', 'sender_iban', 'sender_country_id',
158
+ 'recipient_holder', 'recipient_account_number', 'recipient_bank_code', 'recipient_bank_name', 'recipient_bank_bic', 'recipient_iban', 'recipient_country_id',
159
+ 'international_transaction', 'amount', 'currency_id',
160
+ 'reason_1', 'reason_2',
161
+ 'security_criteria',
162
+ 'user_variable_0', 'user_variable_1', 'user_variable_2', 'user_variable_3', 'user_variable_4', 'user_variable_5',
163
+ 'created'
164
+ );
165
+
166
+ $data = array();
167
+ foreach($fields as $key) {
168
+ $data[$key] = $_POST[$key];
169
+ }
170
+
171
+ //sanitize input
172
+ $data['amount'] = number_format($data['amount'], 2, '.', '');
173
+ $data['transaction'] = preg_replace('#[^A-Za-z0-9_-]+#', '', $data['transaction']);
174
+ $data['user_id'] = preg_replace('#[^0-9]+#', '', $data['user_id']);
175
+ $data['project_id'] = preg_replace('#[^0-9]+#', '', $data['project_id']);
176
+
177
+ if (empty($data['user_id']) || empty($data['project_id']) || empty($data['amount']) || empty($_POST['hash'])) {
178
+ return 'ERROR_NOTIFICATION_INCOMPLETE';
179
+ }
180
+
181
+ if(empty($this->password)) {
182
+ return 'ERROR_NO_PASSWORD';
183
+ }
184
+ $data['project_password'] = $this->password;
185
+
186
+ $validationhash = $this->generateHash(implode('|', $data));
187
+ $messagehash = $_POST['hash'];
188
+
189
+ if ($validationhash != $messagehash) {
190
+ return 'ERROR_WRONG_HASH';
191
+ }
192
+
193
+ return $data;
194
+ }
195
+
196
+ /**
197
+ * checks wich hash algorithms are supported by the server
198
+ * and returns the best one
199
+ *
200
+ * @return sha512|sha256|sha1|md5|empty string
201
+ */
202
+ function getSupportedHashAlgorithm() {
203
+
204
+ $algorithms = $this->getSupportedHashAlgorithms();
205
+
206
+ if(is_array($algorithms))
207
+ return $algorithms[0];
208
+ else
209
+ return ''; //no hash function found
210
+ }
211
+
212
+ /**
213
+ * checks wich hash algorithms are supported by the server
214
+ *
215
+ * @return array with all supported algorithms, preferred as first one (index 0)
216
+ */
217
+ function getSupportedHashAlgorithms() {
218
+
219
+ $algorithms = array();
220
+
221
+ if(function_exists('hash') && in_array('sha512', hash_algos()))
222
+ $algorithms[] = 'sha512';
223
+
224
+ if(function_exists('hash') && in_array('sha256', hash_algos()))
225
+ $algorithms[] = 'sha256';
226
+
227
+ if(function_exists('sha1')) //deprecated
228
+ $algorithms[] = 'sha1';
229
+
230
+ if(function_exists('md5')) //deprecated
231
+ $algorithms[] = 'md5';
232
+
233
+ return $algorithms;
234
+ }
235
+
236
+
237
+ /**
238
+ * generates a html-page that sets post-parameters and redirects to the SU-autoinstaller
239
+ * sets password, password2 and hashfunction
240
+ *
241
+ * @param unknown_type $projectName
242
+ * @param unknown_type $projectHomepage
243
+ * @param unknown_type $projectEmail
244
+ * @param unknown_type $projectLanguage
245
+ * @param unknown_type $currency
246
+ * @param unknown_type $cancelLink
247
+ * @param unknown_type $successLink
248
+ * @param unknown_type $notificationLink
249
+ * @param unknown_type $backLink
250
+ * @return string
251
+ */
252
+ function getAutoInstallPage($projectName, $projectHomepage, $projectEmail, $projectLanguage, $currency,
253
+ $cancelLink, $successLink, $notificationLink, $backLink, $shopSystemId){
254
+
255
+ $this->password = $this->generateRandomValue();
256
+ $this->password2 = $this->generateRandomValue();
257
+ $this->hashfunction = $this->getSupportedHashAlgorithm();
258
+
259
+ $html = '
260
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
261
+ <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
262
+ <head>
263
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
264
+ <title>Schnellregistrierung | sofortueberweisung.de</title>
265
+ </head>
266
+ <body onload="document.getElementById(\'form\').submit()">
267
+ <form method="post" action="https://www.sofortueberweisung.de/payment/createNew/" id="form">
268
+ <input type="hidden" name="project_name" value="'.$projectName.'">
269
+ <input type="hidden" name="project_homepage" value="'.$projectHomepage.'">
270
+ <input type="hidden" name="projectsnotification_email_email" value="'.$projectEmail.'">
271
+ <input type="hidden" name="projectsnotification_email_activated" value="1">
272
+ <input type="hidden" name="projectsnotification_email_language_id" value="'.$projectLanguage.'">
273
+ <input type="hidden" name="projectssetting_interface_cancel_link" value="'.$cancelLink.'">
274
+ <input type="hidden" name="projectssetting_interface_success_link_redirect" value="1">
275
+ <input type="hidden" name="projectssetting_interface_success_link" value="'.$successLink.'">
276
+ <input type="hidden" name="projectssetting_currency_id" value="'.$currency.'">
277
+ <input type="hidden" name="projectssetting_locked_amount" value="1">
278
+ <input type="hidden" name="projectssetting_locked_reason_1" value="1">
279
+ <input type="hidden" name="projectssetting_locked_reason_2" value="1">
280
+ <input type="hidden" name="projectssetting_interface_input_hash_check_enabled" value="1">
281
+ <input type="hidden" name="projectssetting_project_password" value="'.$this->password.'">
282
+ <input type="hidden" name="project_notification_password" value="'.$this->password2.'">
283
+ <input type="hidden" name="project_shop_system_id" value="'.$shopSystemId.'">
284
+ <input type="hidden" name="project_hash_algorithm" value="'.$this->hashfunction.'">
285
+ <input type="hidden" name="user_shop_system_id" value="'.$shopSystemId.'">
286
+ <input type="hidden" name="projectsnotification_http_activated" value="1">
287
+ <input type="hidden" name="projectsnotification_http_url" value="'.$notificationLink.'">
288
+ <input type="hidden" name="projectsnotification_http_method" value="1">
289
+ <input type="hidden" name="backlink" value="'.$backLink.'">
290
+ <input type="hidden" name="debug" value="0">
291
+ <noscript><input type="submit"></noscript>
292
+ </form>
293
+ </body>
294
+ </html>
295
+ ';
296
+ return $html;
297
+ }
298
+
299
+ /**
300
+ * @param string $data string to be hashed
301
+ * @return string the hash
302
+ */
303
+ function generateHash($data){
304
+
305
+ if($this->hashfunction == 'sha1')
306
+ return sha1($data);
307
+
308
+ //mcrypt installed?
309
+ if(function_exists('hash') && in_array($this->hashfunction, hash_algos()))
310
+ return hash($this->hashfunction, $data);
311
+
312
+ return md5($data); //fallback to md5
313
+ }
314
+
315
+ /**
316
+ * @param int [optional] $length length of return value, default 24
317
+ * @return string
318
+ */
319
+ function generateRandomValue($length = 24) {
320
+ $randomValue = '';
321
+
322
+ //if php >= 5.3 and openssl installed we will use its more secure random generator
323
+ if(function_exists('openssl_random_pseudo_bytes')) {
324
+ $p = base64_encode(openssl_random_pseudo_bytes($length, $strong)); //output is base64: a-zA-Z0-9/+
325
+ if($strong === TRUE)
326
+ {
327
+ $randomValue = preg_replace('#[^A-Za-z0-9]#', '', $p); //remove all special chars
328
+ $randomValue = substr($randomValue, 0, $length); //base64 is about 33% longer, so needs to get truncated
329
+ }
330
+ }
331
+
332
+ //fallback to mt_rand for php < 5.3
333
+ if(strlen($randomValue) < $length)
334
+ {
335
+ $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; //62 chars 0-9A-Za-z
336
+ $charactersLength = strlen($characters)-1;
337
+
338
+ //select some random characters from all characters
339
+ for ($i = 0; $i < $length; $i++) {
340
+ $randomValue .= $characters[mt_rand(0, $charactersLength)];
341
+ }
342
+ }
343
+
344
+ return $randomValue;
345
+ }
346
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Order.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Order.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Convert_Order extends Mage_Sales_Model_Convert_Order
22
+ {
23
+ /**
24
+ * Convert order payment to quote payment
25
+ *
26
+ * @param Mage_Sales_Model_Order_Payment $payment
27
+ * @return Mage_Sales_Model_Quote_Payment
28
+ */
29
+ public function paymentToQuotePayment(Mage_Sales_Model_Order_Payment $payment, $quotePayment=null)
30
+ {
31
+ $quotePayment = parent::paymentToQuotePayment($payment, $quotePayment);
32
+
33
+ $quotePayment->setSuAccountNumber($payment->getSuAccountNumber())
34
+ ->setSuBankCode($payment->getSuBankCode())
35
+ ->setSuNlBankCode($payment->getSuNlBankCode())
36
+ ->setSuPaycode($payment->getSuPaycode())
37
+ ->setSuSecurity($payment->getSuSecurity())
38
+ ->setSuIban($payment->getSuIban())
39
+ ->setSuBic($payment->getSuBic())
40
+ ->setSuHolder($payment->getSuHolder());
41
+
42
+ return $quotePayment;
43
+ }
44
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Quote.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Quote.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Convert_Quote extends Mage_Sales_Model_Convert_Quote
22
+ {
23
+
24
+ /**
25
+ * Convert quote payment to order payment
26
+ *
27
+ * @param Mage_Sales_Model_Quote_Payment $payment
28
+ * @return Mage_Sales_Model_Quote_Payment
29
+ */
30
+ public function paymentToOrderPayment(Mage_Sales_Model_Quote_Payment $payment)
31
+ {
32
+ $orderPayment = parent::paymentToOrderPayment($payment);
33
+ $orderPayment->setSuAccountNumber($payment->getSuAccountNumber())
34
+ ->setSuBankCode($payment->getSuBankCode())
35
+ ->setSuNlBankCode($payment->getSuNlBankCode())
36
+ ->setSuPaycode($payment->getSuPaycode())
37
+ ->setSuSecurity($payment->getSuSecurity())
38
+ ->setSuIban($payment->getSuIban())
39
+ ->setSuBic($payment->getSuBic())
40
+ ->setSuHolder($payment->getSuHolder());
41
+
42
+ return $orderPayment;
43
+ }
44
+
45
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Data/Form/Element/Link.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Paymentnetwork
22
+ * @package Paymentnetwork_Sofortueberweisung
23
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @version $Id: Link.php 190 2010-06-02 14:34:14Z thoma $
26
+ */
27
+
28
+ /**
29
+ * Data form abstract class
30
+ *
31
+ * @category Paymentnetwork
32
+ * @package Paymentnetwork_Sofortueberweisung
33
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
34
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
35
+ * @version $Id: Link.php 190 2010-06-02 14:34:14Z thoma $
36
+ */
37
+ class Varien_Data_Form_Element_Label extends Varien_Data_Form_Element_Abstract
38
+ {
39
+ public function __construct($attributes=array())
40
+ {
41
+ parent::__construct($attributes);
42
+ $this->setType('label');
43
+ }
44
+
45
+ public function getElementHtml()
46
+ {
47
+ $html = $this->getBold() ? '<strong>' : '';
48
+ $html.= $this->getValue();
49
+ $html.= $this->getBold() ? '</strong>' : '';
50
+ $html.= $this->getAfterElementHtml();
51
+ return $html;
52
+ }
53
+
54
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Pnsofortueberweisung.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Paymentnetwork_Pnsofortueberweisung_Model_Mysql4_Pnsofortueberweisung extends Mage_Core_Model_Mysql4_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ // Note that the sofortueberweisung_id refers to the key field in your database table.
8
+ $this->_init('pnsofortueberweisung/pnsofortueberweisung', 'pnsofortueberweisung_id');
9
+ }
10
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Pnsofortueberweisung/Collection.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Paymentnetwork_Pnsofortueberweisung_Model_Mysql4_Pnsofortueberweisung_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('pnsofortueberweisung/pnsofortueberweisung');
9
+ }
10
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Mysql4/Setup.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Setup.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
22
+ {
23
+
24
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Params.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Params.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Params extends Varien_Object{}
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Paycode.php ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Paycode.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Paycode extends Mage_Payment_Model_Method_Abstract
22
+ {
23
+
24
+ /**
25
+ * Availability options
26
+ */
27
+ protected $_code = 'paycode';
28
+ protected $_paymentMethod = 'paycode';
29
+
30
+ protected $_formBlockType = 'pnsofortueberweisung/form_paycode';
31
+ protected $_infoBlockType = 'pnsofortueberweisung/info_paycode';
32
+
33
+ const STATUS_UNKNOWN = 'UNKNOWN';
34
+ const STATUS_APPROVED = 'APPROVED';
35
+ const STATUS_ERROR = 'ERROR';
36
+ const STATUS_DECLINED = 'DECLINED';
37
+ const STATUS_VOID = 'VOID';
38
+ const STATUS_SUCCESS = 'SUCCESS';
39
+
40
+ protected $_isGateway = false;
41
+ protected $_canAuthorize = true;
42
+ protected $_canCapture = false;
43
+ protected $_canCapturePartial = false;
44
+ protected $_canRefund = false;
45
+ protected $_canVoid = false;
46
+ protected $_canUseInternal = false;
47
+ protected $_canUseCheckout = true;
48
+ protected $_canUseForMultishipping = true;
49
+ protected $_supportedLocales = array('en', 'de', 'fr');
50
+
51
+ public function _construct()
52
+ {
53
+ parent::_construct();
54
+ $this->_init('pnsofortueberweisung/paycode');
55
+ }
56
+
57
+ public function getUrl(){
58
+ return $this->getConfigData('url');
59
+ }
60
+
61
+ /**
62
+ * Return payment method type string
63
+ *
64
+ * @return string
65
+ */
66
+ public function getPaymentMethodType()
67
+ {
68
+ return $this->_paymentMethod;
69
+ }
70
+
71
+ public function getSecurityKey(){
72
+ return uniqid(rand(), true);
73
+ }
74
+
75
+ public function assignData($data)
76
+ {
77
+ if (!($data instanceof Varien_Object)) {
78
+ $data = new Varien_Object($data);
79
+ }
80
+ $info = $this->getInfoInstance();
81
+ $info->setSuAccountNumber($data->getSuAccountNumber())
82
+ ->setSuBankCode($data->getSuBankCode())
83
+ ->setSuPaycode($data->getSuPaycode())
84
+ ->setSuIban($data->getSuIban())
85
+ ->setSuBic($data->getSuBic())
86
+ ->setSuHolder($data->getSuHolder());
87
+
88
+ return $this;
89
+ }
90
+
91
+ public function validate()
92
+ {
93
+ parent::validate();
94
+
95
+ if (!$this->getQuote()->getPayment()->getSuHolder()) {
96
+ Mage::throwException(Mage::helper('pnsofortueberweisung')->__('Please fill out the account holder'));
97
+ }
98
+ if (!$this->getQuote()->getPayment()->getSuBankCode()) {
99
+ Mage::throwException(Mage::helper('pnsofortueberweisung')->__('Please fill out the account number'));
100
+ }
101
+ if (!$this->getQuote()->getPayment()->getSuBankCode()) {
102
+ Mage::throwException(Mage::helper('pnsofortueberweisung')->__('Please fill out the bank code'));
103
+ }
104
+ return $this;
105
+ }
106
+
107
+ /**
108
+ * Send authorize request to gateway
109
+ *
110
+ * @param Varien_Object $payment
111
+ * @param decimal $amount
112
+ * @return Mage_Paygate_Model_Authorizenet
113
+ */
114
+ public function authorize(Varien_Object $payment, $amount)
115
+ {
116
+ $payment->setAmount($this->getQuote()->getGrandTotal());
117
+ $error = false;
118
+ $security = $this->getSecurityKey();
119
+ $payment->setSuSecurity($security);
120
+
121
+ if($payment->getAmount()){
122
+
123
+ $amount = number_format($this->getQuote()->getGrandTotal(),2,'.','');
124
+ $billing = $this->getQuote()->getBillingAddress();
125
+
126
+ $locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
127
+ if (is_array($locale) && !empty($locale) && in_array($locale[0], $this->_supportedLocales))
128
+ $locale = strtoupper($locale[0]);
129
+ else
130
+ $locale = strtoupper($this->getDefaultLocale());
131
+
132
+ $params = Array(
133
+ 'user_id' => $this->getConfigData('customer'),
134
+ 'project_id' => $this->getConfigData('project'),
135
+ 'amount' => $amount,
136
+ 'reason_1' => Mage::helper('pnsofortueberweisung')->__('Order: ').$this->getQuote()->getReservedOrderId(),
137
+ 'reason_2' => '',
138
+ 'sender_holder' => $payment->getSuHolder(),
139
+ 'sender_account_number' => $payment->getSuAccountNumber(),
140
+ 'sender_bank_code' => $payment->getSuBankCode(),
141
+ 'sender_bank_bic' => $payment->getSuBic(),
142
+ 'sender_iban' => $payment->getSuIban(),
143
+ 'sender_country_id' => $billing->getCountry(),
144
+ 'user_variable_0' => $this->getQuote()->getReservedOrderId(),
145
+ 'user_variable_1' => $payment->getSuSecurity(),
146
+ 'user_variable_2' => '',
147
+ 'user_variable_3' => '',
148
+ 'user_variable_4' => '',
149
+ 'user_variable_5' => '',
150
+ 'expires' => $this->getConfigData('expires'),
151
+ 'language_id' => $locale,
152
+ );
153
+
154
+ if($this->getConfigData('check_input_yesno') == 1)
155
+ $params['hash'] = md5(implode('|',$params).'|'.$this->getConfigData('project_pswd'));
156
+
157
+ $result = $this->_postRequest($params);
158
+
159
+ if(strstr($result,'Errors') === false){
160
+ $payment->setSuPaycode($result);
161
+ $payment->setStatus(self::STATUS_APPROVED);
162
+ }else{
163
+ $error = Mage::helper('pnsofortueberweisung')->__('Please check your account data.');
164
+ }
165
+ }else{
166
+ $error = Mage::helper('pnsofortueberweisung')->__('Invalid amount for authorization.');
167
+ }
168
+
169
+ if ($error !== false) {
170
+ Mage::throwException($error);
171
+ }
172
+
173
+ return $this;
174
+ }
175
+
176
+ protected function _postRequest($request)
177
+ {
178
+ $client = new Varien_Http_Client();
179
+
180
+ $client->setUri($this->getUrl());
181
+ $client->setConfig(array(
182
+ 'maxredirects'=>2,
183
+ 'timeout'=>60,
184
+ ));
185
+
186
+ $client->setParameterGet($request);
187
+ $client->setMethod(Zend_Http_Client::GET);
188
+ try {
189
+ $response = $client->request();
190
+ } catch (Exception $e) {
191
+ Mage::throwException(
192
+ Mage::helper('pnsofortueberweisung')->__('Gateway request error: %s', $e->getMessage())
193
+ );
194
+ }
195
+
196
+ $responseBody = $response->getBody();
197
+
198
+ return $responseBody;
199
+ }
200
+
201
+ /**
202
+ * Get quote
203
+ *
204
+ * @return Mage_Sales_Model_Order
205
+ */
206
+ public function getQuote()
207
+ {
208
+ if (empty($this->_quote)) {
209
+ $this->_quote = $this->getCheckout()->getQuote();
210
+ }
211
+ return $this->_quote;
212
+ }
213
+
214
+ /**
215
+ * Get checkout
216
+ *
217
+ * @return Mage_Sales_Model_Order
218
+ */
219
+ public function getCheckout()
220
+ {
221
+ if (empty($this->_checkout)) {
222
+ $this->_checkout = Mage::getSingleton('checkout/session');
223
+ }
224
+ return $this->_checkout;
225
+ }
226
+
227
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Pnsofortueberweisung.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Pnsofortueberweisung.php 199 2010-06-10 14:56:03Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Model_Pnsofortueberweisung extends Mage_Payment_Model_Method_Abstract
22
+ {
23
+
24
+ /**
25
+ * Availability options
26
+ */
27
+ protected $_code = 'pnsofortueberweisung';
28
+ protected $_paymentMethod = 'pnsofortueberweisung';
29
+
30
+ protected $_formBlockType = 'pnsofortueberweisung/form_pnsofortueberweisung';
31
+ protected $_infoBlockType = 'pnsofortueberweisung/info_pnsofortueberweisung';
32
+
33
+ protected $_isGateway = false;
34
+ protected $_canAuthorize = true;
35
+ protected $_canCapture = false;
36
+ protected $_canCapturePartial = false;
37
+ protected $_canRefund = false;
38
+ protected $_canVoid = false;
39
+ protected $_canUseInternal = false;
40
+ protected $_canUseCheckout = true;
41
+ protected $_canUseForMultishipping = true;
42
+
43
+
44
+ public function _construct()
45
+ {
46
+ parent::_construct();
47
+ $this->_init('pnsofortueberweisung/pnsofortueberweisung');
48
+ }
49
+
50
+ public function getUrl(){
51
+ return $this->getConfigData('url');
52
+ }
53
+
54
+ /**
55
+ * Return redirect block type
56
+ *
57
+ * @return string
58
+ */
59
+ public function getRedirectBlockType()
60
+ {
61
+ return $this->_redirectBlockType;
62
+ }
63
+
64
+ /**
65
+ * Return payment method type string
66
+ *
67
+ * @return string
68
+ */
69
+ public function getPaymentMethodType()
70
+ {
71
+ return $this->_paymentMethod;
72
+ }
73
+
74
+
75
+ /**
76
+ * Get redirect URL
77
+ *
78
+ * @return Mage_Payment_Helper_Data
79
+ */
80
+ public function getOrderPlaceRedirectUrl()
81
+ {
82
+ return Mage::getUrl('pnsofortueberweisung/pnsofortueberweisung/redirect');
83
+ }
84
+
85
+ public function assignData($data)
86
+ {
87
+ if (!($data instanceof Varien_Object)) {
88
+ $data = new Varien_Object($data);
89
+ }
90
+ $info = $this->getInfoInstance();
91
+ $info->setSuAccountNumber($data->getSuAccountNumber())
92
+ ->setSuBankCode($data->getSuBankCode())
93
+ ->setSuNlBankCode($data->getSuNlBankCode())
94
+ ->setSuHolder($data->getSuHolder());
95
+
96
+ return $this;
97
+ }
98
+
99
+ public function getSecurityKey(){
100
+ return uniqid(rand(), true);
101
+ }
102
+
103
+ public function validate()
104
+ {
105
+ parent::validate();
106
+
107
+
108
+ return $this;
109
+ }
110
+
111
+ public function getFormFields()
112
+ {
113
+ $amount = number_format($this->getOrder()->getGrandTotal(),2,'.','');
114
+ $billing = $this->getOrder()->getBillingAddress();
115
+ $security = $this->getSecurityKey();
116
+
117
+ $this->getOrder()->getPayment()->setSuSecurity($security)->save();
118
+
119
+ $pnSu = Mage::helper('pnsofortueberweisung');
120
+ $pnSu->classPnSofortueberweisung($this->getConfigData('project_pswd'));
121
+ return $pnSu->getPaymentParameters(
122
+ $this->getConfigData('customer'),
123
+ $this->getConfigData('project'),
124
+ $amount,
125
+ $this->getOrder()->getOrderCurrencyCode(),
126
+ Mage::helper('pnsofortueberweisung')->__('Order No.: ').$this->getOrder()->getRealOrderId(),
127
+ '' ,
128
+ $this->getOrder()->getRealOrderId(),
129
+ $this->getOrder()->getPayment()->getSuSecurity());
130
+
131
+ }
132
+
133
+ /**
134
+ * Get quote
135
+ *
136
+ * @return Mage_Sales_Model_Order
137
+ */
138
+ public function getQuote()
139
+ {
140
+ if (empty($this->_quote)) {
141
+ $this->_quote = $this->getCheckout()->getQuote();
142
+ }
143
+ return $this->_quote;
144
+ }
145
+
146
+ /**
147
+ * Get checkout
148
+ *
149
+ * @return Mage_Sales_Model_Order
150
+ */
151
+ public function getCheckout()
152
+ {
153
+ if (empty($this->_checkout)) {
154
+ $this->_checkout = Mage::getSingleton('checkout/session');
155
+ }
156
+ return $this->_checkout;
157
+ }
158
+
159
+ /**
160
+ * Get order model
161
+ *
162
+ * @return Mage_Sales_Model_Order
163
+ */
164
+ public function getOrder()
165
+ {
166
+ if (!$this->_order) {
167
+ $paymentInfo = $this->getInfoInstance();
168
+ $this->_order = Mage::getModel('sales/order')
169
+ ->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
170
+ }
171
+ return $this->_order;
172
+ }
173
+
174
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Status.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Paymentnetwork_Pnsofortueberweisung_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('pnsofortueberweisung')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('pnsofortueberweisung')->__('Disabled')
13
+ );
14
+ }
15
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/Adminhtml/PnsofortueberweisungController.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: PnsofortueberweisungController.php 205 2010-06-14 12:53:41Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Adminhtml_PnsofortueberweisungController extends Mage_Adminhtml_Controller_Action
22
+ {
23
+
24
+ protected function _initAction() {
25
+ $this->loadLayout()
26
+ ->_setActiveMenu('pnsofortueberweisung/items')
27
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
28
+
29
+ return $this;
30
+ }
31
+
32
+ public function indexAction() {
33
+ $this->_initAction()
34
+ ->renderLayout();
35
+ }
36
+
37
+ public function saveConfigAction() {
38
+ $params = $this->getRequest()->getParams();
39
+ $session = Mage::getSingleton('adminhtml/session');
40
+ if($this->getRequest()->getParams()){
41
+ $groups = Array();
42
+ $groups['pnsofortueberweisung']['fields']['customer']['value'] = $params["user_id"];
43
+ $groups['pnsofortueberweisung']['fields']['project']['value'] = $params["project_id"];
44
+ $groups['pnsofortueberweisung']['fields']['check_input_yesno']['value'] = 1;
45
+ $groups['pnsofortueberweisung']['fields']['project_pswd']['value'] = $session->getData('projectssetting_project_password');
46
+ $session->unsetData('projectssetting_project_password');
47
+ $groups['pnsofortueberweisung']['fields']['notification_pswd']['value'] = $session->getData('project_notification_password');
48
+ $session->unsetData('project_notification_password');
49
+
50
+ #echo "<pre>";
51
+ #print_r($groups);
52
+ #echo "</pre>";
53
+
54
+ try {
55
+ Mage::getModel('adminhtml/config_data')
56
+ ->setSection('payment')
57
+ ->setWebsite($this->getRequest()->getParam('website'))
58
+ ->setStore($this->getRequest()->getParam('store'))
59
+ ->setGroups($groups)
60
+ ->save();
61
+ }catch (Mage_Core_Exception $e) {
62
+ foreach(split("\n", $e->getMessage()) as $message) {
63
+ $session->addError($message);
64
+ }
65
+ }
66
+ catch (Exception $e) {
67
+ $session->addException($e, Mage::helper('adminhtml')->__('Error while saving this configuration: '.$e->getMessage()));
68
+ }
69
+
70
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('pnsofortueberweisung')->__('Item was successfully saved'));
71
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
72
+ }
73
+ #echo "aha";
74
+ #exit;
75
+ $this->_redirect('adminhtml/system_config/edit', array('section'=>'payment'));
76
+ return;
77
+ }
78
+
79
+ public function saveConfigPcAction() {
80
+
81
+ $params = $this->getRequest()->getParams();
82
+ $session = Mage::getSingleton('adminhtml/session');
83
+ if($this->getRequest()->getParams()){
84
+ $groups = Array();
85
+ $groups['paycode']['fields']['customer']['value'] = $params["user_id"];
86
+ $groups['paycode']['fields']['project']['value'] = $params["project_id"];
87
+ $groups['paycode']['fields']['check_input_yesno']['value'] = 1;
88
+
89
+ #echo "<pre>";
90
+ #print_r($groups);
91
+ #echo "</pre>";
92
+
93
+ try {
94
+ Mage::getModel('adminhtml/config_data')
95
+ ->setSection('payment')
96
+ ->setWebsite($this->getRequest()->getParam('website'))
97
+ ->setStore($this->getRequest()->getParam('store'))
98
+ ->setGroups($groups)
99
+ ->save();
100
+ }catch (Mage_Core_Exception $e) {
101
+ foreach(split("\n", $e->getMessage()) as $message) {
102
+ $session->addError($message);
103
+ }
104
+ }
105
+ catch (Exception $e) {
106
+ $session->addException($e, Mage::helper('adminhtml')->__('Error while saving this configuration: '.$e->getMessage()));
107
+ }
108
+
109
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('pnsofortueberweisung')->__('Item was successfully saved'));
110
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
111
+ }
112
+ #echo "aha";
113
+ #exit;
114
+ $this->_redirectUrl('/index.php/admin/system_config/edit/section/payment');
115
+ return;
116
+ }
117
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PcsofortueberweisungController.php ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: PcsofortueberweisungController.php 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_PaycodeController extends Mage_Core_Controller_Front_Action
22
+ {
23
+
24
+ public function returnAction()
25
+ {
26
+
27
+ $response = $this->getRequest()->getParams();
28
+
29
+ $order = Mage::getModel('sales/order');
30
+ $order->loadByIncrementId($response['orderId']);
31
+ $paymentObj = $order->getPayment()->getMethodInstance();
32
+ $payment = $order->getPayment();
33
+
34
+ if(!$payment->getSuTransactionId() && md5($payment->getSuSecurity().$paymentObj->getConfigData('project_pswd')) == $response['var1']){
35
+ $status = $this->_checkReturnedData();
36
+ if ($status && $response['orderId']) {
37
+ $order = Mage::getModel('sales/order');
38
+ $order->loadByIncrementId($response['orderId']);
39
+ if($order->getId()) {
40
+ $order->sendNewOrderEmail();
41
+ }
42
+ $this->_redirect('checkout/onepage/success');
43
+ } else {
44
+ $order = Mage::getModel('sales/order');
45
+ $order->loadByIncrementId($response['orderId']);
46
+
47
+ $order->cancel();
48
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Customer cancled payment or payment error'));
49
+ $order->save();
50
+
51
+ $this->_redirect('pnsofortueberweisung/pnsofortueberweisung/errornotice');
52
+ }
53
+ }else{
54
+ $session = $this->getCheckout();
55
+ $session->getQuote()->setIsActive(false)->save();
56
+
57
+ $this->_redirect('checkout/onepage/success');
58
+ }
59
+ }
60
+
61
+ public function returnhttpAction()
62
+ {
63
+ if (!$this->getRequest()->isGet()) {
64
+ $this->norouteAction();
65
+ return;
66
+ }
67
+
68
+ $response = $this->getRequest()->getParams();
69
+
70
+ $order = Mage::getModel('sales/order');
71
+ $order->loadByIncrementId($response['orderId']);
72
+ $paymentObj = $order->getPayment()->getMethodInstance();
73
+ $payment = $order->getPayment();
74
+
75
+ if(!$payment->getSuTransactionId() && md5($payment->getSuSecurity().$paymentObj->getConfigData('project_pswd')) == $response['var1']){
76
+ $status = $this->_checkReturnedData();
77
+ if ($status) {
78
+ $order = Mage::getModel('sales/order');
79
+ $order->loadByIncrementId($response['orderId']);
80
+ if($order->getId()) {
81
+ $order->sendNewOrderEmail();
82
+ }
83
+ } else {
84
+ $order = Mage::getModel('sales/order');
85
+ $order->loadByIncrementId($response['orderId']);
86
+ $order->cancel();
87
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Customer cancled payment or payment error'));
88
+ $order->save();
89
+ }
90
+ }
91
+ }
92
+
93
+ public function errorAction()
94
+ {
95
+ $session = $this->getCheckout();
96
+ $session->getQuote()->setIsActive(false)->save();
97
+
98
+ $order = Mage::getModel('sales/order');
99
+ $order->load($this->getCheckout()->getLastOrderId());
100
+ $order->cancel();
101
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Customer cancled payment'));
102
+ $order->save();
103
+
104
+ $this->loadLayout();
105
+ $this->getLayout()->getBlock('sofortueberweisungnotice');
106
+ $this->renderLayout();
107
+ }
108
+
109
+ /**
110
+ * Checking Get variables.
111
+ *
112
+ */
113
+ protected function _checkReturnedData()
114
+ {
115
+
116
+ $status = false;
117
+ if (!$this->getRequest()->isGet()) {
118
+ $this->norouteAction();
119
+ return;
120
+ }
121
+
122
+ //Get response
123
+ $response = $this->getRequest()->getParams();
124
+
125
+
126
+
127
+ $order = Mage::getModel('sales/order');
128
+ $order->loadByIncrementId($response['orderId']);
129
+ $paymentObj = $order->getPayment()->getMethodInstance();
130
+
131
+ if($response["transId"] && $response['orderId'] && md5($order->getPayment()->getSuSecurity().$paymentObj->getConfigData('project_pswd')) == $response['var1']){
132
+
133
+ $payment = $order->getPayment();
134
+
135
+
136
+ $payment->setStatus(Paymentnetwork_Pnsofortueberweisung_Model_Sofortueberweisung::STATUS_SUCCESS);
137
+ $payment->setStatusDescription(Mage::helper('pnsofortueberweisung')->__('Payment was successful.'));
138
+
139
+ $order->addStatusToHistory($paymentObj->getConfigData('order_status'), Mage::helper('pnsofortueberweisung')->__('Payment was successful.'));
140
+
141
+ $payment->setSuTransactionId($response["transId"]);
142
+ $order->setPayment($payment);
143
+
144
+ if($paymentObj->getConfigData('createinvoice') == 1){
145
+ if ($this->saveInvoice($order)) {
146
+ $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true);
147
+ }
148
+ }
149
+
150
+ $status = true;
151
+ } else {
152
+ $payment = $order->getPayment();
153
+ $payment->setStatus(Paymentnetwork_Pnsofortueberweisung_Model_Sofortueberweisung::STATUS_DECLINED);
154
+
155
+ $order->setPayment($payment);
156
+ $order->cancel();
157
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Payment was not successfull'));
158
+ $status = false;
159
+ }
160
+
161
+ $order->save();
162
+ return $status;
163
+ }
164
+
165
+ /**
166
+ * Save invoice for order
167
+ *
168
+ * @param Mage_Sales_Model_Order $order
169
+ * @return boolean Can save invoice or not
170
+ */
171
+ protected function saveInvoice (Mage_Sales_Model_Order $order)
172
+ {
173
+ if ($order->canInvoice()) {
174
+ $invoice = $order->prepareInvoice();
175
+
176
+ $invoice->register();
177
+ Mage::getModel('core/resource_transaction')
178
+ ->addObject($invoice)
179
+ ->addObject($invoice->getOrder())
180
+ ->save();
181
+
182
+ $invoice->sendEmail(true, '');
183
+ return true;
184
+ }
185
+
186
+ return false;
187
+ }
188
+
189
+ /**
190
+ * Get singleton of Checkout Session Model
191
+ *
192
+ * @return Mage_Checkout_Model_Session
193
+ */
194
+ public function getCheckout()
195
+ {
196
+ return Mage::getSingleton('checkout/session');
197
+ }
198
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PnsofortueberweisungController.php ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Paymentnetwork
17
+ * @package Paymentnetwork_Sofortueberweisung
18
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ * @version $Id: PnsofortueberweisungController.php 277 2010-08-12 14:55:44Z poser $
21
+ */
22
+
23
+ class Paymentnetwork_Pnsofortueberweisung_PnsofortueberweisungController extends Mage_Core_Controller_Front_Action
24
+ {
25
+
26
+ protected $_redirectBlockType = 'pnsofortueberweisung/pnsofortueberweisung';
27
+
28
+ /**
29
+ * when customer select payment method
30
+ */
31
+ public function redirectAction()
32
+ {
33
+ $session = $this->getCheckout();
34
+ $order = Mage::getModel('sales/order');
35
+ $order->loadByIncrementId($session->getLastRealOrderId());
36
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_HOLDED, Mage::helper('pnsofortueberweisung')->__('Sofortueberweisung payment loaded'));
37
+ $order->save();
38
+
39
+ $this->getResponse()->setBody(
40
+ $this->getLayout()
41
+ ->createBlock($this->_redirectBlockType)
42
+ ->setOrder($order)
43
+ ->toHtml()
44
+ );
45
+
46
+ $session->unsQuoteId();
47
+
48
+ }
49
+
50
+ public function returnAction()
51
+ {
52
+ if (!$this->getRequest()->isGet()) {
53
+ $this->norouteAction();
54
+ return;
55
+ }
56
+ $response = $this->getRequest()->getParams();
57
+
58
+ $session = $this->getCheckout();
59
+ $session->getQuote()->setIsActive(false)->save();
60
+
61
+ if(!$response['orderId']) {
62
+ $this->_redirect('pnsofortueberweisung/pnsofortueberweisung/errornotice');
63
+ } else {
64
+ $this->_redirect('checkout/onepage/success');
65
+ }
66
+ }
67
+
68
+ public function returnhttpAction()
69
+ {
70
+ if (!$this->getRequest()->isPost()) {
71
+ $this->norouteAction();
72
+ return;
73
+ }
74
+
75
+ $response = $this->getRequest()->getParams();
76
+
77
+ $order = Mage::getModel('sales/order');
78
+ $order->loadByIncrementId($response['orderId']);
79
+ $paymentObj = $order->getPayment()->getMethodInstance();
80
+ $payment = $order->getPayment();
81
+
82
+ //if(!$payment->getSuTransactionId() && md5($payment->getSuSecurity().$paymentObj->getConfigData('project_pswd')) == $response['var1']){
83
+ $status = $this->_checkReturnedData();
84
+ if ($status) {
85
+ $order = Mage::getModel('sales/order');
86
+ $order->loadByIncrementId($response['orderId']);
87
+ if($order->getId()) {
88
+ $order->sendNewOrderEmail();
89
+ }
90
+ } else {
91
+ $order = Mage::getModel('sales/order');
92
+ $order->loadByIncrementId($response['orderId']);
93
+ $order->cancel();
94
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Customer cancled payment or payment error'));
95
+ $order->save();
96
+ }
97
+ }
98
+
99
+ public function errorAction()
100
+ {
101
+ $session = $this->getCheckout();
102
+ $session->getQuote()->setIsActive(false)->save();
103
+
104
+ $order = Mage::getModel('sales/order');
105
+ $order->load($this->getCheckout()->getLastOrderId());
106
+ $order->cancel();
107
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Customer cancled payment'));
108
+ $order->save();
109
+
110
+ $this->loadLayout();
111
+ $this->getLayout()->getBlock('pnsofortueberweisungnotice');
112
+ $this->renderLayout();
113
+ }
114
+
115
+ /**
116
+ * Checking Get variables.
117
+ *
118
+ */
119
+ protected function _checkReturnedData()
120
+ {
121
+
122
+ $status = false;
123
+ if (!$this->getRequest()->isPost()) {
124
+ $this->norouteAction();
125
+ return;
126
+ }
127
+
128
+ //Get response
129
+ $response = $this->getRequest()->getParams();
130
+
131
+ $order = Mage::getModel('sales/order');
132
+ $order->loadByIncrementId($response['orderId']);
133
+ $paymentObj = $order->getPayment()->getMethodInstance();
134
+
135
+
136
+ $data = $this->getNotification($paymentObj->getConfigData('notification_pswd'));
137
+
138
+ if(!is_array($data)) {
139
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__($data));
140
+ $order->save();
141
+ $this->norouteAction();
142
+ return;
143
+ }
144
+
145
+ $orderId = $data['user_variable_0'];
146
+ //if($response["transId"] && $response['orderId'] && md5($order->getPayment()->getSuSecurity().$paymentObj->getConfigData('project_pswd')) == $response['var1']){
147
+ if($data['transaction'] && $response['orderId'] == $orderId){
148
+ $payment = $order->getPayment();
149
+
150
+ $payment->setStatus(Paymentnetwork_Pnsofortueberweisung_Model_Pnsofortueberweisung::STATUS_SUCCESS);
151
+ $payment->setStatusDescription(Mage::helper('pnsofortueberweisung')->__('Payment was successful.'));
152
+
153
+ $order->addStatusToHistory($paymentObj->getConfigData('order_status'), Mage::helper('pnsofortueberweisung')->__('Payment was successful.'));
154
+
155
+ $payment->setPnSuTransactionId($data['transaction']);
156
+
157
+ $order->setPayment($payment);
158
+
159
+ if($paymentObj->getConfigData('createinvoice') == 1){
160
+ if ($this->saveInvoice($order)) {
161
+ $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true);
162
+ }
163
+ }
164
+
165
+ $status = true;
166
+ } else {
167
+ $payment = $order->getPayment();
168
+ $payment->setStatus(Paymentnetwork_Pnsofortueberweisung_Model_Pnsofortueberweisung::STATUS_DECLINED);
169
+
170
+ $order->setPayment($payment);
171
+ $order->cancel();
172
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('pnsofortueberweisung')->__('Payment was not successfull'));
173
+ $status = false;
174
+ }
175
+
176
+ $order->save();
177
+ return $status;
178
+ }
179
+
180
+ /**
181
+ * Save invoice for order
182
+ *
183
+ * @param Mage_Sales_Model_Order $order
184
+ * @return boolean Can save invoice or not
185
+ */
186
+ protected function saveInvoice (Mage_Sales_Model_Order $order)
187
+ {
188
+ if ($order->canInvoice()) {
189
+ $invoice = $order->prepareInvoice();
190
+
191
+ $invoice->register();
192
+ Mage::getModel('core/resource_transaction')
193
+ ->addObject($invoice)
194
+ ->addObject($invoice->getOrder())
195
+ ->save();
196
+
197
+ $invoice->sendEmail(true, '');
198
+ return true;
199
+ }
200
+
201
+ return false;
202
+ }
203
+
204
+ /**
205
+ * Get singleton of Checkout Session Model
206
+ *
207
+ * @return Mage_Checkout_Model_Session
208
+ */
209
+ public function getCheckout()
210
+ {
211
+ return Mage::getSingleton('checkout/session');
212
+ }
213
+
214
+ /**
215
+ * checks server response and gets parameters
216
+ * @return $data array|string response parameters or ERROR_WRONG_HASH|ERROR_NO_ORDER_DETAILS if error
217
+ *
218
+ */
219
+ public function getNotification($pwd){
220
+
221
+ $pnSu = Mage::helper('pnsofortueberweisung');
222
+ $pnSu->classPnSofortueberweisung($pwd);
223
+ return $pnSu->getNotification();
224
+ }
225
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/config.xml ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
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 bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Paymentnetwork
17
+ * @package Paymentnetwork_Sofortueberweisung
18
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ * @version $Id: config.xml 278 2010-08-12 15:31:55Z poser $
21
+ */
22
+ -->
23
+
24
+ <config>
25
+ <modules>
26
+ <Paymentnetwork_Pnsofortueberweisung>
27
+ <!-- declare module's version information for database updates -->
28
+ <version>1.1.4</version>
29
+ </Paymentnetwork_Pnsofortueberweisung>
30
+ </modules>
31
+
32
+ <frontend>
33
+ <routers>
34
+ <pnsofortueberweisung>
35
+ <use>standard</use>
36
+ <args>
37
+ <module>Paymentnetwork_Pnsofortueberweisung</module>
38
+ <frontName>pnsofortueberweisung</frontName>
39
+ </args>
40
+ </pnsofortueberweisung>
41
+ </routers>
42
+ <layout>
43
+ <updates>
44
+ <pnsofortueberweisung>
45
+ <file>pnsofortueberweisung.xml</file>
46
+ </pnsofortueberweisung>
47
+ </updates>
48
+ </layout>
49
+ <translate>
50
+ <modules>
51
+ <Paymentnetwork_Pnsofortueberweisung>
52
+ <files>
53
+ <default>Paymentnetwork_Sofortueberweisung.csv</default>
54
+ </files>
55
+ </Paymentnetwork_Pnsofortueberweisung>
56
+ </modules>
57
+ </translate>
58
+ <secure_url>
59
+ <pnsofortueberweisung_pnsofortueberweisung>/pnsofortueberweisung/pnsofortueberweisung/</pnsofortueberweisung_pnsofortueberweisung>
60
+ </secure_url>
61
+ </frontend>
62
+
63
+ <admin>
64
+ <routers>
65
+ <pnsofortueberweisung>
66
+ <use>admin</use>
67
+ <args>
68
+ <module>Paymentnetwork_Pnsofortueberweisung</module>
69
+ <frontName>pnsofortueberweisung</frontName>
70
+ </args>
71
+ </pnsofortueberweisung>
72
+ </routers>
73
+ </admin>
74
+ <adminhtml>
75
+ <layout>
76
+ <updates>
77
+ <pnsofortueberweisung>
78
+ <file>pnsofortueberweisung.xml</file>
79
+ </pnsofortueberweisung>
80
+ </updates>
81
+ </layout>
82
+ <translate>
83
+ <modules>
84
+ <Paymentnetwork_Pnsofortueberweisung>
85
+ <files>
86
+ <default>Paymentnetwork_Sofortueberweisung.csv</default>
87
+ </files>
88
+ </Paymentnetwork_Pnsofortueberweisung>
89
+ </modules>
90
+ </translate>
91
+ </adminhtml>
92
+
93
+ <global>
94
+ <blocks>
95
+ <pnsofortueberweisung>
96
+ <class>Paymentnetwork_Pnsofortueberweisung_Block</class>
97
+ </pnsofortueberweisung>
98
+ </blocks>
99
+
100
+ <helpers>
101
+ <pnsofortueberweisung>
102
+ <class>Paymentnetwork_Pnsofortueberweisung_Helper</class>
103
+ </pnsofortueberweisung>
104
+ </helpers>
105
+
106
+ <params_pnso>
107
+ <types>
108
+ <backlink>
109
+ <param>backlink</param>
110
+ <value><![CDATA[pnsofortueberweisung/adminhtml_pnsofortueberweisung/saveConfig]]></value>
111
+ </backlink>
112
+ <debug>
113
+ <param>debug</param>
114
+ <value>0</value>
115
+ </debug>
116
+ <input_hash>
117
+ <param>projectssetting_interface_input_hash_check_enabled</param>
118
+ <value>1</value>
119
+ </input_hash>
120
+ <projectssetting_project_password>
121
+ <param>projectssetting_project_password</param>
122
+ <value></value>
123
+ </projectssetting_project_password>
124
+ <project_notification_password>
125
+ <param>project_notification_password</param>
126
+ <value></value>
127
+ </project_notification_password>
128
+ <user_partner_id>
129
+ <param>user_partner_id</param>
130
+ <value>x</value>
131
+ </user_partner_id>
132
+ <project_shop_system_id>
133
+ <param>project_shop_system_id</param>
134
+ <value>121</value>
135
+ </project_shop_system_id>
136
+ <projectssetting_interface_success_link>
137
+ <param>projectssetting_interface_success_link</param>
138
+ <value><![CDATA[index.php/pnsofortueberweisung/pnsofortueberweisung/return/orderId/-USER_VARIABLE_0-/transId/-TRANSACTION-/var1/-USER_VARIABLE_1_MD5_PASS-]]></value>
139
+ </projectssetting_interface_success_link>
140
+ <projectssetting_interface_success_link_redirect>
141
+ <param>projectssetting_interface_success_link_redirect</param>
142
+ <value>1</value>
143
+ </projectssetting_interface_success_link_redirect>
144
+ <projectssetting_interface_cancel_link>
145
+ <param>projectssetting_interface_cancel_link</param>
146
+ <value><![CDATA[index.php/pnsofortueberweisung/pnsofortueberweisung/error/orderId/-USER_VARIABLE_0-]]></value>
147
+ </projectssetting_interface_cancel_link>
148
+ <projectssetting_interface_timeout_link>
149
+ <param>projectssetting_interface_timeout_link</param>
150
+ <value><![CDATA[index.php/pnsofortueberweisung/pnsofortueberweisung/error/orderId/-USER_VARIABLE_0-]]></value>
151
+ </projectssetting_interface_timeout_link>
152
+ <projectssetting_interface_timeout>
153
+ <param>projectssetting_interface_timeout</param>
154
+ <value>600</value>
155
+ </projectssetting_interface_timeout>
156
+ <projectssetting_locked_amount>
157
+ <param>projectssetting_locked_amount</param>
158
+ <value>1</value>
159
+ </projectssetting_locked_amount>
160
+ <projectssetting_locked_reason_1>
161
+ <param>projectssetting_locked_reason_1</param>
162
+ <value>1</value>
163
+ </projectssetting_locked_reason_1>
164
+ <projectsnotification_http_activated>
165
+ <param>projectsnotification_http_activated</param>
166
+ <value>1</value>
167
+ </projectsnotification_http_activated>
168
+ <projectsnotification_http_url>
169
+ <param>projectsnotification_http_url</param>
170
+ <value><![CDATA[index.php/pnsofortueberweisung/pnsofortueberweisung/returnhttp/orderId/-USER_VARIABLE_0-/transId/-TRANSACTION-/var1/-USER_VARIABLE_1_MD5_PASS-]]></value>
171
+ </projectsnotification_http_url>
172
+ <projectsnotification_http_method>
173
+ <param>projectsnotification_http_method</param>
174
+ <value>1</value>
175
+ </projectsnotification_http_method>
176
+ <project_hash_algorithm>
177
+ <param>project_hash_algorithm</param>
178
+ <value>sha1</value>
179
+ </project_hash_algorithm>
180
+ <projectsnotification_email_email>
181
+ <param>projectsnotification_email_email</param>
182
+ <value></value>
183
+ </projectsnotification_email_email>
184
+ <projectsnotification_email_activated>
185
+ <param>projectsnotification_email_activated</param>
186
+ <value>1</value>
187
+ </projectsnotification_email_activated>
188
+ <projectsnotification_email_language_id>
189
+ <param>projectsnotification_email_language_id</param>
190
+ <value>DE</value>
191
+ </projectsnotification_email_language_id>
192
+ <project_name>
193
+ <param>project_name</param>
194
+ <value>Magento</value>
195
+ </project_name>
196
+ </types>
197
+ </params_pnso>
198
+
199
+ <models>
200
+ <pnsofortueberweisung>
201
+ <class>Paymentnetwork_Pnsofortueberweisung_Model</class>
202
+ <resourceModel>pnsofortueberweisung_mysql4</resourceModel>
203
+ </pnsofortueberweisung>
204
+ <sales>
205
+ <rewrite>
206
+ <convert_order>Paymentnetwork_Pnsofortueberweisung_Model_Convert_Order</convert_order>
207
+ <convert_quote>Paymentnetwork_Pnsofortueberweisung_Model_Convert_Quote</convert_quote>
208
+ </rewrite>
209
+ </sales>
210
+ <pnsofortueberweisung_mysql4>
211
+ <class>Paymentnetwork_Pnsofortueberweisung_Model_Mysql4</class>
212
+ <entities>
213
+ <pnsofortueberweisung>
214
+ <table>pnsofortueberweisung</table>
215
+ </pnsofortueberweisung>
216
+ </entities>
217
+ </pnsofortueberweisung_mysql4>
218
+ </models>
219
+
220
+ <resources>
221
+ <!-- resource identifier -->
222
+ <pnsofortueberweisung_setup>
223
+ <!-- specify that this resource is a setup resource and used for upgrades -->
224
+ <setup>
225
+ <module>Paymentnetwork_Pnsofortueberweisung</module>
226
+ <class>Paymentnetwork_Pnsofortueberweisung_Model_Mysql4_Setup</class>
227
+ </setup>
228
+ <!-- specify database connection for this resource -->
229
+ <connection>
230
+ <use>core_setup</use>
231
+ </connection>
232
+ </pnsofortueberweisung_setup>
233
+ <pnsofortueberweisung_write>
234
+ <connection>
235
+ <use>core_write</use>
236
+ </connection>
237
+ </pnsofortueberweisung_write>
238
+ <pnsofortueberweisung_read>
239
+ <connection>
240
+ <use>core_read</use>
241
+ </connection>
242
+ </pnsofortueberweisung_read>
243
+ </resources>
244
+ </global>
245
+
246
+ <default>
247
+ <payment>
248
+ <pnsofortueberweisung>
249
+ <active>1</active>
250
+ <model>pnsofortueberweisung/pnsofortueberweisung</model>
251
+ <order_status>1</order_status>
252
+ <title>sofortüberweisung.de</title>
253
+ <allowspecific>0</allowspecific>
254
+ <url>https://www.sofortueberweisung.de/payment/start</url>
255
+ <customer></customer>
256
+ <project></project>
257
+ <project_pswd></project_pswd>
258
+ <notification_pswd></notification_pswd>
259
+ <check_input_yesno>1</check_input_yesno>
260
+ <createinvoice>0</createinvoice>
261
+ <fast><![CDATA[<a href="%s">Zum automatischen Einrichten hier klicken.</a>]]></fast>
262
+ <url_new><![CDATA[https://www.sofortueberweisung.de/payment/createNew/]]></url_new>
263
+ <netherlands>0</netherlands>
264
+ </pnsofortueberweisung>
265
+ </payment>
266
+ </default>
267
+ </config>
app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/system.xml ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
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 bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Paymentnetwork
17
+ * @package Paymentnetwork_Sofortueberweisung
18
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ * @version $Id: system.xml 205 2010-06-14 12:53:41Z thoma $
21
+ */
22
+ -->
23
+
24
+ <config>
25
+ <sections>
26
+ <payment>
27
+ <groups>
28
+ <pnsofortueberweisung translate="label" module="paygate">
29
+ <label>sofortüberweisung.de 2</label>
30
+ <frontend_type>text</frontend_type>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <fields>
36
+ <active translate="label">
37
+ <label>Enabled</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </active>
45
+ <order_status translate="label">
46
+ <label>New order status</label>
47
+ <frontend_type>select</frontend_type>
48
+ <source_model>adminhtml/system_config_source_order_status</source_model>
49
+ <sort_order>2</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </order_status>
54
+ <sort_order translate="label">
55
+ <label>Sort order</label>
56
+ <frontend_type>text</frontend_type>
57
+ <sort_order>3</sort_order>
58
+ <show_in_default>1</show_in_default>
59
+ <show_in_website>1</show_in_website>
60
+ <show_in_store>1</show_in_store>
61
+ </sort_order>
62
+ <title translate="label">
63
+ <label>Title</label>
64
+ <frontend_type>text</frontend_type>
65
+ <sort_order>5</sort_order>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ </title>
70
+ <allowspecific translate="label">
71
+ <label>Payment from applicable countries</label>
72
+ <frontend_type>allowspecific</frontend_type>
73
+ <sort_order>6</sort_order>
74
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ </allowspecific>
79
+ <specificcountry translate="label">
80
+ <label>Payment from Specific countries</label>
81
+ <frontend_type>multiselect</frontend_type>
82
+ <sort_order>7</sort_order>
83
+ <source_model>adminhtml/system_config_source_country</source_model>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </specificcountry>
88
+ <customer>
89
+ <label>User Id</label>
90
+ <frontend_type>text</frontend_type>
91
+ <sort_order>32</sort_order>
92
+ <show_in_default>1</show_in_default>
93
+ <show_in_website>1</show_in_website>
94
+ <show_in_store>1</show_in_store>
95
+ </customer>
96
+ <project>
97
+ <label>Projekt Id</label>
98
+ <frontend_type>text</frontend_type>
99
+ <sort_order>64</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ </project>
104
+ <project_pswd>
105
+ <label>Project password</label>
106
+ <frontend_type>text</frontend_type>
107
+ <sort_order>128</sort_order>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>1</show_in_store>
111
+ </project_pswd>
112
+ <notification_pswd>
113
+ <label>Notification password</label>
114
+ <frontend_type>text</frontend_type>
115
+ <sort_order>256</sort_order>
116
+ <show_in_default>1</show_in_default>
117
+ <show_in_website>1</show_in_website>
118
+ <show_in_store>1</show_in_store>
119
+ </notification_pswd>
120
+ <createinvoice translate="label">
121
+ <label>Create Invoice</label>
122
+ <frontend_type>select</frontend_type>
123
+ <source_model>adminhtml/system_config_source_yesno</source_model>
124
+ <sort_order>512</sort_order>
125
+ <show_in_default>1</show_in_default>
126
+ <show_in_website>1</show_in_website>
127
+ <show_in_store>1</show_in_store>
128
+ </createinvoice>
129
+ <fast translate="label">
130
+ <label></label>
131
+ <frontend_type>linkpnso</frontend_type>
132
+ <sort_order>0</sort_order>
133
+ <show_in_default>1</show_in_default>
134
+ <show_in_website>1</show_in_website>
135
+ <show_in_store>1</show_in_store>
136
+ </fast>
137
+ <model>
138
+ </model>
139
+ </fields>
140
+ </pnsofortueberweisung>
141
+ </groups>
142
+ </payment>
143
+ </sections>
144
+ </config>
app/code/community/Paymentnetwork/Pnsofortueberweisung/sql/pnsofortueberweisung_setup/mysql4-install-1.1.1.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-install-1.1.1.php 232 2010-07-06 16:54:28Z thoma $
20
+ */
21
+
22
+ $installer = $this;
23
+
24
+ $setup = new Mage_Sales_Model_Mysql4_Setup('core_setup');
25
+
26
+ $installer->startSetup();
27
+ $setup->addAttribute('order_payment', 'pn_su_transaction_id', array('type'=>'varchar'));
28
+ $installer->endSetup();
29
+
30
+ ?>
app/design/adminhtml/default/default/template/pnsofortueberweisung/form/paycode.phtml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: paycode.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ ?><?= Mage::helper('pnsofortueberweisung')->__('Not possible'); ?>
app/design/adminhtml/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: sofortueberweisung.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ ?><?= Mage::helper('pnsofortueberweisung')->__('Not possible'); ?>
app/design/adminhtml/default/default/template/pnsofortueberweisung/info/paycode.phtml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: paycode.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+
22
+ -->
23
+ <strong><?= Mage::helper('pnsofortueberweisung')->__('Paymentinformations: %s',$this->getMethod()->getTitle()) ?></strong>
24
+ <br />
25
+ <?= Mage::helper('pnsofortueberweisung')->__('Paycode: %s',$this->getInfo()->getOrder()->getPayment()->getSuPaycode()) ?><br />
26
+ <?php if($this->getInfo()->getOrder()->getPayment()->getSuTransactionId()): ?>
27
+ <?= Mage::helper('pnsofortueberweisung')->__('Transaction Id: %s',$this->getInfo()->getOrder()->getPayment()->getSuTransactionId()) ?><br />
28
+ <?php endif; ?>
app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf/paycode.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: paycode.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ -->
22
+ <?= Mage::helper('pnsofortueberweisung')->__('Paymentinformations: %s',$this->getMethod()->getTitle()) ?>
23
+ {{pdf_row_separator}}
24
+ <?= Mage::helper('pnsofortueberweisung')->__('Paycode: %s',$this->getInfo()->getOrder()->getPayment()->getSuPaycode()) ?>{{pdf_row_separator}}
25
+ <?php if($this->getInfo()->getOrder()->getPayment()->getSuTransactionId()): ?>
26
+ <?= Mage::helper('pnsofortueberweisung')->__('Transaction Id: %s',$this->getInfo()->getOrder()->getPayment()->getSuTransactionId()) ?>{{pdf_row_separator}}
27
+ <?php endif; ?>
app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf/sofortueberweisung.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: sofortueberweisung.phtml 194 2010-06-07 15:09:10Z thoma $
20
+ */
21
+
22
+ -->
23
+ <?= Mage::helper('pnsofortueberweisung')->__('Paymentinformations: %s',$this->getMethod()->getTitle()) ?>
24
+ {{pdf_row_separator}}
25
+ <?= Mage::helper('pnsofortueberweisung')->__('Transaction Id: %s',$this->getInfo()->getOrder()->getPayment()->getPnSuTransactionId()) ?>
26
+ {{pdf_row_separator}}
app/design/adminhtml/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: sofortueberweisung.phtml 194 2010-06-07 15:09:10Z thoma $
20
+ */
21
+
22
+ -->
23
+ <strong><?= Mage::helper('pnsofortueberweisung')->__('Paymentinformations: %s',$this->getMethod()->getTitle()) ?></strong>
24
+ <br />
25
+ <?= Mage::helper('pnsofortueberweisung')->__('Transaction Id: %s',$this->getInfo()->getOrder()->getPayment()->getPnSuTransactionId()) ?><br />
app/design/frontend/default/default/layout/pnsofortueberweisung.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="right">
5
+ <block type="pnsofortueberweisung/infobox" name="infobox" after="cart_sidebar" template="pnsofortueberweisung/infobox.phtml" />
6
+ </reference>
7
+ </default>
8
+ <pnsofortueberweisung_pnsofortueberweisung_index>
9
+ <reference name="root">
10
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
11
+ <action method="setHeaderTitle" translate="title" module="pnsofortueberweisung"><title>Payment</title></action>
12
+ </reference>
13
+ <reference name="content">
14
+ <block type="pnsofortueberweisung/pnsofortueberweisung" name="pnsofortueberweisung" template="pnsofortueberweisung/sofortueberweisung.phtml" />
15
+ </reference>
16
+ </pnsofortueberweisung_pnsofortueberweisung_index>
17
+
18
+ <pnsofortueberweisung_pnsofortueberweisung_error>
19
+ <reference name="root">
20
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
21
+ <action method="setHeaderTitle" translate="title" module="pnsofortueberweisung"><title>Payment Error</title></action>
22
+ </reference>
23
+ <reference name="content">
24
+ <block type="pnsofortueberweisung/pnsofortueberweisungnotice" name="pnsofortueberweisungnotice" template="pnsofortueberweisung/notice.phtml"/>
25
+ </reference>
26
+ </pnsofortueberweisung_pnsofortueberweisung_error>
27
+ </layout>
app/design/frontend/default/default/template/pnsofortueberweisung/form/paycode.phtml ADDED
@@ -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 bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: paycode.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ ?>
22
+ <a name="<?= $this->getMethodCode() ?>"></a>
23
+ <?$_code=$this->getMethodCode()?>
24
+ <div style="padding-left:20px;float:right;width: 300px;padding-bottom: 10px;">
25
+ <a href="#<?= $this->getMethodCode() ?>" onclick="payment.switchMethod('<?= $this->getMethodCode() ?>');if($('p_method_sofortueberweisung'))$('p_method_sofortueberweisung').writeAttribute('checked', '');$('p_method_<?= $this->getMethodCode() ?>').writeAttribute('checked', 'checked');" title="Paycode"><img src="<?= $this->getSkinUrl() ?>images/sofortueberweisung/logo_paycode_198.gif" alt="Sofortüberweisung Paycode" title="Sofortüberweisung Paycode" /></a>
26
+ <p style="font-size: 9px;">
27
+ <?=$this->__('Paycode information')?>
28
+ </p>
29
+ <div>
30
+ <strong><?=$this->__('Your benefit:')?></strong>
31
+ <ul style="list-style-type:disc;">
32
+ <li style="margin-left:15px;"><?=$this->__('Fast shippiung')?></li>
33
+ <li style="margin-left:15px;"><?=$this->__('Privacy')?></li>
34
+ <li style="margin-left:15px;"><?=$this->__('No registration')?></li>
35
+ <li style="margin-left:15px;"><?=$this->__('Save payment')?></li>
36
+ </ul>
37
+ </div>
38
+ </div>
39
+ <div class="clear"></div>
app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: sofortueberweisung.phtml 276 2010-08-12 14:02:09Z poser $
20
+ */
21
+ ?>
22
+ <?php if(Mage::getStoreConfig('payment/pnsofortueberweisung/active')):?>
23
+ <a name="<?= $this->getMethodCode() ?>"></a>
24
+ <?$_code=$this->getMethodCode()?>
25
+ <div style="padding-left:20px;float:right;width: 300px;padding-bottom: 10px; display:none;" id="payment_form_<?= $this->getMethodCode() ?>">
26
+ <a href="#<?= $this->getMethodCode() ?>" title="Informationen zu Sofortüberweisung"><img src="<?= $this->getSkinUrl() ?>images/pnsofortueberweisung/logo_sofortueberweisung200.jpg" alt="Sofortüberweisung" title="Sofortüberweisung" /></a>
27
+ <p style="font-size: 9px;">
28
+ <?=$this->__('Get stock articles.')?>
29
+ </p>
30
+ <div>
31
+ <strong><?=$this->__('Your benefit:')?></strong>
32
+ <ul style="list-style-type:disc;">
33
+ <li style="margin-left:15px;"><?=$this->__('Fast shippiung')?></li>
34
+ <li style="margin-left:15px;"><?=$this->__('Privacy')?></li>
35
+ <li style="margin-left:15px;"><?=$this->__('No registration')?></li>
36
+ <li style="margin-left:15px;"><?=$this->__('Save payment')?></li>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ <div class="clear"></div>
41
+ <?php endif;?>
app/design/frontend/default/default/template/pnsofortueberweisung/info/paycode.phtml ADDED
@@ -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 bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: paycode.phtml 190 2010-06-02 14:34:14Z thoma $
20
+ */
21
+ ?>
22
+ <p><?= $this->getMethod()->getTitle() ?></p>
23
+ <?if($_info = $this->getInfo()):?>
24
+ <?=$this->__('Account holder: %s', $this->getInfo()->getSuHolder())?><br/>
25
+ <?=$this->__('Account number: %s', 'xxxx'.substr($this->getInfo()->getSuAccountNumber(),4,strlen($this->getInfo()->getSuAccountNumber())))?><br/>
26
+ <?=$this->__('Bank code: %s', $this->getInfo()->getSuBankCode())?><br/>
27
+ <?php if($this->getInfo()->getSuPaycode()): ?>
28
+ <?=$this->__('Paycode: %s', $this->getInfo()->getSuPaycode())?><br/>
29
+ <? endif; ?>
30
+ <?php if($this->getInfo()->getSuIban()): ?>
31
+ <?=$this->__('IBAN: %s', $this->getInfo()->getSuIban())?><br/>
32
+ <? endif; ?>
33
+ <?php if($this->getInfo()->getSuBic()): ?>
34
+ <?=$this->__('BIC/SWIFT : %s', $this->getInfo()->getSuBic())?><br/>
35
+ <? endif; ?>
36
+
37
+ <?php else: ?>
38
+
39
+ <?php endif; ?>
app/design/frontend/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: sofortueberweisung.phtml 198 2010-06-09 15:49:29Z thoma $
20
+ */
21
+ ?>
22
+ <p><?= $this->getMethod()->getTitle() ?></p>
23
+ <?if($_info = $this->getInfo()):?>
24
+ <?php if($this->getInfo()->getSuHolder()): ?>
25
+ <?=$this->__('Account holder: %s', $this->getInfo()->getSuHolder())?><br/>
26
+ <?=$this->__('Account number: %s', 'xxxx'.substr($this->getInfo()->getSuAccountNumber(),4,strlen($this->getInfo()->getSuAccountNumber())))?><br/>
27
+ <?=$this->__('Bank code: %s', $this->getInfo()->getSuBankCode())?><br/>
28
+ <? endif; ?>
29
+ <?php if($this->getInfo()->getSuTransactionId()): ?>
30
+ <?=$this->__('Transaction Id: %s', $this->getInfo()->getSuTransactionId())?><br/>
31
+ <? endif; ?>
32
+ <?php else: ?>
33
+
34
+ <?php endif; ?>
app/design/frontend/default/default/template/pnsofortueberweisung/infobox.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: infobox.phtml 276 2010-08-12 14:02:09Z poser $
20
+ */
21
+ ?>
22
+ <?php if(Mage::getStoreConfig('payment/pnsofortueberweisung/active')):?>
23
+ <div class="box base-mini mini-su-infobox">
24
+ <div class="head">
25
+ <h4><?php echo $this->__('Sofortueberweisung'); ?></h4>
26
+ </div>
27
+ <div class="content">
28
+ <a href="https://www.payment-network.com/kundeninformationen" title="Informationen zu sofortüberweisung.de"><img src="<?= $this->getSkinUrl() ?>images/pnsofortueberweisung/logo_sofortueberweisung170.jpg" alt="Sofortüberweisung" title="Sofortüberweisung"></a>
29
+ <p>
30
+ <ul style="list-style-type:disc;">
31
+ <li style="margin-left:15px;"><?php echo $this->helper('pnsofortueberweisung')->__('Fast shippiung') ?></li>
32
+ <li style="margin-left:15px;"><?php echo $this->helper('pnsofortueberweisung')->__('Privacy') ?></li>
33
+ <li style="margin-left:15px;"><?php echo $this->helper('pnsofortueberweisung')->__('No registration') ?></li>
34
+ <li style="margin-left:15px;"><?php echo $this->helper('pnsofortueberweisung')->__('Save payment') ?></li>
35
+ </ul>
36
+ </p>
37
+ </div>
38
+ <div class="actions">
39
+ <a href="https://www.payment-network.com/kundeninformationen"><small><?php echo $this->__('More') ?></small></a>
40
+ </div>
41
+ </div>
42
+ <?php endif; ?>
app/design/frontend/default/default/template/pnsofortueberweisung/notice.phtml ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <h4><?php echo $this->__('Cancelation of payment') ?></h4>
2
+ <!--<p>Hier steht Ihre Fehlermeldung</p>-->
app/etc/modules/Paymentnetwork_Sofortueberweisung.xml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <modules>
3
+ <Paymentnetwork_Pnsofortueberweisung>
4
+ <active>true</active>
5
+ <codePool>community</codePool>
6
+ <depends>
7
+ <Mage_Payment />
8
+ </depends>
9
+ </Paymentnetwork_Pnsofortueberweisung>
10
+ </modules>
11
+ </config>
app/locale/de_AT/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Nicht verfügbar im Backend"
2
+ "Account number","Kontonummer"
3
+ "Bank code","Bankleitzahl"
4
+ "Holder","Kontoinhaber"
5
+ "Account number: %s","Kontonummer: %s"
6
+ "Bank code: %s","Bankleitzahl: %s"
7
+ "Account holder: %s","Kontoinhaber: %s"
8
+ "Transaction Id: %s","Transaktions Id: %s"
9
+ "Order No.: ","Best. "
10
+ "Order: ","Best. "
11
+ "Gateway request error: %s","Fehler beim übertragen der Daten: %s"
12
+ "Please check your account data.","Bitte überprüfen Sie Ihre Kontodaten auf Korrektheit."
13
+ "Invalid amount for authorization.","Ungültiger Betrag für die Bezahlung."
14
+ "Payment was successful.","Zahlung bei Sofortüberweisung war erfolgreich"
15
+ "Paymentinformations: %s";"Zahlungsinformationen: %s"
16
+ "Payment was not successfull","Zahlung konnte nicht durchgeführt werden. Es ist ein Fehler aufgetreten"
17
+ "You will be redirected to Sofortüberweisung","Sie werden nach Abschluss der Bestellung zu Sofortüberweisung weitergeleitet um die Bezahlung zu vollenden"
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","Sie werden in wenigen Sekunden zu Sofortüberweisung weitergeleitet"
19
+ "Sofortueberweisung payment loaded","Sofortüberweisung wurde geladen"
20
+ "Please fill out the account holder","Geben Sie bitte einen Kontoinhaber an"
21
+ "Please fill out the account number","Geben Sie bitte eine Kontonummer an"
22
+ "Please fill out the bank code","Geben Sie bitte eine Bankleitzahl an"
23
+ "Transaction Id: %s","Transaktions Id: %s"
24
+ "Cancelation of payment","Abbruch der Bezahlung"
25
+ "Paymentinformations: %s","Zahlungsinformationen: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Projektpasswort"
28
+ "Notification password", "Benachrichtigungspasswort"
29
+ "Use input check","Input Check aktivieren"
30
+ "Create Invoice","Generiere Rechnung nach Zahlung"
31
+ "Projekt Id","Projekt ID"
32
+ "User Id","Benutzer ID"
33
+ "Expires","Gültigkeitsdauer in Tagen (max. 90 Tage, 0 für unbegrenzt, Standard: 2Tage)"
34
+ "Sofortueberweisung","Sofortüberweisung"
35
+ "More","mehr Infos"
36
+ "Error while saving this configuration: ","Beim Speichern der Daten ist ein Fehler aufgetreten: "
37
+ "Item was successfully saved","Konfiguration wurde erfolgreich gespeichert."
38
+ "Theres no password defined","Es ist kein Passwort definiert! Bitte tragen Sie das erstellte/angelegte Passwort aus dem Kundenbereich bei sofortüberweisung.de in das entsprechende Feld für die Konfiguration ein."
39
+ "Get stock articles.","Lagerware schneller erhalten durch umgehenden Versand. Sie benötigen jetzt Ihre Online-Banking- Daten (PIN und TAN)."
40
+ "Your benefit:","Ihre Vorteile:"
41
+ "Fast shippiung","sofortiger Versand von Lagerware / sofortiger Download"
42
+ "Privacy","TÜV-geprüfter Datenschutz"
43
+ "No registration","keine Registrierung notwendig"
44
+ "Save payment","sicher und schnell bezahlen"
45
+ "Paycode information","Ware wird umgehend nach Bezahlung mit paycode versandt. Sie benötigen erst zum Zeitpunkt der Bezahlung Ihre Online-Banking-Daten (PIN und TAN)."
46
+ "Netherlands banks","Niederländische Banken anzeigen?"
app/locale/de_CH/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Nicht verfügbar im Backend"
2
+ "Account number","Kontonummer"
3
+ "Bank code","Bankleitzahl"
4
+ "Holder","Kontoinhaber"
5
+ "Account number: %s","Kontonummer: %s"
6
+ "Bank code: %s","Bankleitzahl: %s"
7
+ "Account holder: %s","Kontoinhaber: %s"
8
+ "Transaction Id: %s","Transaktions Id: %s"
9
+ "Order No.: ","Best. "
10
+ "Order: ","Best. "
11
+ "Gateway request error: %s","Fehler beim übertragen der Daten: %s"
12
+ "Please check your account data.","Bitte überprüfen Sie Ihre Kontodaten auf Korrektheit."
13
+ "Invalid amount for authorization.","Ungültiger Betrag für die Bezahlung."
14
+ "Payment was successful.","Zahlung bei Sofortüberweisung war erfolgreich"
15
+ "Paymentinformations: %s";"Zahlungsinformationen: %s"
16
+ "Payment was not successfull","Zahlung konnte nicht durchgeführt werden. Es ist ein Fehler aufgetreten"
17
+ "You will be redirected to Sofortüberweisung","Sie werden nach Abschluss der Bestellung zu Sofortüberweisung weitergeleitet um die Bezahlung zu vollenden"
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","Sie werden in wenigen Sekunden zu Sofortüberweisung weitergeleitet"
19
+ "Sofortueberweisung payment loaded","Sofortüberweisung wurde geladen"
20
+ "Please fill out the account holder","Geben Sie bitte einen Kontoinhaber an"
21
+ "Please fill out the account number","Geben Sie bitte eine Kontonummer an"
22
+ "Please fill out the bank code","Geben Sie bitte eine Bankleitzahl an"
23
+ "Transaction Id: %s","Transaktions Id: %s"
24
+ "Cancelation of payment","Abbruch der Bezahlung"
25
+ "Paymentinformations: %s","Zahlungsinformationen: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Projektpasswort"
28
+ "Notification password", "Benachrichtigungspasswort"
29
+ "Use input check","Input Check aktivieren"
30
+ "Create Invoice","Generiere Rechnung nach Zahlung"
31
+ "Projekt Id","Projekt ID"
32
+ "User Id","Benutzer ID"
33
+ "Expires","Gültigkeitsdauer in Tagen (max. 90 Tage, 0 für unbegrenzt, Standard: 2Tage)"
34
+ "Sofortueberweisung","Sofortüberweisung"
35
+ "More","mehr Infos"
36
+ "Error while saving this configuration: ","Beim Speichern der Daten ist ein Fehler aufgetreten: "
37
+ "Item was successfully saved","Konfiguration wurde erfolgreich gespeichert."
38
+ "Theres no password defined","Es ist kein Passwort definiert! Bitte tragen Sie das erstellte/angelegte Passwort aus dem Kundenbereich bei sofortüberweisung.de in das entsprechende Feld für die Konfiguration ein."
39
+ "Get stock articles.","Lagerware schneller erhalten durch umgehenden Versand. Sie benötigen jetzt Ihre Online-Banking- Daten (PIN und TAN)."
40
+ "Your benefit:","Ihre Vorteile:"
41
+ "Fast shippiung","sofortiger Versand von Lagerware / sofortiger Download"
42
+ "Privacy","TÜV-geprüfter Datenschutz"
43
+ "No registration","keine Registrierung notwendig"
44
+ "Save payment","sicher und schnell bezahlen"
45
+ "Paycode information","Ware wird umgehend nach Bezahlung mit paycode versandt. Sie benötigen erst zum Zeitpunkt der Bezahlung Ihre Online-Banking-Daten (PIN und TAN)."
46
+ "Netherlands banks","Niederländische Banken anzeigen?"
app/locale/de_DE/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Nicht verfügbar im Backend"
2
+ "Account number","Kontonummer"
3
+ "Bank code","Bankleitzahl"
4
+ "Holder","Kontoinhaber"
5
+ "Account number: %s","Kontonummer: %s"
6
+ "Bank code: %s","Bankleitzahl: %s"
7
+ "Account holder: %s","Kontoinhaber: %s"
8
+ "Transaction Id: %s","Transaktions Id: %s"
9
+ "Order No.: ","Best. "
10
+ "Order: ","Best. "
11
+ "Gateway request error: %s","Fehler beim übertragen der Daten: %s"
12
+ "Please check your account data.","Bitte überprüfen Sie Ihre Kontodaten auf Korrektheit."
13
+ "Invalid amount for authorization.","Ungültiger Betrag für die Bezahlung."
14
+ "Payment was successful.","Zahlung bei Sofortüberweisung war erfolgreich"
15
+ "Paymentinformations: %s";"Zahlungsinformationen: %s"
16
+ "Payment was not successfull","Zahlung konnte nicht durchgeführt werden. Es ist ein Fehler aufgetreten"
17
+ "You will be redirected to Sofortüberweisung","Sie werden nach Abschluss der Bestellung zu Sofortüberweisung weitergeleitet um die Bezahlung zu vollenden"
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","Sie werden in wenigen Sekunden zu Sofortüberweisung weitergeleitet"
19
+ "Sofortueberweisung payment loaded","Sofortüberweisung wurde geladen"
20
+ "Please fill out the account holder","Geben Sie bitte einen Kontoinhaber an"
21
+ "Please fill out the account number","Geben Sie bitte eine Kontonummer an"
22
+ "Please fill out the bank code","Geben Sie bitte eine Bankleitzahl an"
23
+ "Transaction Id: %s","Transaktions Id: %s"
24
+ "Cancelation of payment","Abbruch der Bezahlung"
25
+ "Paymentinformations: %s","Zahlungsinformationen: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Projektpasswort"
28
+ "Notification password", "Benachrichtigungspasswort"
29
+ "Use input check","Input Check aktivieren"
30
+ "Create Invoice","Generiere Rechnung nach Zahlung"
31
+ "Projekt Id","Projekt ID"
32
+ "User Id","Benutzer ID"
33
+ "Expires","Gültigkeitsdauer in Tagen (max. 90 Tage, 0 für unbegrenzt, Standard: 2Tage)"
34
+ "Sofortueberweisung","Sofortüberweisung"
35
+ "More","mehr Infos"
36
+ "Error while saving this configuration: ","Beim Speichern der Daten ist ein Fehler aufgetreten: "
37
+ "Item was successfully saved","Konfiguration wurde erfolgreich gespeichert."
38
+ "Theres no password defined","Es ist kein Passwort definiert! Bitte tragen Sie das erstellte/angelegte Passwort aus dem Kundenbereich bei sofortüberweisung.de in das entsprechende Feld für die Konfiguration ein."
39
+ "Get stock articles.","Lagerware schneller erhalten durch umgehenden Versand. Sie benötigen jetzt Ihre Online-Banking- Daten (PIN und TAN)."
40
+ "Your benefit:","Ihre Vorteile:"
41
+ "Fast shippiung","sofortiger Versand von Lagerware / sofortiger Download"
42
+ "Privacy","TÜV-geprüfter Datenschutz"
43
+ "No registration","keine Registrierung notwendig"
44
+ "Save payment","sicher und schnell bezahlen"
45
+ "Paycode information","Ware wird umgehend nach Bezahlung mit paycode versandt. Sie benötigen erst zum Zeitpunkt der Bezahlung Ihre Online-Banking-Daten (PIN und TAN)."
46
+ "Netherlands banks","Niederländische Banken anzeigen?"
app/locale/en_US/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Not available"
2
+ "Account number","Account number"
3
+ "Bank code","Bank code"
4
+ "Holder","Account holder"
5
+ "Account number: %s","Account number: %s"
6
+ "Bank code: %s","Bank code: %s"
7
+ "Account holder: %s","Kontoinhaber: %s"
8
+ "Transaction Id: %s","Transaction Id: %s"
9
+ "Order No.: ","Order No. "
10
+ "Order: ","Order. "
11
+ "Gateway request error: %s","Gateway request error: %s"
12
+ "Please check your account data.","Please check your account data."
13
+ "Invalid amount for authorization.","Invalid amount for authorization."
14
+ "Payment was successful.","Payment was successful."
15
+ "Paymentinformations: %s";"Paymentinformations: %s"
16
+ "Payment was not successfull","Payment was not successfull. An error occured."
17
+ "You will be redirected to Sofortüberweisung","You will be redirected to Sofortüberweisung"
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","You will be redirected to Sofortueberweisung in a few seconds."
19
+ "Sofortueberweisung payment loaded","Sofortueberweisung was loaded"
20
+ "Please fill out the account holder","Please fill in the account holder"
21
+ "Please fill out the account number","Please fill in the account number"
22
+ "Please fill out the bank code","Please fill in the bank code"
23
+ "Transaction Id: %s","Transaktions Id: %s"
24
+ "Cancelation of payment","Cancelation of payment"
25
+ "Paymentinformations: %s","Paymentinformations: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Project password"
28
+ "Notification password", "Notification password"
29
+ "Use input check","Activate input check"
30
+ "Create Invoice","Create Invoice after payment"
31
+ "Projekt Id","Project ID"
32
+ "User Id","User ID"
33
+ "Expires","Expires"
34
+ "Sofortueberweisung","Sofortüberweisung"
35
+ "More","More information"
36
+ "Error while saving this configuration: ","Error while saving this configuration: "
37
+ "Item was successfully saved","Item was successfully saved."
38
+ "Theres no password defined","There is no password defined. Please fill in the created/designed password from the customer area at sofortüberweisung.de in the corresponding field for the configuration."
39
+ "Get stock articles.","Stock quickly obtained due to immediate dispatch. Now you need your online banking data (PIN/TAN)."
40
+ "Your benefit:","Your advantages:"
41
+ "Fast shippiung","ships immediately from stock / immediate download"
42
+ "Privacy","TÜV-certified privacy"
43
+ "No registration","no registration required"
44
+ "Save payment","pay safely und fast"
45
+ "Paycode information","Product is immediately sent after the payment with a paycode. Your online banking data is primarily needed when paying (PIN und TAN)."
46
+ "Netherlands banks","Netherlands banks?"
app/locale/fr_FR/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Pas disponible"
2
+ "Account number","Numéro de compte"
3
+ "Bank code","Code de banque"
4
+ "Holder","Titulaire du compte"
5
+ "Account number: %s","Numéro de compte: %s"
6
+ "Bank code: %s","Code de banque: %s"
7
+ "Account holder: %s","Titulaire du compte: %s"
8
+ "Transaction Id: %s","Numéro de transaction: %s"
9
+ "Order No.: ","Commande "
10
+ "Order: ","Commande "
11
+ "Gateway request error: %s","Erreur lors de transférer les données: %s"
12
+ "Please check your account data.","Veuillez vérifier les données de leur compte."
13
+ "Invalid amount for authorization.","Montant non valide pour le paiement."
14
+ "Payment was successful.","Paiement réussi."
15
+ "Paymentinformations: %s";"Informations du paiement: %s"
16
+ "Payment was not successfull","Le paiement n'a pas pu passer. Une erreure s'est produite."
17
+ "You will be redirected to Sofortüberweisung","A la fin de votre commande vous serez transférés sur Sofortüberweisung pour accomplir votre paiement."
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","Dans quelques secondes vous serez transférés sur Sofortüberweisung."
19
+ "Sofortueberweisung payment loaded","Sofortüberweisung a été chargé."
20
+ "Please fill out the account holder","Veuillez entrer le titulaire de compte."
21
+ "Please fill out the account number","Veuillez entrer le numéro de compte."
22
+ "Please fill out the bank code","Veuillez entrer le code de banque."
23
+ "Transaction Id: %s","Numéro de transaction: %s"
24
+ "Cancelation of payment","Larrêt du paiement."
25
+ "Paymentinformations: %s","Informations du paiement: %s"
26
+ "Paycode: %s","Code du paiement: %s"
27
+ "Project password","Mot de passe du projet."
28
+ "Notification password", "Mot de passe notification"
29
+ "Use input check","Activer contrôle input."
30
+ "Create Invoice","Création de facture après le paiement."
31
+ "Projekt Id","Numéro d'identification du projet."
32
+ "User Id","Numéro d'identification du client."
33
+ "Expires","Expire"
34
+ "Sofortueberweisung","Sofortueberweisung"
35
+ "More","Plus d'information."
36
+ "Error while saving this configuration: ","Lors de l'enregistrement des données une erreur s'est produite: "
37
+ "Item was successfully saved","La configuration a été enregistré avec succès."
38
+ "Theres no password defined","Il n'y a pas de mot de passe défini. Inscrivez-vous/créé le mot de passe dans le domaine de client depuis sofortüberweisung.de dans la boîte de dialogue pour la configuration."
39
+ "Get stock articles.","Obtenir marchandise en stock plus rapidement en raison d'envoie plus rapide. Maintenant vous avez besoin de votre données de compte en banque en ligne (PIN und TAN)."
40
+ "Your benefit:","Vos avantages:"
41
+ "Fast shippiung","expédition immediate de marchandise stockée / download immédiat"
42
+ "Privacy","protection des données certifiée par le TÜV"
43
+ "No registration","pas d'inscription nécessaire"
44
+ "Save payment","payer vite et fiable"
45
+ "Paycode information","Marchandise sera envoyée immédiatement après le paiement avec und paycode. Au moment du paiment vous avez besoin de vos données de compte en banque en ligne (PIN und TAN)."
46
+ "Netherlands banks","Pays-Bas banque?"
app/locale/it_IT/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Non disponibile."
2
+ "Account number","Numero del conto bancario"
3
+ "Bank code","Codice banca"
4
+ "Holder","Intestatario"
5
+ "Account number: %s","Numero del conto bancario: %s"
6
+ "Bank code: %s","ID del transazione: %s"
7
+ "Account holder: %s","Kontoinhaber: %s"
8
+ "Transaction Id: %s","Transaction Id: %s"
9
+ "Order No.: ",Numero "
10
+ "Order: ","Ordine "
11
+ "Gateway request error: %s","Errore durante il trasferimento dei dati: %s"
12
+ "Please check your account data.","Si prega di verificare le informazioni sul Suo account per correttezza."
13
+ "Invalid amount for authorization.","Importo invalido per il pagamento."
14
+ "Payment was successful.","Pagamento riuscito."
15
+ "Paymentinformations: %s";"Informazioni sul pagamento: %s"
16
+ "Payment was not successfull","Pagamento non poteva essere fatto. Vi è un errore."
17
+ "You will be redirected to Sofortüberweisung","Dopo il completamento dell'ordine, sarà trasferito su Sofortüberweisung per completare il pagamento."
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","In pochi secondi sarà trasferito su Sofortüberweisung."
19
+ "Sofortueberweisung payment loaded","Sofortüberweisung caricato."
20
+ "Please fill out the account holder","Si prega di fornire un titolare del conto."
21
+ "Please fill out the account number","Please fill in the account number"
22
+ "Please fill out the bank code","Si prega di fornire un codice di banca."
23
+ "Transaction Id: %s","ID del transazione: %s"
24
+ "Cancelation of payment","Demolizione di pagamento."
25
+ "Paymentinformations: %s","Informaziono sul pagamento: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Password del progetto."
28
+ "Notification password", "Notifica password"
29
+ "Use input check","Attivi Input Check."
30
+ "Create Invoice","Genera fattura dopo il pagamento."
31
+ "Projekt Id","ID del progetto."
32
+ "User Id","ID del utente."
33
+ "Expires","Finisce."
34
+ "Sofortueberweisung","Sofortüberweisung"
35
+ "More","Maggiori informazioni."
36
+ "Error while saving this configuration: ","Salvando i datai si è manifestato un errore: "
37
+ "Item was successfully saved","La configurazione è stato salvato con successo."
38
+ "Theres no password defined","Non c'è nessuna password, inserisci la password generata /creata delll'area clienti sofortüberweisung.de nel campo appropriato per la configurazione."
39
+ "Get stock articles.","Ottenere scorte più velocemente a causa di spedizione immediata. Adesso ha bisogno dei vostri dati del conto bancario online (PIN und TAN)."
40
+ "Your benefit:","I vostri vantaggi:"
41
+ "Fast shippiung","immediata spedizione della scorte / download immediato"
42
+ "Privacy","protezione die dati certificata del TÜV"
43
+ "No registration","nessuna registrazione necessaria"
44
+ "Save payment","sicher und schnell bezahlen"
45
+ "Paycode information","Il prodotto è immediatamente spedito dopo il pagamento con un paycode. Al momento del pagamento ha bisogno dei vostri dati del conto bancario online(PIN und TAN)."
46
+ "Netherlands banks","Paesi Bassi banca?"
app/locale/nl_NL/Paymentnetwork_Sofortueberweisung.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Not possible","Niet beschikbaar"
2
+ "Account number","Bankrekeningnummer"
3
+ "Bank code","Bankcode"
4
+ "Holder","Rekeninghouder"
5
+ "Account number: %s","Rekeningnummer: %s"
6
+ "Bank code: %s","Bankcode: %s"
7
+ "Account holder: %s","Rekeninghouder: %s"
8
+ "Transaction Id: %s","Transaktions Id: %s"
9
+ "Order No.: ","Order No "
10
+ "Order: ","Ord. "
11
+ "Gateway request error: %s","Er is een fout opgetreden bij het overzetten van de data.: %s"
12
+ "Please check your account data.","Controleer nogmaals uw bankgegevens"
13
+ "Invalid amount for authorization.","Onvoldoende saldo om de betaling te verrichten."
14
+ "Payment was successful.","De betaling is succesvol afgerond."
15
+ "Paymentinformations: %s";"Betalingsinformatie: %s"
16
+ "Payment was not successfull","Er is een fout opgetreden. Daarom heeft de betaling niet kunnen plaatsvinden."
17
+ "You will be redirected to Sofortüberweisung","Na uw bestelling wordt u doorgestuurd naar DIRECTebanking.com om daar uw betaling te verrichten."
18
+ "You will be redirected to Sofortueberweisung in a few seconds.","Binnen enkele seconden wordt u doorgestuurd naar DIRECTebanking.com."
19
+ "Sofortueberweisung payment loaded","DIRECTebanking.com wordt geladen"
20
+ "Please fill out the account holder","Vul de rekeninghouder in."
21
+ "Please fill out the account number","Vul het rekeningnummer in."
22
+ "Please fill out the bank code","Vul de bankcode in."
23
+ "Transaction Id: %s","Transaktions Id: %s"
24
+ "Cancelation of payment","Afbreken van de betaling"
25
+ "Paymentinformations: %s","Betalingsinformatie: %s"
26
+ "Paycode: %s","Paycode: %s"
27
+ "Project password","Project wachtwoord"
28
+ "Notification password", "Input controle"
29
+ "Use input check","Input Check activeren"
30
+ "Create Invoice","Maak na betaling een factuur aan."
31
+ "Projekt Id","Projekt ID"
32
+ "User Id","User Id"
33
+ "Expires","Verloopt op"
34
+ "Sofortueberweisung","DIRECTebanking.com"
35
+ "More","Meer informatie"
36
+ "Error while saving this configuration: ","Bij het opslaan van de gegevens is een fout opgetreden: "
37
+ "Item was successfully saved","Het item is succesvol opgeslagen."
38
+ "Theres no password defined","Er is geen wachtwoord aangegeven. Vul het door de klant bedachte wachtwoord in bij het correspondentie veld van DIRECTebanking.com voor configuratie."
39
+ "Get stock articles.","U zult uw product sneller krijgen door een directe betaling te doen. U heeft hiervoor uw online bankgegevens nodig inclusief uw ( PIN / TAN)."
40
+ "Your benefit:","Uw voordelen:"
41
+ "Fast shippiung","de goederen worden direct verstuurd vanuit de voorraa / download direct beschikbaar"
42
+ "Privacy","TÜV-privacy certificaat"
43
+ "No registration","geen registratie vereist"
44
+ "Save payment","betaal veilig en snel"
45
+ "Paycode information","Na het voldoen van de betaling via de paycode wordt het product direct verzonden. U heeft daarvoor uw online bankgegevens nodig inclusief uw PIN of TAN."
46
+ "Netherlands banks","Show Netherland Banks?"
lib/Varien/Data/Form/Element/Linkpnso.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Paymentnetwork
16
+ * @package Paymentnetwork_Sofortueberweisung
17
+ * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Linkpnso.php 199 2010-06-10 14:56:03Z thoma $
20
+ */
21
+
22
+ class Varien_Data_Form_Element_Linkpnso extends Varien_Data_Form_Element_Abstract
23
+ {
24
+ var $pnSu;
25
+ public function __construct($attributes=array())
26
+ {
27
+ parent::__construct($attributes);
28
+ $this->setType('label');
29
+ $this->pnSu = Mage::helper('pnsofortueberweisung');
30
+ $this->pnSu->classPnSofortueberweisung();
31
+ }
32
+
33
+ public function getElementHtml()
34
+ {
35
+
36
+ #echo $this->getConfigDataWeb('base_url');
37
+ #echo "<pre>";
38
+ #print_r($params = $this->getParams()->toArray());
39
+ #echo "</pre>";
40
+
41
+ $params = $this->getParams()->toArray();
42
+ foreach($params AS $key => $val){
43
+ switch($key){
44
+ case 'backlink':
45
+ $backurl = Mage::getSingleton('adminhtml/url')->getUrl($val);
46
+ $params[$key] = $backurl;
47
+ break;
48
+ case 'projectssetting_interface_success_link':
49
+ $params[$key] = $this->getConfigDataWeb('base_url').$val;
50
+ break;
51
+ case 'projectsnotification_http_url':
52
+ $params[$key] = $this->getConfigDataWeb('base_url').$val;
53
+ break;
54
+ case 'projectssetting_interface_cancel_link':
55
+ $params[$key] = $this->getConfigDataWeb('base_url').$val;
56
+ break;
57
+ case 'projectssetting_interface_timeout_link':
58
+ $params[$key] = $this->getConfigDataWeb('base_url').$val;
59
+ break;
60
+ case 'projectssetting_project_password':
61
+ $params[$key] = $this->pnSu->generateRandomValue();
62
+ //store pwd in session so we can save it later
63
+ Mage::getSingleton('adminhtml/session')->setData('projectssetting_project_password', $params[$key]);
64
+ break;
65
+ case 'project_notification_password':
66
+ $params[$key] = $this->pnSu->generateRandomValue();
67
+ Mage::getSingleton('adminhtml/session')->setData('project_notification_password', $params[$key]);
68
+ break;
69
+ case 'projectsnotification_email_email':
70
+ $params[$key] = Mage::getStoreConfig('trans_email/ident_general/email');
71
+ break;
72
+ case 'project_name':
73
+ $params[$key] = Mage::getStoreConfig('general/store_information/name');
74
+ break;
75
+ default:
76
+ $params[$key] = $val;
77
+ break;
78
+ }
79
+ }
80
+ $queryString = http_build_query($params);
81
+
82
+ $html = $this->getBold() ? '<strong>' : '';
83
+ $html.= sprintf($this->getValue(),$this->getConfigDataPayment('url_new').'?'.$queryString);
84
+ $html.= $this->getBold() ? '</strong>' : '';
85
+ $html.= $this->getAfterElementHtml();
86
+ return $html;
87
+ }
88
+
89
+ public function getConfigDataPayment($field, $storeId = null)
90
+ {
91
+ if (null === $storeId) {
92
+ $storeId = $this->getStore();
93
+ }
94
+ $path = 'payment/pnsofortueberweisung/'.$field;
95
+ return Mage::getStoreConfig($path, $storeId);
96
+ }
97
+
98
+ public function getConfigDataWeb($field, $storeId = null)
99
+ {
100
+ if (null === $storeId) {
101
+ $storeId = $this->getStore();
102
+ }
103
+ $path = 'web/unsecure/'.$field;
104
+ return Mage::getStoreConfig($path, $storeId);
105
+ }
106
+
107
+ public function getParams()
108
+ {
109
+
110
+ $_types = Mage::getConfig()->getNode('global/params_pnso/types')->asArray();
111
+ $params = Mage::getModel('pnsofortueberweisung/params');
112
+ foreach ($_types as $data) {
113
+ $params->setData($data["param"],$data["value"]);
114
+ }
115
+ return $params;
116
+ }
117
+ }
package.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>pn_sofortueberweisung</name>
4
+ <version>1.1.4</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Modul f&#xFC;r Bezahlung mit sofort&#xFC;berweisung.de</summary>
10
+ <description>sofort&#xFC;berweisung.de ist das Direkt-&#xDC;berweisungsverfahren der Payment Network AG. Mit sofort&#xFC;berweisung.de stellen Sie noch w&#xE4;hrend Ihrer Bestellung bequem eine &#xDC;berweisung &#xFC;ber den jeweiligen Betrag in Ihr Online-Banking-Konto ein. Der H&#xE4;ndler erh&#xE4;lt nach Abschluss der sofort&#xFC;berweisung.de eine Echtzeitbest&#xE4;tigung. So kann er Lagerware und digitale G&#xFC;ter sofort versenden - Sie erhalten dann Ihre Eink&#xE4;ufe schneller.
11
+
12
+ sofort&#xFC;berweisung.de entspricht den hohen Sicherheitsstandards des Online-Bankings und verf&#xFC;gt &#xFC;ber T&#xDC;V-gepr&#xFC;ften Datenschutz. Sie m&#xFC;ssen sich weder registrieren noch ben&#xF6;tigen Sie eine Kreditkarte. Sie bezahlen einfach, sicher und schnell direkt mit Ihrem Online-Bankkonto.</description>
13
+ <notes>- fixed problem with module not being deactivated properly
14
+ - changed sending of email</notes>
15
+ <authors><author><name>SP</name><user>auto-converted</user><email>sp@payment-network.com</email></author></authors>
16
+ <date>2010-08-12</date>
17
+ <time>16:07:32</time>
18
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pnsofortueberweisung"><dir name="form"><file name="paycode.phtml" hash="9e50d4b6c371f0ff7193dbd403402ad9"/><file name="sofortueberweisung.phtml" hash="114f6ffe18747ca9a9683e41a7adcf3d"/></dir><dir name="info"><dir name="pdf"><file name="paycode.phtml" hash="ed1a257b6971093e84a171f22acd925e"/><file name="sofortueberweisung.phtml" hash="5963d54a02fb356c7998b77a358999a7"/></dir><file name="paycode.phtml" hash="fe619e1d2f75d979a2b6c93dec62892a"/><file name="sofortueberweisung.phtml" hash="8a718ace28c89ed9f939c4daa8e9d83c"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="pnsofortueberweisung.xml" hash="6e20ddd757b54ba04ded82dba58ffddf"/></dir><dir name="template"><dir name="pnsofortueberweisung"><dir name="form"><file name="paycode.phtml" hash="a8fcdd2ff522047363dbf47d9003be88"/><file name="sofortueberweisung.phtml" hash="28b617c1012f5a29de126e7eff6711e6"/></dir><dir name="info"><file name="paycode.phtml" hash="e05a548633fbce5699e691adefd36685"/><file name="sofortueberweisung.phtml" hash="01c5caec35a4168d03395c20421e32b1"/></dir><file name="infobox.phtml" hash="d7e84908d2295aacb894c0e1be4a8936"/><file name="notice.phtml" hash="a2516b689ebd35e234a0ec457b6be99e"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_AT"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="f964d9c73a2d9e1873bbaab7ecbbb62d"/></dir><dir name="de_CH"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="f964d9c73a2d9e1873bbaab7ecbbb62d"/></dir><dir name="de_DE"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="f964d9c73a2d9e1873bbaab7ecbbb62d"/></dir><dir name="en_US"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="7c4a7ff69cb21f305710530030844542"/></dir><dir name="fr_FR"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="84ad3331c213133aa989992af0835453"/></dir><dir name="it_IT"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="e9ffba3e84fea6d8f7c400f71db72575"/></dir><dir name="nl_NL"><file name="Paymentnetwork_Sofortueberweisung.csv" hash="b92a43021631b83144b8a28962f54294"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="pnsofortueberweisung"><file name="logo_paycode_198.gif" hash="67a7a3f27350669fcdf17be86ee64250"/><file name="logo_sofortueberweisung170.jpg" hash="c7a66b881654c851f595faf9271b5d1a"/><file name="logo_sofortueberweisung200.jpg" hash="30309f53c3d09342f1af3acb9941c294"/><file name="logo_tuev_144px.gif" hash="6bee90a36853ca5aa99b71ae3c0a8542"/><file name="piktogram.jpg" hash="ce76a19b3314333bcff854985f5065e8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Paymentnetwork_Sofortueberweisung.xml" hash="b7d44d2343d94a67eb13089fdb903ff0"/></dir></target><target name="magecommunity"><dir name="Paymentnetwork"><dir name="Pnsofortueberweisung"><dir name="Block"><dir name="Adminhtml"><dir name="Pnsofortueberweisung"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="3843ce375cf7d0fc2e01362b1426d9cf"/></dir><file name="Form.php" hash="10a3bee9f80741468b7badd951838b9e"/><file name="Tabs.php" hash="1af8fbc5f6687f050c9745fb47c0db10"/></dir><file name="Edit.php" hash="5bb61ea68c63a6e1568568d29c401aec"/><file name="Grid.php" hash="e965a8137734c9f764a58425c058f3f7"/></dir><file name="Pnsofortueberweisung.php" hash="ee0bb6a50bc1b5204c2a1a643b9cc1d6"/></dir><dir name="Form"><file name="Paycode.php" hash="521e3a7cec06f9c335b2f5c041e724d7"/><file name="Pnsofortueberweisung.php" hash="7542a1429b02272ec761b6d4c02b9b8f"/></dir><dir name="Info"><file name="Paycode.php" hash="ba6e00fb01975349d9e1357e9e7e198c"/><file name="Pnsofortueberweisung.php" hash="bad2cbd693b8693902ebd5f2fbac2329"/></dir><file name="Infobox.php" hash="ee2ff11e1aa7855dba4db039d0cb6195"/><file name="Pnsofortueberweisung.php" hash="8ad47aba839c8f1664b0f41b1163da0e"/><file name="Pnsofortueberweisungnotice.php" hash="6d0d6b5b07c8f768d71d345778eaf723"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PnsofortueberweisungController.php" hash="50f5be162967859e63e08b3c5f458457"/></dir><file name="PcsofortueberweisungController.php" hash="631b00b71f5b88e9b975ded3722c1af7"/><file name="PnsofortueberweisungController.php" hash="c4ae32f08a04026c448f5424c798e9a2"/></dir><dir name="etc"><file name="config.xml" hash="449497ef30a4fac4f457d92d76416466"/><file name="system.xml" hash="ea121f8be67951d4d62c4c17e784c897"/></dir><dir name="Helper"><file name="Data.php" hash="47bb71e7887ed2160a7350ad6650d73d"/></dir><dir name="Model"><dir name="Convert"><file name="Order.php" hash="dc9120374b59dbcb1aec72e779055e7c"/><file name="Quote.php" hash="45335503d7d2a0a30c3dc7573c2d272e"/></dir><dir name="Data"><dir name="Form"><dir name="Element"><file name="Link.php" hash="a2230a1936e0635e3bba54d93318e656"/></dir></dir></dir><dir name="Mysql4"><dir name="Pnsofortueberweisung"><file name="Collection.php" hash="75ee6b12b1125e15443a132210a5a6c6"/></dir><file name="Pnsofortueberweisung.php" hash="4c2ea3e6231a452d1c1ba3f74e8a17ae"/><file name="Setup.php" hash="9d7fba554af02f22a16b2c99202dee0a"/></dir><file name="Params.php" hash="c53bf552542a43550bceefa940b277a3"/><file name="Paycode.php" hash="99c635687730a76d631fb2cdb28a1226"/><file name="Pnsofortueberweisung.php" hash="8c9bde849bebb9ac6b20228c674e7d1e"/><file name="Status.php" hash="9cd657c753e8492c69bb5f769531f502"/></dir><dir name="sql"><dir name="pnsofortueberweisung_setup"><file name="mysql4-install-1.1.1.php" hash="a4b9f98ea9dc763e236fdc73760b5ba3"/></dir></dir></dir></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Linkpnso.php" hash="a3f7cea7f4e407197a20bd3c7107b981"/></dir></dir></dir></dir></target></contents>
19
+ <compatible/>
20
+ <dependencies/>
21
+ </package>
skin/frontend/default/default/images/pnsofortueberweisung/logo_paycode_198.gif ADDED
Binary file
skin/frontend/default/default/images/pnsofortueberweisung/logo_sofortueberweisung170.jpg ADDED
Binary file
skin/frontend/default/default/images/pnsofortueberweisung/logo_sofortueberweisung200.jpg ADDED
Binary file
skin/frontend/default/default/images/pnsofortueberweisung/logo_tuev_144px.gif ADDED
Binary file
skin/frontend/default/default/images/pnsofortueberweisung/piktogram.jpg ADDED
Binary file