Novalnet - Version 1.2.3

Version Notes

Textanpassung:

Bei Hinweis für die Kreditkartenzahlung ist das Wort 'sofort/immediately' hinzugefügt worden.

Download this release

Release Info

Developer Magento Core Team
Extension Novalnet
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

Files changed (22) hide show
  1. app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Failure.php +48 -0
  2. app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Form.php +157 -0
  3. app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Info.php +94 -0
  4. app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Redirect.php +51 -0
  5. app/code/community/Mage/Novalnet/Model/NovalnetInstantbanktransfer.php +23 -58
  6. app/code/community/Mage/Novalnet/Model/NovalnetPhonepayment.php +3 -3
  7. app/code/community/Mage/Novalnet/controllers/InstantbanktransferController.php +191 -0
  8. app/code/community/Mage/Novalnet/etc/config.xml +14 -0
  9. app/code/community/Mage/Novalnet/etc/system.xml +92 -0
  10. app/design/adminhtml/default/default/template/novalnet/cc/form.phtml +2 -2
  11. app/design/adminhtml/default/default/template/novalnet/instantbanktransfer/form.phtml +127 -0
  12. app/design/adminhtml/default/default/template/novalnet/instantbanktransfer/info.phtml +36 -0
  13. app/design/frontend/default/default/template/novalnet/cc/form.phtml +2 -2
  14. app/design/frontend/default/default/template/novalnet/instantbanktransfer/failure.phtml +32 -0
  15. app/design/frontend/default/default/template/novalnet/instantbanktransfer/form.phtml +68 -0
  16. app/design/frontend/default/default/template/novalnet/instantbanktransfer/info.phtml +33 -0
  17. app/locale/de_AT/Mage_Novalnet.csv +6 -2
  18. app/locale/de_CH/Mage_Novalnet.csv +6 -2
  19. app/locale/de_DE/Mage_Novalnet.csv +5 -1
  20. app/locale/en_US/Mage_Novalnet.csv +6 -2
  21. package.xml +6 -8
  22. skin/frontend/default/default/images/novalnet/Sofort_Logo_t.jpg +0 -0
app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Failure.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ class Mage_Novalnet_Block_Instantbanktransfer_Failure extends Mage_Core_Block_Template
30
+ {
31
+ /**
32
+ * Return Error message
33
+ *
34
+ * @return string
35
+ */
36
+ public function getErrorMessage ()
37
+ {
38
+ return Mage::getSingleton('checkout/session')->getNovalnetErrorMessage();
39
+ }
40
+
41
+ /**
42
+ * Get continue shopping url
43
+ */
44
+ public function getContinueShoppingUrl()
45
+ {
46
+ return Mage::getUrl('checkout/cart');
47
+ }
48
+ }
app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Form.php ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ class Mage_Novalnet_Block_Instantbanktransfer_Form extends Mage_Payment_Block_Form
30
+ {
31
+ protected function _construct()
32
+ {
33
+ parent::_construct();
34
+ $this->setTemplate('novalnet/instantbanktransfer/form.phtml');#path = magento\app\design\frontend\default\default\template\novalnet\instantbanktransfer
35
+ }
36
+
37
+ /**
38
+ * Retrieve payment configuration object
39
+ *
40
+ * @return Mage_Payment_Model_Config
41
+ */
42
+ protected function _getConfig()
43
+ {
44
+ return Mage::getSingleton('payment/config');
45
+ }
46
+
47
+ /**
48
+ * Retrieve availables credit card types
49
+ *
50
+ * @return array
51
+ */
52
+ /*public function getCcAvailableTypes()
53
+ {
54
+ $types = $this->_getConfig()->getCcTypes();
55
+ if ($method = $this->getMethod()) {
56
+ $availableTypes = $method->getConfigData('cctypes');
57
+ if ($availableTypes) {
58
+ $availableTypes = explode(',', $availableTypes);
59
+ foreach ($types as $code=>$name) {
60
+ if (!in_array($code, $availableTypes)) {
61
+ unset($types[$code]);
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return $types;
67
+ }*/
68
+
69
+ /**
70
+ * Retrieve credit card expire months
71
+ *
72
+ * @return array
73
+ */
74
+ /*public function getCcMonths()
75
+ {
76
+ $months = $this->getData('cc_months');
77
+ if (is_null($months)) {
78
+ $months[0] = $this->__('Month');
79
+ $months = array_merge($months, $this->_getConfig()->getMonths());
80
+ $this->setData('cc_months', $months);
81
+ }
82
+ return $months;
83
+ }*/
84
+
85
+ /**
86
+ * Retrieve credit card expire years
87
+ *
88
+ * @return array
89
+ */
90
+ /*public function getCcYears()
91
+ {
92
+ $years = $this->getData('cc_years');
93
+ if (is_null($years)) {
94
+ $years = $this->_getConfig()->getYears();
95
+ $years = array(0=>$this->__('Year'))+$years;
96
+ $this->setData('cc_years', $years);
97
+ }
98
+ return $years;
99
+ }*/
100
+
101
+ /**
102
+ * Retrive has verification configuration
103
+ *
104
+ * @return boolean
105
+ */
106
+ /*public function hasVerification()
107
+ {
108
+ if ($this->getMethod()) {
109
+ $configData = $this->getMethod()->getConfigData('useccv');
110
+ if(is_null($configData)){
111
+ return true;
112
+ }
113
+ return (bool) $configData;
114
+ }
115
+ return true;
116
+ }*/
117
+ /*public function getCcData($customer_id){
118
+ if (!$customer_id){
119
+ return'';
120
+ #Mage::throwException(__FUNCTION__.': '.Mage::helper('novalnet')->__('Parameter missing').'!');
121
+ }
122
+ #cc_type, cc_last4, cc_owner, cc_exp_month, cc_exp_year, nn_account_holder #nn_account_number, nn_bank_sorting_code, nn_elv_country
123
+ $sql = "select a.cc_type, a.cc_last4, a.cc_owner, a.cc_exp_month, a.cc_exp_year from sales_flat_quote_payment a, sales_flat_quote b where b.customer_id = '$customer_id' and b.entity_id = a.quote_id and a.method = 'novalnetCc' order by a.created_at desc limit 1";
124
+ $data = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);
125
+ if ($data and count($data)>0)return $data[0];
126
+ return'';
127
+ }*/
128
+ public function getUserGroupExcluded()
129
+ {
130
+ $method = $this->getMethod();
131
+ return$method->getConfigData('user_group_excluded');
132
+ }
133
+ public function checkUserGroupAccess($user_group_id, $user_group_name)
134
+ {
135
+ if (!$user_group_id or !$user_group_name){
136
+ return'';
137
+ #Mage::throwException(__FUNCTION__.': '.Mage::helper('novalnet')->__('Parameter missing').'!');
138
+ }
139
+ $sql = "select customer_group_id from customer_group where customer_group_id = '$user_group_id' and customer_group_code = '$user_group_name'";
140
+ $data = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);
141
+ if ($data and count($data) >= 1){
142
+ return false;
143
+ }else {
144
+ return true;
145
+ }
146
+ }
147
+ public function getUserGroupId($id)
148
+ {
149
+ if (!$id){
150
+ return'';
151
+ #Mage::throwException(__FUNCTION__.': '.Mage::helper('novalnet')->__('Parameter missing').'!');
152
+ }
153
+ $sql = "select customer_group_id from sales_flat_quote where customer_id = '$id'";
154
+ $data = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);
155
+ return$data[0]['customer_group_id'];
156
+ }
157
+ }
app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Info.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ class Mage_Novalnet_Block_Instantbanktransfer_Info extends Mage_Payment_Block_Info
30
+ {
31
+ /**
32
+ * Init default template for block
33
+ */
34
+ protected function _construct()
35
+ {
36
+ parent::_construct();
37
+ $this->setTemplate('novalnet/instantbanktransfer/info.phtml');#path = magento\app\design\frontend\default\default\template\novalnet\instantbanktransfer
38
+ }
39
+
40
+ /**
41
+ * Retrieve credit card type name
42
+ *
43
+ * @return string
44
+ */
45
+ /*public function getCcTypeName()
46
+ {
47
+ $types = Mage::getSingleton('payment/config')->getCcTypes();
48
+ if (isset($types[$this->getInfo()->getCcType()])) {
49
+ return $types[$this->getInfo()->getCcType()];
50
+ }
51
+ return $this->getInfo()->getCcType();
52
+ }*/
53
+
54
+ /**
55
+ * Retrieve CC expiration month
56
+ *
57
+ * @return string
58
+ */
59
+ /*public function getCcExpMonth()
60
+ {
61
+ $month = $this->getInfo()->getCcExpMonth();
62
+ if ($month<10) {
63
+ $month = '0'.$month;
64
+ }
65
+ return $month;
66
+ }*/
67
+
68
+ /**
69
+ * Retrieve CC expiration date
70
+ *
71
+ * @return Zend_Date
72
+ */
73
+ /*public function getCcExpDate()
74
+ {
75
+ $date = Mage::app()->getLocale()->date(0);
76
+ $date->setYear($this->getInfo()->getCcExpYear());
77
+ $date->setMonth($this->getInfo()->getCcExpMonth());
78
+ return $date;
79
+ }*/
80
+
81
+ public function toPdf()
82
+ {
83
+ $this->setTemplate('payment/info/pdf/cc.phtml');
84
+ return $this->toHtml();
85
+ }
86
+ public function getMethod()
87
+ {
88
+ return $this->getInfo()->getMethodInstance();
89
+ }
90
+ public function getPaymentMethod()
91
+ {
92
+ return $this->htmlEscape($this->getMethod()->getConfigData('title'));
93
+ }
94
+ }
app/code/community/Mage/Novalnet/Block/Instantbanktransfer/Redirect.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is 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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ class Mage_Novalnet_Block_Instantbanktransfer_Redirect extends Mage_Core_Block_Abstract
30
+ {
31
+ protected function _toHtml()
32
+ {
33
+ $instantbanktransfer = $this->getOrder()->getPayment()->getMethodInstance();
34
+
35
+ $form = new Varien_Data_Form();
36
+ $form->setAction($instantbanktransfer->getNovalnetInstantbanktransferUrl())
37
+ ->setId('novalnet_instantbanktransfer_checkout')
38
+ ->setName('novalnet_instantbanktransfer_checkout')
39
+ ->setMethod('POST')
40
+ ->setUseContainer(true);
41
+ foreach ($instantbanktransfer->getFormFields() as $field=>$value) {
42
+ $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
43
+ }
44
+ $html = '<html><body>';
45
+ $html.= $this->__('You will be redirected to Novalnet AG Instant Bank Transfer in a few seconds.');
46
+ $html.= $form->toHtml();
47
+ $html.= '<script type="text/javascript">document.getElementById("novalnet_instantbanktransfer_checkout").submit();</script>';
48
+ $html.= '</body></html>';
49
+ return $html;
50
+ }
51
+ }
app/code/community/Mage/Novalnet/Model/NovalnetInstantbanktransfer.php CHANGED
@@ -29,21 +29,19 @@
29
 
30
  class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model_Method_Abstract #Mage_Payment_Model_Method_Cc
31
  {
32
- const CGI_URL = 'https://payport.novalnet.de/online_transfer_payport';
33
- const PAYMENT_METHOD = 'Instant Bank Transfer';
34
  const RESPONSE_DELIM_CHAR = '&';
35
  const RESPONSE_CODE_APPROVED = 100;
36
- const KEY = 33;
37
- const PROJECT_ID = 80036;#todo: replace with real project id; (80036 => test project id at www.sofortueberweisung.de/registration
38
- const USER_ID = 29236;#the user id from www.sofortueberweisung.de/registration
39
 
40
- private $debug = false; #todo: set to false
41
  /**
42
  * unique internal payment method identifier
43
  *
44
  * @var string [a-z0-9_]
45
  */
46
- protected $_code = 'novalnetInstantbanktransfer';#path = magento\app\code\community\Mage\Novalnet\Model\novalnetInstantbanktransfer.php
47
  protected $_formBlockType = 'novalnet/instantbanktransfer_form';#path = magento\app\design\frontend\default\default\template\novalnet\instantbanktransfer\form.phtml
48
  protected $_infoBlockType = 'novalnet/instantbanktransfer_info';
49
 
@@ -174,7 +172,6 @@ class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model
174
 
175
  $fieldsArr['vendor'] = $this->getConfigData('merchant_id');
176
  $fieldsArr['auth_code'] = $this->getConfigData('auth_code');
177
- #$fieldsArr['key'] = self::KEY;
178
  $fieldsArr['key'] = self::KEY;
179
  $fieldsArr['product'] = $this->getConfigData('product_id');
180
  $fieldsArr['tariff'] = $this->getConfigData('tariff_id');
@@ -190,42 +187,32 @@ class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model
190
  $fieldsArr['zip'] = $billing->getPostcode();
191
  $fieldsArr['country_code'] = $billing->getCountry();
192
  $fieldsArr['lang'] = $billing->getLang();
193
- #$fieldsArr['remote_ip'] = $order->getRemoteIp();
194
- $fieldsArr['remote_ip'] = $this->getRealIpAddr();
195
  $fieldsArr['tel'] = $billing->getTelephone();
196
  $fieldsArr['fax'] = $billing->getFax();
197
  $fieldsArr['birth_date'] = $order->getRemoteIp();
198
  $fieldsArr['session'] = session_id();
199
- #$fieldsArr['return_url'] = Mage::getUrl('novalnet/instantbanktransfer/success', array('_instantbanktransfer' => true));
200
- $fieldsArr['return_url'] = Mage::getUrl('checkout/onepage/saveOrder/', array('success' => true, 'error' => false, 'redirect' => Mage::getUrl('checkout/onepage/saveOrder/', array()) ) );
201
  $fieldsArr['return_method'] = 'POST';
202
- #$fieldsArr['error_return_url'] = Mage::getUrl('novalnet/instantbanktransfer/success', array('_instantbanktransfer' => true));#todo:failure
203
- $fieldsArr['error_return_url'] = Mage::getUrl('checkout/onepage/savePayment/', array('error' => true, 'success' => false, 'redirect' => Mage::getUrl('checkout/onepage/savePayment/', array()) ) );#redirect
204
  $fieldsArr['error_return_method'] = 'POST';
205
- #$fieldsArr['input1'] = 'order_id';
206
- #$fieldsArr['inputval1'] = $paymentInfo->getOrder()->getRealOrderId();
207
 
208
  #on Clicking onto <Weiter> after choice of payment type
209
- /*
210
- payment[method]=novalnetInstantbanktransfer
211
- payment[cc_type]=VI
212
- payment[cc_owner]=Zhang
213
- payment[cc_number]=4200000000000000
214
- payment[cc_exp_month]=1
215
- payment[cc_exp_year]=2012
216
- payment[cc_cid]=123
217
  */
218
- $fieldsArr['payment[method]'] = 'novalnetInstantbanktransfer';
219
 
220
  ############## INSTANT BANK Transfer specific parameters
221
- $prefix = 'instantbanktransfer_';
222
- $fieldsArr[$prefix.'url'] = self::CGI_URL;
223
- $fieldsArr[$prefix.'project_id'] = self::PROJECT_ID;
224
- $fieldsArr[$prefix.'user_id'] = self::USER_ID;
225
- $fieldsArr[$prefix.'reason_1'] = 'Test2';#todo?
226
- $fieldsArr[$prefix.'reason_2'] = 'Test3';#todo?
227
- $fieldsArr[$prefix.'amount'] = str_replace(',', '.', $order->getBaseGrandTotal()*100);
228
- $fieldsArr[$prefix.'user_variable_0'] = $paymentInfo->getOrder()->getRealOrderId();
229
 
230
  $request = '';
231
  foreach ($fieldsArr as $k => $v) {
@@ -236,7 +223,8 @@ class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model
236
 
237
  public function getOrderPlaceRedirectUrl()
238
  {
239
- return Mage::getUrl('novalnet/instantbanktransfer/redirect');#path: magento\app\code\community\Mage\Novalnet\Block\Instantbanktransfer\redirect.php
 
240
  }
241
 
242
  public function getNovalnetInstantbanktransferUrl()
@@ -278,34 +266,11 @@ class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model
278
 
279
  public function assignData($data)#this mehtode will be called twice: once after choice of payment, once after klicking on <Place Order>
280
  {
281
- $this->debug2(__FUNCTION__, 'magento_assignData.txt');
282
- $this->debug2($data, 'magento_assignData.txt');
283
- /*if(!session_is_registered('tid')){
284
- $this->debug2($data, 'magento_assignData1.txt');
285
- $addresses = $this->getQuote()->getAllAddresses();
286
- $this->checkAmountAllowed();
287
- $this->aBillingAddress = $this->getBillingAddress($addresses);
288
- $this->debug2($this, 'magento_assignData_this.txt');
289
- $this->getFirstCall();
290
- }else{
291
- $this->debug2($data, 'magento_assignData2.txt');
292
- #Mage::throwException($this->text.'hl');
293
- }
294
-
295
- if (!($data instanceof Varien_Object)) {
296
- $data = new Varien_Object($data);
297
- }
298
- $info=$this->getInfoInstance();*/
299
- /*$info->setNnElvCountry($data->getElvCountry())
300
- ->setNnAccountHolder($data->getAccountHolder())
301
- ->setNnAccountNumber($data->getAccountNumber())
302
- ->setNnBankSortingCode($data->getBankSortingCode());*/
303
-
304
  return $this;
305
  }
306
  public function debug2($object, $filename)
307
  {
308
- if (!$this->debug){return;}
309
  $fh = fopen("/tmp/$filename", 'a+');
310
  if (gettype($object) == 'object' or gettype($object) == 'array'){
311
  fwrite($fh, serialize($object));
29
 
30
  class Mage_Novalnet_Model_NovalnetInstantbanktransfer extends Mage_Payment_Model_Method_Abstract #Mage_Payment_Model_Method_Cc
31
  {
32
+ const CGI_URL = 'https://payport.novalnet.de/online_transfer_payport';
33
+ const PAYMENT_METHOD = 'Instant Bank Transfer';
34
  const RESPONSE_DELIM_CHAR = '&';
35
  const RESPONSE_CODE_APPROVED = 100;
36
+ const KEY = 33;
 
 
37
 
38
+ private $_debug = false; #todo: set to false for live system
39
  /**
40
  * unique internal payment method identifier
41
  *
42
  * @var string [a-z0-9_]
43
  */
44
+ protected $_code = 'novalnetInstantbanktransfer';#path = magento\app\code\community\Mage\Novalnet\Model\novalnetInstantbanktransfer.php
45
  protected $_formBlockType = 'novalnet/instantbanktransfer_form';#path = magento\app\design\frontend\default\default\template\novalnet\instantbanktransfer\form.phtml
46
  protected $_infoBlockType = 'novalnet/instantbanktransfer_info';
47
 
172
 
173
  $fieldsArr['vendor'] = $this->getConfigData('merchant_id');
174
  $fieldsArr['auth_code'] = $this->getConfigData('auth_code');
 
175
  $fieldsArr['key'] = self::KEY;
176
  $fieldsArr['product'] = $this->getConfigData('product_id');
177
  $fieldsArr['tariff'] = $this->getConfigData('tariff_id');
187
  $fieldsArr['zip'] = $billing->getPostcode();
188
  $fieldsArr['country_code'] = $billing->getCountry();
189
  $fieldsArr['lang'] = $billing->getLang();
190
+ $fieldsArr['remote_ip'] = $this->getRealIpAddr();
 
191
  $fieldsArr['tel'] = $billing->getTelephone();
192
  $fieldsArr['fax'] = $billing->getFax();
193
  $fieldsArr['birth_date'] = $order->getRemoteIp();
194
  $fieldsArr['session'] = session_id();
195
+ $fieldsArr['return_url'] = Mage::getUrl('novalnet/instantbanktransfer/success', array('_instantbanktransfer' => true));#orig
 
196
  $fieldsArr['return_method'] = 'POST';
197
+ $fieldsArr['error_return_url'] = Mage::getUrl('novalnet/instantbanktransfer/success', array('_instantbanktransfer' => true));#orig.
 
198
  $fieldsArr['error_return_method'] = 'POST';
199
+ $fieldsArr['input1'] = 'order_id';
200
+ $fieldsArr['inputval1'] = $paymentInfo->getOrder()->getRealOrderId();
201
 
202
  #on Clicking onto <Weiter> after choice of payment type
203
+ /*
204
+ payment[method]=novalnetInstantbanktransfer
205
+ payment[cc_type]=VI
206
+ payment[cc_owner]=Zhang
207
+ payment[cc_number]=4200000000000000
208
+ payment[cc_exp_month]=1
209
+ payment[cc_exp_year]=2012
210
+ payment[cc_cid]=123
211
  */
212
+ #$fieldsArr['payment[method]'] = 'novalnetInstantbanktransfer';
213
 
214
  ############## INSTANT BANK Transfer specific parameters
215
+ $fieldsArr['user_variable_0'] = str_replace('http://', '', Mage::getBaseUrl());
 
 
 
 
 
 
 
216
 
217
  $request = '';
218
  foreach ($fieldsArr as $k => $v) {
223
 
224
  public function getOrderPlaceRedirectUrl()
225
  {
226
+ return Mage::getUrl('novalnet/instantbanktransfer/redirect', array('_secure' => true));#path: magento\app\code\community\Mage\Novalnet\Block\Instantbanktransfer\redirect.php
227
+ #Mage::log("getOrderPlaceRedirectUrl called");
228
  }
229
 
230
  public function getNovalnetInstantbanktransferUrl()
266
 
267
  public function assignData($data)#this mehtode will be called twice: once after choice of payment, once after klicking on <Place Order>
268
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  return $this;
270
  }
271
  public function debug2($object, $filename)
272
  {
273
+ if (!$this->_debug){return;}
274
  $fh = fopen("/tmp/$filename", 'a+');
275
  if (gettype($object) == 'object' or gettype($object) == 'array'){
276
  fwrite($fh, serialize($object));
app/code/community/Mage/Novalnet/Model/NovalnetPhonepayment.php CHANGED
@@ -215,14 +215,14 @@ class Mage_Novalnet_Model_NovalnetPhonepayment extends Mage_Payment_Model_Method
215
 
216
  $billing = $order->getBillingAddress();
217
  $street = preg_split("/(\d)/",$billing->getStreet(1),2,PREG_SPLIT_DELIM_CAPTURE);
218
- if (!isset($street[1])){$street[1]='';}
219
  if (!isset($street[2])){$street[2]='';}
220
  if (!$street[0]){$street[0] = $street[1].$street[2];}
221
  if (!$street[0])
222
  {
223
  Mage::throwException(Mage::helper('novalnet')->__('Street missing'));
224
- }
225
-
226
  if (!empty($billing)) {
227
  if (session_is_registered('tid')){
228
  $this->debug2($billing, 'magento_billing2.txt');
215
 
216
  $billing = $order->getBillingAddress();
217
  $street = preg_split("/(\d)/",$billing->getStreet(1),2,PREG_SPLIT_DELIM_CAPTURE);
218
+ /*if (!isset($street[1])){$street[1]='';}
219
  if (!isset($street[2])){$street[2]='';}
220
  if (!$street[0]){$street[0] = $street[1].$street[2];}
221
  if (!$street[0])
222
  {
223
  Mage::throwException(Mage::helper('novalnet')->__('Street missing'));
224
+ }*/
225
+ if (!$billing->getStreet(1)){Mage::throwException(Mage::helper('novalnet')->__('Street missing'));}
226
  if (!empty($billing)) {
227
  if (session_is_registered('tid')){
228
  $this->debug2($billing, 'magento_billing2.txt');
app/code/community/Mage/Novalnet/controllers/InstantbanktransferController.php ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mage_Novalnet_InstantbanktransferController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ private $debug = false; #todo: set to false
5
+ protected function _expireAjax()
6
+ {
7
+ if (!$this->getCheckout()->getQuote()->hasItems()) {
8
+ $this->getResponse()->setHeader('HTTP/1.1','403 Session Expired');
9
+ exit;
10
+ }
11
+ }
12
+
13
+ /**
14
+ * Redirect Block
15
+ * need to be redeclared
16
+ */
17
+ protected $_redirectBlockType = 'novalnet/instantbanktransfer_redirect';#path = block/instantbanktransfer/redirect.php
18
+
19
+ /**
20
+ * Get singleton of Checkout Session Model
21
+ *
22
+ * @return Mage_Checkout_Model_Session
23
+ */
24
+ public function getCheckout()
25
+ {
26
+ return Mage::getSingleton('checkout/session');
27
+ }
28
+
29
+ /**
30
+ * when customer select novalnet payment method
31
+ */
32
+ public function redirectAction()
33
+ {
34
+ $session = $this->getCheckout();
35
+ $session->setNovalnetQuoteId($session->getQuoteId());
36
+ $session->setNovalnetRealOrderId($session->getLastRealOrderId());
37
+
38
+ $order = Mage::getModel('sales/order');
39
+ $order->loadByIncrementId($session->getLastRealOrderId());
40
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('novalnet')->__('Customer was redirected to Novalnet'));
41
+ $order->save();
42
+
43
+ $this->getResponse()->setBody(
44
+ $this->getLayout()
45
+ ->createBlock($this->_redirectBlockType)
46
+ ->setOrder($order)
47
+ ->toHtml()
48
+ );
49
+
50
+ $session->unsQuoteId();
51
+ }
52
+
53
+ /**
54
+ * novalnet returns POST variables to this action
55
+ */
56
+ public function successAction()
57
+ {
58
+ $status = $this->_checkReturnedPost();
59
+
60
+ if ($status) {
61
+ $session = $this->getCheckout();
62
+
63
+ $session->unsNovalnetRealOrderId();
64
+ $session->setQuoteId($session->getNovalnetQuoteId(true));
65
+ $session->getQuote()->setIsActive(false)->save();
66
+
67
+ $order = Mage::getModel('sales/order');
68
+ $order->load($this->getCheckout()->getLastOrderId());
69
+ if($order->getId()) {
70
+ $order->sendNewOrderEmail();
71
+ }
72
+
73
+ #if ($status) {#removed to line 61
74
+ $this->_redirect('checkout/onepage/success');
75
+ } else {
76
+ #$this->_redirect('checkout/onepage/failure');#ok, but not so good; $this->_redirect('*/*/failure');
77
+ $this->_redirect('checkout/cart');#new; ok
78
+ #$this->_redirect('checkout/shipping');#new; not ok, nor: 'checkout/payment'
79
+ }
80
+ }
81
+
82
+ /**
83
+ * Display failure page if error
84
+ *
85
+ */
86
+ public function failureAction()
87
+ {
88
+ $status = $this->_checkReturnedPost();#new
89
+ if (!$this->getCheckout()->getNovalnetErrorMessage()) {
90
+ $this->norouteAction();
91
+ #$this->_redirect('checkout/onepage/payment');
92
+ return;
93
+ }
94
+
95
+ $this->loadLayout();
96
+ $this->renderLayout();
97
+ }
98
+
99
+ /**
100
+ * Checking POST variables.
101
+ * Creating invoice if payment was successfull or cancel order if payment was declined
102
+ */
103
+ protected function _checkReturnedPost()
104
+ {
105
+ if (!$this->getRequest()->isPost()) {
106
+ $this->norouteAction();
107
+ return;
108
+ }
109
+ $status = true;
110
+ $response = $this->getRequest()->getPost();
111
+ //error_log(print_r($response,true),3,'/tmp/magento_response.log');
112
+
113
+ $order = Mage::getModel('sales/order');
114
+ $order->loadByIncrementId($response['inputval1']);#order_id;
115
+ $payment = $order->getPayment();
116
+ $paymentInst = $payment->getMethodInstance();
117
+
118
+ $paymentInst->setResponse($response);
119
+
120
+ if ($response['status'] == 100 ) {
121
+ // if ($order->canInvoice()) {
122
+ $invoice = $order->prepareInvoice();
123
+ $invoice->register()->capture();
124
+ Mage::getModel('core/resource_transaction')
125
+ ->addObject($invoice)
126
+ ->addObject($invoice->getOrder())
127
+ ->save();
128
+
129
+ $paymentInst->setTransactionId($response['tid']);
130
+ $payment->setLastTransId($response['tid']);
131
+ $payment->setCcTransId($response['tid']);
132
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('novalnet')->__('Customer successfully returned from Novalnet'));
133
+ $order->save();
134
+ //}
135
+ } else {
136
+ $paymentInst->setTransactionId($response['tid']);
137
+ $payment->setLastTransId($response['tid']);
138
+ $payment->setCcTransId($response['tid']);
139
+
140
+ if ($response['status'] == 94)
141
+ {
142
+ Mage::getSingleton('checkout/session')->addError("Customer abortet payment process");#new
143
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('novalnet')->__('Customer abortet payment process'));
144
+ }
145
+ else
146
+ {
147
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('novalnet')->__('Customer was rejected by Novalnet'));
148
+ }
149
+ #$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, "Failure:'No extra information'");#new
150
+ $order->cancel();
151
+ $status = false;
152
+ $this->getCheckout()->setNovalnetErrorMessage($response['status_text']);
153
+ $order->save();
154
+ $this->deleteOrder($increment_id = $response['inputval1']);#new
155
+ }
156
+ return $status;
157
+ }
158
+
159
+ public function debug2($object, $filename, $debug = false)
160
+ {
161
+ if (!$this->debug and !$debug){return;}
162
+ $fh = fopen("/tmp/$filename", 'a+');
163
+ if (gettype($object) == 'object' or gettype($object) == 'array'){
164
+ fwrite($fh, serialize($object));
165
+ }else{
166
+ fwrite($fh, date('H:i:s').' '.$object);
167
+ }
168
+ fwrite($fh, "<hr />\n");
169
+ fclose($fh);
170
+ }
171
+
172
+ private function deleteOrder($increment_id)
173
+ {
174
+ $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
175
+ #$conn = Mage::getResourceSingleton('core/resource')->getConnection('core_write');
176
+ $query = "select entity_id from sales_order_entity where increment_id='$increment_id';";
177
+ if ($result = $conn->query($query))
178
+ {
179
+ if ($rows = $result->fetch(PDO::FETCH_ASSOC))
180
+ {
181
+ $order_id = $row['entity_id'];
182
+ $query = "delete from sales_order_entity where entity_id='$order_id' or parent_id='$order_id';";
183
+ $conn->query($query);
184
+ }
185
+ }
186
+ $query = "delete from sales_order where increment_id='$increment_id';";
187
+ $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
188
+ $conn->query($query);
189
+ }
190
+ }
191
+ ?>
app/code/community/Mage/Novalnet/etc/config.xml CHANGED
@@ -209,6 +209,20 @@
209
  <!-- default title for payment checkout page and order view page -->
210
  <title>Phonepayment</title>
211
  </novalnetPhonepayment>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  </payment>
213
  </default>
214
  </config>
209
  <!-- default title for payment checkout page and order view page -->
210
  <title>Phonepayment</title>
211
  </novalnetPhonepayment>
212
+ <novalnetInstantbanktransfer>
213
+ <cctypes>VI,MC</cctypes>
214
+ <!-- by default this payment method is inactive -->
215
+ <active>1</active>
216
+ <cgi_url>https://payport.novalnet.de/paygate.jsp</cgi_url>
217
+ <!-- model to handle logic for this payment method -->
218
+ <model>novalnet/novalnetInstantbanktransfer</model>
219
+ <payment_action>authorize_capture</payment_action>
220
+ <!-- order status for new orders paid by this payment method -->
221
+ <order_status>1</order_status>
222
+ <allowspecific>0</allowspecific>
223
+ <!-- default title for payment checkout page and order view page -->
224
+ <title>Instant Bank Transfer</title>
225
+ </novalnetInstantbanktransfer>
226
  </payment>
227
  </default>
228
  </config>
app/code/community/Mage/Novalnet/etc/system.xml CHANGED
@@ -659,6 +659,98 @@
659
  </user_group_excluded>
660
  </fields>
661
  </novalnetPhonepayment>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
662
  </groups>
663
  </payment>
664
  </sections>
659
  </user_group_excluded>
660
  </fields>
661
  </novalnetPhonepayment>
662
+ <novalnetInstantbanktransfer translate="label" module="novalnet">
663
+ <!-- will have title 'New Module' -->
664
+ <label>Instant Bank Transfer</label>
665
+ <!-- position between other payment methods -->
666
+ <sort_order>692</sort_order>
667
+ <!-- do not show this configuration options in store scope -->
668
+ <show_in_default>1</show_in_default>
669
+ <show_in_website>1</show_in_website>
670
+ <show_in_store>0</show_in_store>
671
+ <fields>
672
+ <!-- is this payment method active for the website? -->
673
+ <active translate="label">
674
+ <!-- label for the field -->
675
+ <label>Enabled</label>
676
+ <!-- input type for configuration value -->
677
+ <frontend_type>select</frontend_type>
678
+ <!-- model to take the option values from -->
679
+ <source_model>adminhtml/system_config_source_yesno</source_model>
680
+ <!-- field position -->
681
+ <sort_order>1</sort_order>
682
+ <!-- do not show this field in store scope -->
683
+ <show_in_default>1</show_in_default>
684
+ <show_in_website>1</show_in_website>
685
+ <show_in_store>0</show_in_store>
686
+ </active>
687
+ <order_status translate="label">
688
+ <label>New order status</label>
689
+ <frontend_type>select</frontend_type>
690
+ <source_model>adminhtml/system_config_source_order_status_processing</source_model>
691
+ <sort_order>4</sort_order>
692
+ <show_in_default>1</show_in_default>
693
+ <show_in_website>1</show_in_website>
694
+ <show_in_store>0</show_in_store>
695
+ </order_status>
696
+ <title translate="label">
697
+ <label>Title</label>
698
+ <frontend_type>text</frontend_type>
699
+ <sort_order>2</sort_order>
700
+ <show_in_default>1</show_in_default>
701
+ <show_in_website>1</show_in_website>
702
+ <show_in_store>0</show_in_store>
703
+ </title>
704
+ <merchant_id translate="label">
705
+ <label>Novalnet Merchant ID</label>
706
+ <frontend_type>text</frontend_type>
707
+ <sort_order>5</sort_order>
708
+ <show_in_default>1</show_in_default>
709
+ <show_in_website>1</show_in_website>
710
+ <show_in_store>0</show_in_store>
711
+ </merchant_id>
712
+ <auth_code translate="label">
713
+ <label>Novalnet Auth Code</label>
714
+ <frontend_type>text</frontend_type>
715
+ <sort_order>6</sort_order>
716
+ <show_in_default>1</show_in_default>
717
+ <show_in_website>1</show_in_website>
718
+ <show_in_store>0</show_in_store>
719
+ </auth_code>
720
+ <product_id translate="label">
721
+ <label>Novalnet Product ID</label>
722
+ <frontend_type>text</frontend_type>
723
+ <sort_order>7</sort_order>
724
+ <show_in_default>1</show_in_default>
725
+ <show_in_website>1</show_in_website>
726
+ <show_in_store>0</show_in_store>
727
+ </product_id>
728
+ <tariff_id translate="label">
729
+ <label>Novalnet Tariff ID</label>
730
+ <frontend_type>text</frontend_type>
731
+ <sort_order>8</sort_order>
732
+ <show_in_default>1</show_in_default>
733
+ <show_in_website>1</show_in_website>
734
+ <show_in_store>0</show_in_store>
735
+ </tariff_id>
736
+ <user_group_excluded translate="label">
737
+ <label>User Group Excluded</label>
738
+ <frontend_type>text</frontend_type>
739
+ <sort_order>13</sort_order>
740
+ <show_in_default>1</show_in_default>
741
+ <show_in_website>1</show_in_website>
742
+ <show_in_store>0</show_in_store>
743
+ </user_group_excluded>
744
+ <comment translate="label">
745
+ <label>Notice for Clients</label>
746
+ <frontend_type>textarea</frontend_type>
747
+ <sort_order>14</sort_order>
748
+ <show_in_default>1</show_in_default>
749
+ <show_in_website>1</show_in_website>
750
+ <show_in_store>0</show_in_store>
751
+ </comment>
752
+ </fields>
753
+ </novalnetInstantbanktransfer>
754
  </groups>
755
  </payment>
756
  </sections>
app/design/adminhtml/default/default/template/novalnet/cc/form.phtml CHANGED
@@ -113,7 +113,7 @@ if (isset($_SESSION['adminhtml_quote']["customer_id"]))
113
  </li>
114
  <?php endif; ?>
115
  <li>
116
- <?php echo $this->__('The amount will be booked from your credit card<BR>with <B>%s</B> note.',$this->getMethod()->getBookingReference());?>
117
  </li>
118
  </ul>
119
  </fieldset>
@@ -131,4 +131,4 @@ if (isset($_SESSION['adminhtml_quote']["customer_id"]))
131
  }
132
  }
133
  <?php #if (!$allowed){echo"hideMe('$_code')"; }?>
134
- </script>
113
  </li>
114
  <?php endif; ?>
115
  <li>
116
+ <?php echo $this->__('The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.',$this->getMethod()->getBookingReference());?>
117
  </li>
118
  </ul>
119
  </fieldset>
131
  }
132
  }
133
  <?php #if (!$allowed){echo"hideMe('$_code')"; }?>
134
+ </script>
app/design/adminhtml/default/default/template/novalnet/instantbanktransfer/form.phtml ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php #$_code=$this->getMethodCode();?>
29
+ <?php
30
+ $allowed = true;
31
+ $cc_type = $cc_last4 = $cc_owner = $cc_exp_month = $cc_exp_year = '';
32
+ if (isset($_SESSION['adminhtml_quote']["customer_id"]))
33
+ {
34
+ $customer_id = $_SESSION['adminhtml_quote']["customer_id"];
35
+ $accountData = $this->getCcData($customer_id);
36
+ $cc_type = $cc_last4 = $cc_owner = $cc_exp_month = $cc_exp_year = '';
37
+ if ($accountData){
38
+ list($cc_type, $cc_last4, $cc_owner, $cc_exp_month, $cc_exp_year) = array_values($accountData);
39
+ }
40
+ $user_group_id = $this->getUserGroupId($customer_id);
41
+ $user_group_name = $this->getUserGroupExcluded();
42
+ if (!$user_group_name){$allowed = true;}
43
+ else{$allowed = $this->checkUserGroupAccess($user_group_id, $user_group_name);}
44
+ }
45
+ ?>
46
+ <?php if ($allowed) {?>
47
+ <fieldset class="form-list">
48
+ <?php $_code=$this->getMethodCode() ?>
49
+ <?php $baseUrl=Mage::getBaseUrl('skin') ?>
50
+ <div style="position: relative; left: 14em; top: -2.5em">
51
+ </div>
52
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
53
+ <li>
54
+ <div class="input-box">
55
+ <label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
56
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
57
+ <option value=""><?php echo $this->__('--Please Select--')?></option>
58
+ <?php $_ccType = $cc_type; #$this->getInfoData('cc_type') ?>
59
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
60
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
61
+ <?php endforeach ?>
62
+ </select>
63
+ </div>
64
+ </li>
65
+ <li>
66
+ <div class="input-box">
67
+ <label for="<?php echo $_code ?>_cc_owner"><?php echo $this->__('Name on Card') ?> <span class="required">*</span></label><br/>
68
+ <input type="text" title="<?php echo $this->__('Name on Card') ?>" class="required-entry input-text" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $cc_owner; #$this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
69
+ </div>
70
+ </li>
71
+ <li>
72
+ <div class="input-box">
73
+ <label for="<?php echo $_code ?>_cc_number"><?php echo $this->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
74
+ <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo$cc_last4;# $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="" />
75
+ </div>
76
+ </li>
77
+ <li>
78
+ <div class="input-box">
79
+ <label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
80
+ <div class="v-fix">
81
+ <select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="required-entry">
82
+ <?php $_ccExpMonth = $cc_exp_month; #$this->getInfoData('cc_exp_month') ?>
83
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
84
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
85
+ <?php endforeach ?>
86
+ </select>
87
+ </div>
88
+ <div class="v-fix" style="padding-left:5px;">
89
+ <?php $_ccExpYear = $cc_exp_year; #$this->getInfoData('cc_exp_year') ?>
90
+ <select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
91
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
92
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
93
+ <?php endforeach ?>
94
+ </select>
95
+ </div>
96
+ </div>
97
+ </li>
98
+ <?php if($this->hasVerification()): ?>
99
+ <li>
100
+ <div class="input-box">
101
+ <label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label><br />
102
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="" /></div>
103
+ &nbsp;
104
+ <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
105
+ </div>
106
+ </li>
107
+ <?php endif; ?>
108
+ <li>
109
+ <?php echo $this->__('The amount will be booked immediately from your credit card <BR>with <B>%s</B> note.',$this->getMethod()->getBookingReference());?>
110
+ </li>
111
+ </ul>
112
+ </fieldset>
113
+ <?php }?>
114
+ <script type="text/javascript">
115
+ function hideMe(payment_code){
116
+ t = 'p_method_' + payment_code.toString();
117
+ document.getElementById(t).style.visibility = 'hidden';
118
+ aTags = document.getElementsByTagName("label");
119
+ for (i=0; i<aTags.length; i++){
120
+ if (aTags[i].htmlFor == t){
121
+ aTags[i].style.visibility = 'hidden';
122
+ i = aTags.length;
123
+ }
124
+ }
125
+ }
126
+ <?php if (!$allowed){echo"hideMe('$_code')"; }?>
127
+ </script>
app/design/adminhtml/default/default/template/novalnet/instantbanktransfer/info.phtml 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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php if($_info = $this->getInfo()): ?>
29
+ <?php echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />
30
+ <?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
31
+ <?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br />
32
+ <?php echo $this->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?><br />
33
+ <?php if ($_info->getLastTransId()!="") echo $this->__('TID: %s', $this->htmlEscape($_info->getLastTransId())) ?><br />
34
+ <?php else: ?>
35
+
36
+ <?php endif; ?>
app/design/frontend/default/default/template/novalnet/cc/form.phtml CHANGED
@@ -109,7 +109,7 @@ else{$allowed = $this->checkUserGroupAccess($user_group_id, $user_group_name);}
109
  </li>
110
  <?php endif; ?>
111
  <li>
112
- <?php echo $this->__('The amount will be booked from your credit card<BR>with <B>%s</B> note.',$this->getMethod()->getBookingReference());?>
113
  </li>
114
  </ul>
115
  </fieldset>
@@ -127,4 +127,4 @@ else{$allowed = $this->checkUserGroupAccess($user_group_id, $user_group_name);}
127
  }
128
  }
129
  <?php if (!$allowed){echo"hideMe('$_code')"; }?>
130
- </script>
109
  </li>
110
  <?php endif; ?>
111
  <li>
112
+ <?php echo $this->__('The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.',$this->getMethod()->getBookingReference());?>
113
  </li>
114
  </ul>
115
  </fieldset>
127
  }
128
  }
129
  <?php if (!$allowed){echo"hideMe('$_code')"; }?>
130
+ </script>
app/design/frontend/default/default/template/novalnet/instantbanktransfer/failure.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <div class="page-head">
29
+ <h3><?php echo $this->__('Error occured') ?></h3>
30
+ </div>
31
+ <p><?php echo $this->getErrorMessage() ?>.</p>
32
+ <p><?php echo $this->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
app/design/frontend/default/default/template/novalnet/instantbanktransfer/form.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php #$_code=$this->getMethodCode();?>
29
+ <?php
30
+ $cc_type = $cc_last4 = $cc_owner = $cc_exp_month = $cc_exp_year = '';
31
+ $customer_id = '';
32
+ if ($_SESSION and $_SESSION['customer_base'] and $_SESSION['customer_base']['id'])
33
+ {
34
+ $customer_id = $_SESSION['customer_base']['id'];
35
+ $accountData = $this->getCcData($customer_id);
36
+ }
37
+
38
+ if (isset($accountData) and $accountData){
39
+ list($cc_type, $cc_last4, $cc_owner, $cc_exp_month, $cc_exp_year) = array_values($accountData);
40
+ }
41
+ $user_group_id = $this->getUserGroupId($customer_id);
42
+ $user_group_name = $this->getUserGroupExcluded();
43
+ if (!$user_group_name){$allowed = true;}
44
+ else{$allowed = $this->checkUserGroupAccess($user_group_id, $user_group_name);}
45
+ ?>
46
+ <?php if ($allowed) {?>
47
+ <fieldset class="form-list">
48
+ <?php $_code=$this->getMethodCode() ?>
49
+ <?php $baseUrl=Mage::getBaseUrl('skin') ?>
50
+ <div style="position: relative; left: 14em; top: -2.5em">
51
+ <img src='<?php echo $baseUrl?>frontend/default/default/images/novalnet/Sofort_Logo_t.jpg' alt='Sofortueberweisung Logo'/>
52
+ </div>
53
+ </fieldset>
54
+ <?php }?>
55
+ <script type="text/javascript">
56
+ function hideMe(payment_code){
57
+ t = 'p_method_' + payment_code.toString();
58
+ document.getElementById(t).style.visibility = 'hidden';
59
+ aTags = document.getElementsByTagName("label");
60
+ for (i=0; i<aTags.length; i++){
61
+ if (aTags[i].htmlFor == t){
62
+ aTags[i].style.visibility = 'hidden';
63
+ i = aTags.length;
64
+ }
65
+ }
66
+ }
67
+ <?php if (!$allowed){echo"hideMe('$_code')"; }?>
68
+ </script>
app/design/frontend/default/default/template/novalnet/instantbanktransfer/info.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * Part of the Paymentmodul of Novalnet AG
16
+ * http://www.novalnet.de
17
+ * If you have found this script usefull a small
18
+ * recommendation as well as a comment on merchant form
19
+ * would be greatly appreciated.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Novalnet AG
24
+ * @version 1.0.0
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php if($_info = $this->getInfo()): ?>
29
+ <?php echo $this->__($this->htmlEscape($this->getPaymentMethod())) ?><br />
30
+ <?php if ($_info->getLastTransId()!="") echo $this->__('TID: %s', $this->htmlEscape($_info->getLastTransId())) ?><br />
31
+ <?php else: ?>
32
+
33
+ <?php endif; ?>
app/locale/de_AT/Mage_Novalnet.csv CHANGED
@@ -33,7 +33,7 @@
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
- "The amount will be booked from your credit card<BR>with <B>%s</B> note.","Der Betrag wird von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
@@ -101,4 +101,8 @@
101
  "Parameter missing","Parameter fehlt"
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
- "Instant Bank Transfer","Sofortüberweisung"
 
 
 
 
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
+ "The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.","Der Betrag wird sofort von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
101
  "Parameter missing","Parameter fehlt"
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
+ "Instant Bank Transfer","Sofortüberweisung"
105
+ "Customer successfully returned from Novalnet","Besteller von Novalnet erfolgreich zurückgeleitet"
106
+ "Customer was redirected to Novalnet","Besteller zu Novalnet umgeleitet"
107
+ "Customer abortet payment process","Besteller hat den Bezahlvorgang abgebrochen"
108
+ "Customer was rejected by Novalnet","Besteller von Novalnet abgelehnt"
app/locale/de_CH/Mage_Novalnet.csv CHANGED
@@ -33,7 +33,7 @@
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
- "The amount will be booked from your credit card<BR>with <B>%s</B> note.","Der Betrag wird von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
@@ -101,4 +101,8 @@
101
  "Parameter missing","Parameter fehlt"
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
- "Instant Bank Transfer","Sofortüberweisung"
 
 
 
 
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
+ "The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.","Der Betrag wird sofort von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
101
  "Parameter missing","Parameter fehlt"
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
+ "Instant Bank Transfer","Sofortüberweisung"
105
+ "Customer successfully returned from Novalnet","Besteller von Novalnet erfolgreich zurückgeleitet"
106
+ "Customer was redirected to Novalnet","Besteller zu Novalnet umgeleitet"
107
+ "Customer abortet payment process","Besteller hat den Bezahlvorgang abgebrochen"
108
+ "Customer was rejected by Novalnet","Besteller von Novalnet abgelehnt"
app/locale/de_DE/Mage_Novalnet.csv CHANGED
@@ -33,7 +33,7 @@
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
- "The amount will be booked from your credit card<BR>with <B>%s</B> note.","Der Betrag wird von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
@@ -102,3 +102,7 @@
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
  "Instant Bank Transfer","Sofortüberweisung"
 
 
 
 
33
  "Credit Card Type: %s","Kreditkartentyp: %s"
34
  "Expiration Date: %s/%s","Gültig bis: %s/%s"
35
  "Credit Card Types","Mögliche Kreditkarten"
36
+ "The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.","Der Betrag wird sofort von Ihrer Kreditkarte mit dem<BR>Verwendungszweck <B>%s</B> abgebucht."
37
  "This is not a valid account number.","Die Kontonummer ist nicht gültig!"
38
  "This is not a valid bank sorting code.","Die Bankleitzahl ist nicht gültig!"
39
  "Direct Debit","Lastschrift"
102
  "Comment","Bemerkung"
103
  "Email address missing","Emailadresse nicht vorhanden"
104
  "Instant Bank Transfer","Sofortüberweisung"
105
+ "Customer successfully returned from Novalnet","Besteller von Novalnet erfolgreich zurückgeleitet"
106
+ "Customer was redirected to Novalnet","Besteller zu Novalnet umgeleitet"
107
+ "Customer abortet payment process","Besteller hat den Bezahlvorgang abgebrochen"
108
+ "Customer was rejected by Novalnet","Besteller von Novalnet abgelehnt"
app/locale/en_US/Mage_Novalnet.csv CHANGED
@@ -32,7 +32,7 @@
32
  "Credit Card Type: %s","Credit Card Type: %s"
33
  "Expiration Date: %s/%s","Expiration Date: %s/%s"
34
  "Credit Card Types","Credit Card Types"
35
- "The amount will be booked from your credit card<BR>with <B>%s</B> note.","The amount will be booked from your credit card<BR>with <B>%s</B> note."
36
  "This is not a valid account number.","This is not a valid account number!"
37
  "This is not a valid bank sorting code.","This is not a valid bank sorting code!"
38
  "Direct Debit","Direct Debit"
@@ -98,4 +98,8 @@
98
  "Parameter missing","Parameter missing"
99
  "Comment","Comment"
100
  "Email address missing","Email address missing"
101
- "Instant Bank Transfer","Instant Bank Transfer"
 
 
 
 
32
  "Credit Card Type: %s","Credit Card Type: %s"
33
  "Expiration Date: %s/%s","Expiration Date: %s/%s"
34
  "Credit Card Types","Credit Card Types"
35
+ "The amount will be booked immediately from your credit card<BR>with <B>%s</B> note.","The amount will be booked immediately from your credit card<BR>with <B>%s</B> note."
36
  "This is not a valid account number.","This is not a valid account number!"
37
  "This is not a valid bank sorting code.","This is not a valid bank sorting code!"
38
  "Direct Debit","Direct Debit"
98
  "Parameter missing","Parameter missing"
99
  "Comment","Comment"
100
  "Email address missing","Email address missing"
101
+ "Instant Bank Transfer","Instant Bank Transfer"
102
+ "Customer successfully returned from Novalnet","Customer successfully returned from Novalnet"
103
+ "Customer was redirected to Novalnet","Customer was redirected to Novalnet"
104
+ "Customer abortet payment process","Customer abortet payment process"
105
+ "Customer was rejected by Novalnet","Customer was rejected by Novalnet"
package.xml CHANGED
@@ -1,22 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Novalnet</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Novalnet AG ist ein deutsches EPayment - Unternehmen, bietet alle relevanten Zahlungsarten weltweit. / Novalnet is a German based payment service provider, which offers all the available payments and solutions worldwide.</summary>
10
  <description>The NOVALNET AG is an essential component of e-Payment platform that facilitates your company to process all type of payments. As one of the leading company in Online-Payment the NOVALNET AG provides its customers an individual, technically qualified secured Payment system and also the best possible support throughout. NOVALNET AG is not only an e-Payment provider but also we offer our Merchants an optimal strategic solution for easy payment processing which is pocket-friendly for our customer.</description>
11
- <notes>Bugfixing:
12
 
13
- Als unangemeldeter Benutzer bekam man im Bestellvorgang eine Fehlermeldung angezeigt:
14
-
15
- Notice: Undefined variable: customer_id ...</notes>
16
  <authors><author><name>Dixon Rajdaniel</name><user>auto-converted</user><email>dr@novalnet.de</email></author></authors>
17
- <date>2009-11-16</date>
18
- <time>11:24:41</time>
19
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="novalnet"><dir name="cc"><file name="form.phtml" hash="f533486929ca1e56736e72356888f1d2"/><file name="info.phtml" hash="cec3097648d7f53a2ce898c3ef0fdfd4"/></dir><dir name="elvaustria"><file name="form.phtml" hash="91dad9be6ecd4a19ec3e016684b76d71"/><file name="info.phtml" hash="5f1138c9af0f954851f173830cbd6f05"/></dir><dir name="elvgerman"><file name="form.phtml" hash="b4af054ac7786a541f6784ca786f3d99"/><file name="info.phtml" hash="5f1138c9af0f954851f173830cbd6f05"/></dir><dir name="invoice"><file name="form.phtml" hash="2dcea7005b16c665e523ecd362c5dd03"/><file name="info.phtml" hash="995bdbdb29181b0e68ab72e97c54ed77"/></dir><dir name="phonepayment"><file name="form.phtml" hash="715e3cfbda4eb427ad53bc0eff82f271"/><file name="info.phtml" hash="f905f359e8bafa12d31b65ce6c710743"/></dir><dir name="prepayment"><file name="form.phtml" hash="63fa5a47af9d203d1b72502b3fd958fb"/><file name="info.phtml" hash="f905f359e8bafa12d31b65ce6c710743"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="novalnet"><dir name="cc"><file name="form.phtml" hash="9f679580bf5a7bcfb74092605d1abf53"/><file name="info.phtml" hash="c606874c228dc547b5ee058169c0536d"/></dir><dir name="elvaustria"><file name="form.phtml" hash="9d12f579603f8e766f8e28d47f802645"/><file name="info.phtml" hash="df166d57f6680b5945706ebeb88c28e0"/></dir><dir name="elvgerman"><file name="form.phtml" hash="36ab89d337d702706a8aa0868dba7d84"/><file name="info.phtml" hash="df166d57f6680b5945706ebeb88c28e0"/></dir><dir name="invoice"><file name="form.phtml" hash="7ea6e3ce7efb3d00f19cb158edb22ba9"/><file name="info.phtml" hash="f8d4c1a6d3f9fb3d8278e7fa82d661b8"/></dir><dir name="phonepayment"><file name="form.phtml" hash="f3c57e4b7b96f97bf660a38b851cc65b"/><file name="info.phtml" hash="6a50f5400b1c9b38629ea9314a08d3b1"/></dir><dir name="prepayment"><file name="form.phtml" hash="2b85410c616f40694eceb0a4ec9d3e77"/><file name="info.phtml" hash="6a50f5400b1c9b38629ea9314a08d3b1"/></dir><dir name="secure"><file name="failure.phtml" hash="d33ccb69a08a2195df3586bf36dc9d85"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_AT"><file name="Mage_Novalnet.csv" hash="d42ba7fb8a23d4af790da49cac518656"/></dir><dir name="de_CH"><file name="Mage_Novalnet.csv" hash="d42ba7fb8a23d4af790da49cac518656"/></dir><dir name="de_DE"><file name="Mage_Novalnet.csv" hash="2749861768903567c4e357724b5d34f6"/></dir><dir name="en_US"><file name="Mage_Novalnet.csv" hash="e5d4d57ef09788f77c350e84ed542a41"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="novalnet"><file name="acdc_info.png" hash="fa69e3f3098c4f85d9d3c796d82bdf0a"/><file name="AE_Logo.png" hash="ed3b558031a1f03e1bd536ecf1233e0e"/><file name="ELV_Logo.png" hash="b265493a083f03e4da7d24c23cc55b67"/><file name="MC_Logo.png" hash="cd17acdae3de28aeff7da7952d2ef802"/><file name="NN_Logo.png" hash="e17794ee0b984fd6e1ec2b884da1a29b"/><file name="NN_Logo_T.png" hash="4d442efcb94c9fee7749022478a9d1f3"/><file name="VI_Logo.png" hash="5e963373aa1db58369730238cf311548"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Novalnet"><dir name="Block"><dir name="Cc"><file name="Form.php" hash="d85d4f5f3cfc19abee8a3b9388de7fe7"/><file name="Info.php" hash="c96a58aa8542b8cbe375650206b40cd8"/></dir><dir name="Elvaustria"><file name="Form.php" hash="deaa6cef24778a8267f269852d295ea8"/><file name="Info.php" hash="d3b662ae5a3b5c795ebb8a1b2e3ab62c"/></dir><dir name="Elvgerman"><file name="Form.php" hash="d50a54a153cb9f72f257ed217ea6f7ab"/><file name="Info.php" hash="4517cd593bfdb4e02a84cc11259ab3ee"/></dir><dir name="Invoice"><file name="Form.php" hash="09416dc8b843b8edbec01a2a5ae3b96c"/><file name="Info.php" hash="5525c9ae3534663b5d5da0a326c9c2fa"/></dir><dir name="Phonepayment"><file name="Form.php" hash="f7cbfe3fe0cf97ae69108ad5d4e9cf82"/><file name="Info.php" hash="1d3542d6eba2396d2ac2908b3932a181"/></dir><dir name="Prepayment"><file name="Form.php" hash="2742a76acca7614d9dcfd0ec130c7334"/><file name="Info.php" hash="9cab5ed40e74dca7fdc76b819ee11de6"/></dir><dir name="Secure"><file name="Failure.php" hash="38cdb224914c9551cbdb0b884b808a33"/><file name="Redirect.php" hash="e94a51bd54e4aa17803ec240e8f1a25d"/></dir></dir><dir name="controllers"><file name="SecureController.php" hash="740aa237bf2578a1f07820c4f0eb56c5"/></dir><dir name="etc"><file name="config.xml" hash="e67970f092ec8925d1270e765843a1ba"/><file name="system.xml" hash="49dc37fb95f89f79c55cc28eba298e58"/></dir><dir name="Helper"><file name="Data.php" hash="5cd27f9fbb7e3b7083c3d80c8354a5d3"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="bda93bd1825c67b2eac9943ec42076f1"/></dir><dir name="Novalnet"><dir name="Source"><file name="Cctype.php" hash="e886ba7736877e589abfd6f7343f98d4"/></dir><file name="Request.php" hash="87fd92d8890377ab2e3fb1dc2c1790bf"/><file name="Result.php" hash="fa36462e819f3581e27d50b201d9fb99"/></dir><file name="NovalnetCc.php" hash="25d146988e6c04e59b980bf38f0fabb6"/><file name="NovalnetElvaustria.php" hash="af5bbccaf0f3d81058955b7608d843e9"/><file name="NovalnetElvgerman.php" hash="c1358e31c6b74d4deffb91004257cfd5"/><file name="NovalnetInstantbanktransfer.php" hash="d8575bde0997191e77beae3919e20841"/><file name="NovalnetInvoice.php" hash="393070ca3a37def33533a01daab1c484"/><file name="NovalnetPhonepayment.php" hash="7bea822b5ea6c670009fa4003820aa10"/><file name="NovalnetPrepayment.php" hash="3d8ddd15cae754b7d1f614e6602c43eb"/><file name="NovalnetSecure.php" hash="d929538867236421c3afb6918e6c2607"/></dir><dir name="sql"><dir name="novalnet_setup"><file name="mysql4-install-1.0.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.3-1.1.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.0-1.1.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.1-1.1.2.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.3-1.1.4.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.6-1.1.7.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.7-1.1.8.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.8-1.1.9.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.9-1.2.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Novalnet.xml" hash="752f2f1df5ae673d9deafdaa6f021b32"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Novalnet</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Novalnet AG ist ein deutsches EPayment - Unternehmen, bietet alle relevanten Zahlungsarten weltweit. / Novalnet is a German based payment service provider, which offers all the available payments and solutions worldwide.</summary>
10
  <description>The NOVALNET AG is an essential component of e-Payment platform that facilitates your company to process all type of payments. As one of the leading company in Online-Payment the NOVALNET AG provides its customers an individual, technically qualified secured Payment system and also the best possible support throughout. NOVALNET AG is not only an e-Payment provider but also we offer our Merchants an optimal strategic solution for easy payment processing which is pocket-friendly for our customer.</description>
11
+ <notes>Textanpassung:
12
 
13
+ Bei Hinweis f&#xFC;r die Kreditkartenzahlung ist das Wort 'sofort/immediately' hinzugef&#xFC;gt worden.</notes>
 
 
14
  <authors><author><name>Dixon Rajdaniel</name><user>auto-converted</user><email>dr@novalnet.de</email></author></authors>
15
+ <date>2009-12-16</date>
16
+ <time>15:49:11</time>
17
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="novalnet"><dir name="cc"><file name="form.phtml" hash="8bd0c41a5e5f7dc32a0f36a32f54ef1b"/><file name="info.phtml" hash="cec3097648d7f53a2ce898c3ef0fdfd4"/></dir><dir name="elvaustria"><file name="form.phtml" hash="91dad9be6ecd4a19ec3e016684b76d71"/><file name="info.phtml" hash="5f1138c9af0f954851f173830cbd6f05"/></dir><dir name="elvgerman"><file name="form.phtml" hash="b4af054ac7786a541f6784ca786f3d99"/><file name="info.phtml" hash="5f1138c9af0f954851f173830cbd6f05"/></dir><dir name="instantbanktransfer"><file name="form.phtml" hash="205d620e3ef30e80a82bd10b17462a03"/><file name="info.phtml" hash="cec3097648d7f53a2ce898c3ef0fdfd4"/></dir><dir name="invoice"><file name="form.phtml" hash="2dcea7005b16c665e523ecd362c5dd03"/><file name="info.phtml" hash="995bdbdb29181b0e68ab72e97c54ed77"/></dir><dir name="phonepayment"><file name="form.phtml" hash="715e3cfbda4eb427ad53bc0eff82f271"/><file name="info.phtml" hash="f905f359e8bafa12d31b65ce6c710743"/></dir><dir name="prepayment"><file name="form.phtml" hash="63fa5a47af9d203d1b72502b3fd958fb"/><file name="info.phtml" hash="f905f359e8bafa12d31b65ce6c710743"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="novalnet"><dir name="cc"><file name="form.phtml" hash="b87bf1e82c96b17c01fca88dd4578b7e"/><file name="info.phtml" hash="c606874c228dc547b5ee058169c0536d"/></dir><dir name="elvaustria"><file name="form.phtml" hash="9d12f579603f8e766f8e28d47f802645"/><file name="info.phtml" hash="df166d57f6680b5945706ebeb88c28e0"/></dir><dir name="elvgerman"><file name="form.phtml" hash="36ab89d337d702706a8aa0868dba7d84"/><file name="info.phtml" hash="df166d57f6680b5945706ebeb88c28e0"/></dir><dir name="instantbanktransfer"><file name="failure.phtml" hash="d33ccb69a08a2195df3586bf36dc9d85"/><file name="form.phtml" hash="079a89a4ad8957ea675e6222dd6140ad"/><file name="info.phtml" hash="dc0e26c00ce9abd340e32e5f99c03fc4"/></dir><dir name="invoice"><file name="form.phtml" hash="7ea6e3ce7efb3d00f19cb158edb22ba9"/><file name="info.phtml" hash="f8d4c1a6d3f9fb3d8278e7fa82d661b8"/></dir><dir name="phonepayment"><file name="form.phtml" hash="f3c57e4b7b96f97bf660a38b851cc65b"/><file name="info.phtml" hash="6a50f5400b1c9b38629ea9314a08d3b1"/></dir><dir name="prepayment"><file name="form.phtml" hash="2b85410c616f40694eceb0a4ec9d3e77"/><file name="info.phtml" hash="6a50f5400b1c9b38629ea9314a08d3b1"/></dir><dir name="secure"><file name="failure.phtml" hash="d33ccb69a08a2195df3586bf36dc9d85"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_AT"><file name="Mage_Novalnet.csv" hash="512b48c420eb8798ec562cea992cb8c9"/></dir><dir name="de_CH"><file name="Mage_Novalnet.csv" hash="512b48c420eb8798ec562cea992cb8c9"/></dir><dir name="de_DE"><file name="Mage_Novalnet.csv" hash="512b48c420eb8798ec562cea992cb8c9"/></dir><dir name="en_US"><file name="Mage_Novalnet.csv" hash="2f7b377f1026fbfd76e4cf59aea8a196"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="novalnet"><file name="acdc_info.png" hash="fa69e3f3098c4f85d9d3c796d82bdf0a"/><file name="AE_Logo.png" hash="ed3b558031a1f03e1bd536ecf1233e0e"/><file name="ELV_Logo.png" hash="b265493a083f03e4da7d24c23cc55b67"/><file name="MC_Logo.png" hash="cd17acdae3de28aeff7da7952d2ef802"/><file name="NN_Logo.png" hash="e17794ee0b984fd6e1ec2b884da1a29b"/><file name="NN_Logo_T.png" hash="4d442efcb94c9fee7749022478a9d1f3"/><file name="Sofort_Logo_t.jpg" hash="3b88302d88393b582c1cccd152e267bc"/><file name="VI_Logo.png" hash="5e963373aa1db58369730238cf311548"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Novalnet"><dir name="Block"><dir name="Cc"><file name="Form.php" hash="d85d4f5f3cfc19abee8a3b9388de7fe7"/><file name="Info.php" hash="c96a58aa8542b8cbe375650206b40cd8"/></dir><dir name="Elvaustria"><file name="Form.php" hash="deaa6cef24778a8267f269852d295ea8"/><file name="Info.php" hash="d3b662ae5a3b5c795ebb8a1b2e3ab62c"/></dir><dir name="Elvgerman"><file name="Form.php" hash="d50a54a153cb9f72f257ed217ea6f7ab"/><file name="Info.php" hash="4517cd593bfdb4e02a84cc11259ab3ee"/></dir><dir name="Instantbanktransfer"><file name="Failure.php" hash="eff4ad5092570e0a6aac5560aa1466a4"/><file name="Form.php" hash="479141cd4ebf61820c702e3032796c44"/><file name="Info.php" hash="9ba8ff30244f48409aadb4671b7dd02f"/><file name="Redirect.php" hash="a877cfb3bda97ce9014f0e9d5ca8e001"/></dir><dir name="Invoice"><file name="Form.php" hash="09416dc8b843b8edbec01a2a5ae3b96c"/><file name="Info.php" hash="5525c9ae3534663b5d5da0a326c9c2fa"/></dir><dir name="Phonepayment"><file name="Form.php" hash="f7cbfe3fe0cf97ae69108ad5d4e9cf82"/><file name="Info.php" hash="1d3542d6eba2396d2ac2908b3932a181"/></dir><dir name="Prepayment"><file name="Form.php" hash="2742a76acca7614d9dcfd0ec130c7334"/><file name="Info.php" hash="9cab5ed40e74dca7fdc76b819ee11de6"/></dir><dir name="Secure"><file name="Failure.php" hash="38cdb224914c9551cbdb0b884b808a33"/><file name="Redirect.php" hash="e94a51bd54e4aa17803ec240e8f1a25d"/></dir></dir><dir name="controllers"><file name="InstantbanktransferController.php" hash="5c7ccf87e3adca8178cb6865419d0e32"/><file name="SecureController.php" hash="740aa237bf2578a1f07820c4f0eb56c5"/></dir><dir name="etc"><file name="config.xml" hash="3885351b7c88a2ba997aa50fae6f2ea8"/><file name="system.xml" hash="8507bb5508652bae137a5b68f0363108"/></dir><dir name="Helper"><file name="Data.php" hash="5cd27f9fbb7e3b7083c3d80c8354a5d3"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="bda93bd1825c67b2eac9943ec42076f1"/></dir><dir name="Novalnet"><dir name="Source"><file name="Cctype.php" hash="e886ba7736877e589abfd6f7343f98d4"/></dir><file name="Request.php" hash="87fd92d8890377ab2e3fb1dc2c1790bf"/><file name="Result.php" hash="fa36462e819f3581e27d50b201d9fb99"/></dir><file name="NovalnetCc.php" hash="25d146988e6c04e59b980bf38f0fabb6"/><file name="NovalnetElvaustria.php" hash="af5bbccaf0f3d81058955b7608d843e9"/><file name="NovalnetElvgerman.php" hash="c1358e31c6b74d4deffb91004257cfd5"/><file name="NovalnetInstantbanktransfer.php" hash="aa0628eef1d1762b783b2aa057ad8313"/><file name="NovalnetInvoice.php" hash="393070ca3a37def33533a01daab1c484"/><file name="NovalnetPhonepayment.php" hash="5f4349aadf003350b07d76342a4c4186"/><file name="NovalnetPrepayment.php" hash="3d8ddd15cae754b7d1f614e6602c43eb"/><file name="NovalnetSecure.php" hash="d929538867236421c3afb6918e6c2607"/></dir><dir name="sql"><dir name="novalnet_setup"><file name="mysql4-install-1.0.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.0.3-1.1.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.0-1.1.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.1-1.1.2.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.3-1.1.4.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.6-1.1.7.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.7-1.1.8.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.8-1.1.9.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.1.9-1.2.0.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="d15297ab95ca0b76038e32a4ad9fff79"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Novalnet.xml" hash="752f2f1df5ae673d9deafdaa6f021b32"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
skin/frontend/default/default/images/novalnet/Sofort_Logo_t.jpg ADDED
Binary file