AlternativePaymentsInc_AlternativePayments - Version 1.0.2

Version Notes

This module adds the wide range of different alternative payment methods.

Download this release

Release Info

Developer Alternative Payments Inc
Extension AlternativePaymentsInc_AlternativePayments
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/AlternativePaymentsInc/AlternativePayments/Block/Adminhtml/Textfields.php ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class AlternativePaymentsInc_AlternativePayments_Block_Adminhtml_Textfields extends Mage_Adminhtml_Block_System_Config_Form_Field
4
+ {
5
+ protected $_addRowButtonHtml = array();
6
+ protected $_removeRowButtonHtml = array();
7
+
8
+ /*
9
+ public function setCollection($collection)
10
+ {
11
+
12
+ $store = $this->_getStore();
13
+
14
+ if ($store->getId() && !isset($this->_joinAttributes['special_price'])) {
15
+ $collection->joinAttribute(
16
+ 'special_price',
17
+ 'catalog_product/special_price',
18
+ 'entity_id',
19
+ null,
20
+ 'left',
21
+ $store->getId()
22
+ );
23
+ }
24
+ else {
25
+ $collection->addAttributeToSelect('special_price');
26
+ }
27
+
28
+ parent::setCollection($collection);
29
+ }
30
+ */
31
+
32
+ protected function _prepareColumns()
33
+ {
34
+ $store = $this->_getStore();
35
+ $this->addColumnAfter('special_price',
36
+ array(
37
+ 'header'=> Mage::helper('catalog')->__('special_price'),
38
+ 'type' => 'price',
39
+ 'currency_code' => $store->getBaseCurrency()->getCode(),
40
+ 'index' => 'special_price',
41
+ ),
42
+ 'price'
43
+ );
44
+
45
+ return parent::_prepareColumns();
46
+ }
47
+
48
+
49
+
50
+
51
+
52
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
53
+ {
54
+ $this->setElement($element);
55
+
56
+ $html = '<div id="code_label_textfields_template" style="display:none">';
57
+ $html .= $this->_getRowTemplateHtml();
58
+ $html .= '</div>';
59
+
60
+ $html .= '<ul id="code_label_textfields_container">';
61
+
62
+ if ($this->_getValue('method')) {
63
+ foreach ($this->_getValue('method') as $i=>$f) {
64
+ if ($i) {
65
+ $html .= $this->_getRowTemplateHtml($i);
66
+ }
67
+ }
68
+ }
69
+
70
+ $html .= '</ul>';
71
+
72
+
73
+ $html .= $this->_getAddRowButtonHtml('code_label_textfields_container', 'code_label_textfields_template', $this->__('Button Label Here'));
74
+
75
+ return $html;
76
+ }
77
+
78
+ protected function _getRowTemplateHtml()
79
+ {
80
+ $html = '<li>';
81
+
82
+ $html .= '<div style="margin:5px 0 10px;">';
83
+ $html .= '<input class="input-text" name="'.$this->getElement()->getName().'" value="'.$this->_getValue('price/'.$i).'" '.$this->_getDisabled().'/> ';
84
+
85
+ $html .= $this->_getRemoveRowButtonHtml();
86
+ $html .= '</div>';
87
+
88
+ $html .= '</li>';
89
+
90
+ return $html;
91
+ }
92
+
93
+
94
+
95
+ protected function _getDisabled()
96
+ {
97
+ return $this->getElement()->getDisabled() ? ' disabled' : '';
98
+ }
99
+
100
+ protected function _getValue($key)
101
+ {
102
+ return $this->getElement()->getData('value/'.$key);
103
+ }
104
+
105
+ protected function _getSelected($key, $value)
106
+ {
107
+ return $this->getElement()->getData('value/'.$key)==$value ? 'selected="selected"' : '';
108
+ }
109
+
110
+ protected function _getAddRowButtonHtml($container, $template, $title='Add')
111
+ {
112
+ if (!isset($this->_addRowButtonHtml[$container])) {
113
+ $this->_addRowButtonHtml[$container] = $this->getLayout()->createBlock('adminhtml/widget_button')
114
+ ->setType('button')
115
+ ->setClass('add '.$this->_getDisabled())
116
+ ->setLabel($this->__($title))
117
+ //$this->__('Add')
118
+ ->setOnClick("Element.insert($('".$container."'), {bottom: $('".$template."').innerHTML})")
119
+ ->setDisabled($this->_getDisabled())
120
+ ->toHtml();
121
+ }
122
+ return $this->_addRowButtonHtml[$container];
123
+ }
124
+
125
+ protected function _getRemoveRowButtonHtml($selector='li', $title='Remove')
126
+ {
127
+ if (!$this->_removeRowButtonHtml) {
128
+ $this->_removeRowButtonHtml = $this->getLayout()->createBlock('adminhtml/widget_button')
129
+ ->setType('button')
130
+ ->setClass('delete v-middle '.$this->_getDisabled())
131
+ ->setLabel($this->__($title))
132
+ //$this->__('Remove')
133
+ ->setOnClick("Element.remove($(this).up('".$selector."'))")
134
+ ->setDisabled($this->_getDisabled())
135
+ ->toHtml();
136
+ }
137
+ return $this->_removeRowButtonHtml;
138
+ }
139
+ }
app/code/community/AlternativePaymentsInc/AlternativePayments/Block/Adminhtml/Textfields1.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class AlternativePaymentsInc_AlternativePayments_Block_Adminhtml_Textfields1 extends Mage_Adminhtml_Block_System_Config_Form_Field
4
+ {
5
+
6
+ protected $_addRowButtonHtml = array();
7
+ protected $_removeRowButtonHtml = array();
8
+
9
+
10
+
11
+
12
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
13
+ {
14
+ $this->setElement($element);
15
+
16
+
17
+
18
+
19
+ $jova = $this->_getSelected('ACH', 'ACH - Online Check');
20
+
21
+ $carrier = array ( 'ACH' => 'ACH - Online Check',
22
+ 'BARPAY'=> 'BARPAY',
23
+ 'DIRECTPAY'=> 'Directpay'
24
+ );
25
+
26
+ ?>
27
+
28
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'js/alternativepayments/test.js'?>">
29
+ </script>
30
+
31
+
32
+
33
+
34
+ <?php
35
+
36
+ $html .= '<select multiple="multiple" size="10" class="select multiselect" name="groups[alternativepayments][fields][testfield][value][]">';
37
+
38
+ /*
39
+ $html .= ' <option '. $this->_getSelected('ACH', 'ACH - Online Check') . ' value="ACH">ACH - Online Check</option>';
40
+ $html .= ' <option selected="selected" value="BARPAY">BARPAY</option>';
41
+ $html .= ' <option value="DIRECTPAY">Directpay</option>';
42
+ $html .= ' <option selected="selected" value="DIRECTPAYMAX">Pay by Bank</option>';
43
+ */
44
+
45
+ foreach ($carrier as $methodCode => $method) {
46
+ $code = $methodCode;
47
+ $html .= '<option value="' . $this->escapeHtml($code) . '" '
48
+ . $this->_getSelected('method/' . 0, $code)
49
+ . ' style="background:white;">' . $this->escapeHtml($method) . '</option>';
50
+
51
+ echo $this->_getSelected('method/' . 0, $code);
52
+
53
+ }
54
+
55
+
56
+ $html .= '</select>';
57
+
58
+
59
+ $html .= $this->_getAddRowButtonHtml('code_label_textfields_container', 'code_label_textfields_template', $this->__('Button Label Here'));
60
+
61
+
62
+
63
+ $html .= '<div id="code_label_textfields_template" style="display:none">';
64
+ $html .= $this->_getRowTemplateHtml();
65
+ $html .= '</div>';
66
+
67
+
68
+
69
+
70
+ $html .= "----------------\n";
71
+ $html .= "$jova";
72
+ $html .= "\n ----------------";
73
+
74
+
75
+ $html .= '<ul id="code_label_textfields_container">';
76
+
77
+
78
+
79
+ if ($this->_getValue('method')) {
80
+ foreach ($this->_getValue('method') as $i=>$f) {
81
+ if ($i) {
82
+ $html .= $this->_getRowTemplateHtml($i);
83
+ }
84
+ }
85
+ }
86
+
87
+ $html .= '</ul>';
88
+
89
+
90
+ // $html .= $this->_getAddRowButtonHtml('code_label_textfields_container', 'code_label_textfields_template', $this->__('Button Label Here'));
91
+
92
+ return $html;
93
+ }
94
+
95
+ protected function _getRowTemplateHtml()
96
+ {
97
+
98
+
99
+ $html .= '<li>';
100
+
101
+ $html .= '<div style="margin:5px 0 10px;">';
102
+ $html .= '<input class="input-text" name="'.$this->getElement()->getName().'" value="'.$this->_getValue('price/'.$i).'" '.$this->_getDisabled().'/> ';
103
+
104
+ $html .= $this->_getRemoveRowButtonHtml();
105
+ $html .= '</div>';
106
+
107
+ $html .= '</li>';
108
+
109
+ return $html;
110
+ }
111
+
112
+
113
+
114
+ protected function _getDisabled()
115
+ {
116
+ return $this->getElement()->getDisabled() ? ' disabled' : '';
117
+ }
118
+
119
+ protected function _getValue($key)
120
+ {
121
+ return $this->getElement()->getData('value/'.$key);
122
+ }
123
+
124
+ protected function _getSelected($key, $value)
125
+ {
126
+
127
+ file_put_contents(Mage::getBaseDir('base')."/var/log/iiiiii$$$.txt", print_r("\n $key sdfs $value \n", true), FILE_APPEND);
128
+
129
+ return $this->getElement()->getData('value/'.$key)==$value ? 'selected="selected"' : '';
130
+ }
131
+
132
+ protected function _getAddRowButtonHtml($container, $template, $title='Add')
133
+ {
134
+ if (!isset($this->_addRowButtonHtml[$container])) {
135
+ $this->_addRowButtonHtml[$container] = $this->getLayout()->createBlock('adminhtml/widget_button')
136
+ ->setType('button')
137
+ ->setClass('add '.$this->_getDisabled())
138
+ ->setLabel($this->__($title))
139
+ //$this->__('Add')
140
+ ->setOnClick("Element.insert($('".$container."'), {bottom: $('".$template."').innerHTML})")
141
+ ->setDisabled($this->_getDisabled())
142
+ ->toHtml();
143
+ }
144
+ return $this->_addRowButtonHtml[$container];
145
+ }
146
+
147
+ protected function _getRemoveRowButtonHtml($selector='li', $title='Remove')
148
+ {
149
+ if (!$this->_removeRowButtonHtml) {
150
+ $this->_removeRowButtonHtml = $this->getLayout()->createBlock('adminhtml/widget_button')
151
+ ->setType('button')
152
+ ->setClass('delete v-middle '.$this->_getDisabled())
153
+ ->setLabel($this->__($title))
154
+ //$this->__('Remove')
155
+ ->setOnClick("Element.remove($(this).up('".$selector."'))")
156
+ ->setDisabled($this->_getDisabled())
157
+ ->toHtml();
158
+ }
159
+ return $this->_removeRowButtonHtml;
160
+ }
161
+
162
+ }
app/code/community/AlternativePaymentsInc/AlternativePayments/Block/Adminhtml/Textfields2.php ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AlternativePaymentsInc_AlternativePayments_Block_Adminhtml_Textfields2
3
+ extends Mage_Adminhtml_Block_System_Config_Form_Field
4
+
5
+ {
6
+
7
+
8
+ public function __construct($attributes=array())
9
+ {
10
+
11
+ parent::__construct($attributes);
12
+ // Set some defaults for our grid
13
+
14
+ $this->setSize(20);
15
+
16
+ }
17
+
18
+
19
+
20
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
21
+ {
22
+
23
+ ?>
24
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'js/alternativepayments/test1.js'?>"></script>
25
+
26
+ <script>
27
+ function myHandler1() {
28
+
29
+ /*
30
+ <tr id="row_payment_alternativepayments_tshow1" style="display: none;">
31
+ */
32
+ if ($('row_payment_alternativepayments_tshow1').show()) {
33
+
34
+ // $(this).setAttribute('selected', 'selected');
35
+
36
+ $('row_payment_alternativepayments_tshow1').show();
37
+
38
+
39
+
40
+ } else {
41
+
42
+
43
+ }
44
+
45
+ // $(this).setAttribute('selected', 'selected');
46
+ console.log('!!! myHandler1 !!!');
47
+
48
+ };
49
+
50
+
51
+
52
+ function modifyTargetElement(checkboxElem){
53
+ if(checkboxElem.checked){
54
+ $("target_element").disabled=true;
55
+ }
56
+ else{
57
+ $("target_element").disabled=false;
58
+ }
59
+ }
60
+ </script>
61
+
62
+
63
+ <?php
64
+ /*
65
+ $eventElem=$fieldset->addField('nocode', 'checkbox', array(
66
+ 'label' => Mage::helper('customer')->__('Event Element'),
67
+ 'name' => 'eventelem',
68
+ 'id' => 'eventelem',
69
+ 'value'=>1,
70
+ 'onclick'=>'myHandler1()',
71
+ ));
72
+ */
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ $date = new Varien_Data_Form_Element_Multiselect;
82
+ // array('title', 'class', 'style', 'onclick', 'onchange', 'disabled', 'size', 'tabindex');
83
+
84
+
85
+ /* array('type', 'title', 'class', 'style', 'onclick', 'onchange', 'onkeyup', 'disabled', 'readonly', 'maxlength', 'tabindex');
86
+
87
+ */
88
+ $data = array(
89
+ 'title' => 'testtitle',
90
+ // 'class' => 'select multiselect',
91
+ // 'required' => true,
92
+ 'name' => 'title1',
93
+ 'onclick' => "return false;",
94
+ 'onchange' => "myHandler1();",
95
+ 'value' => '10,5',
96
+ 'values' => array(
97
+ '-1'=> array( 'label' => 'Please Select..', 'value' => '-1'),
98
+ '1' => array( 'label' => 'aaaaaaaaaa', 'value' => '10'),
99
+ '2' => array( 'label' => 'bbbbbbbbbb', 'value' => '11'),
100
+ /*
101
+ '3' => array(
102
+ 'value'=> array( array('value'=>'2' , 'label' => 'Option2') ,
103
+ array('value'=>'3' , 'label' =>'Option3')
104
+ ),
105
+ 'label' => 'Size'
106
+ ),
107
+ '4' => array(
108
+ 'value'=> array( array('value'=>'4' , 'label' => 'Option4') ,
109
+ array('value'=>'5' , 'label' =>'Option5') ,
110
+ array('value'=>'6' , 'label' =>'Option6') ,
111
+ array('value'=>'7' , 'label' =>'Option7')
112
+ ),
113
+ 'label' => 'Color'
114
+ ),
115
+ */
116
+
117
+ ),
118
+ // 'image' => $this->getSkinUrl('alternativepayments/images/qm.gif'),
119
+ );
120
+
121
+ $date->setData($data);
122
+
123
+
124
+ $date->setForm($element->getForm());
125
+
126
+ return $date->getElementHtml();
127
+ }
128
+
129
+
130
+
131
+
132
+ public function _getDefaultHtml()
133
+ {
134
+ $result = ( $this->getNoSpan() === true ) ? '' : '<span class="field-row">'."\n";
135
+ $result.= $this->getLabelHtml();
136
+ $result.= $this->getElementHtml();
137
+
138
+
139
+ if($this->getSelectAll() && $this->getDeselectAll()) {
140
+ $result .= '<a href="#" onclick="return ' . $this->getJsObjectName() . '.selectAll()">' .
141
+ $this->getSelectAll() . '</a> <span class="separator">&nbsp;|&nbsp;</span>';
142
+ $result .= '<a href="#" onclick="return ' . $this->getJsObjectName() . '.deselectAll()">' .
143
+ $this->getDeselectAll() . '</a>';
144
+ }
145
+
146
+ $result.= ( $this->getNoSpan() === true ) ? '' : '</span>'."\n";
147
+
148
+
149
+ $result.= '<script type="text/javascript"> var aaaaaaaaaaaaa = "asdfasdfasdf"; ' . "\n";
150
+ $result.= ' var ' . $this->getJsObjectName() . ' = {' . "\n";
151
+ $result.= ' selectAll: function() { ' . "\n";
152
+ $result.= ' var sel = $("' . $this->getHtmlId() . '");' . "\n";
153
+ $result.= ' for(var i = 0; i < sel.options.length; i ++) { ' . "\n";
154
+ $result.= ' sel.options[i].selected = true; ' . "\n";
155
+ $result.= ' } ' . "\n";
156
+ $result.= ' return false; ' . "\n";
157
+ $result.= ' },' . "\n";
158
+ $result.= ' deselectAll: function() {' . "\n";
159
+ $result.= ' var sel = $("' . $this->getHtmlId() . '");' . "\n";
160
+ $result.= ' for(var i = 0; i < sel.options.length; i ++) { ' . "\n";
161
+ $result.= ' sel.options[i].selected = false; ' . "\n";
162
+ $result.= ' } ' . "\n";
163
+ $result.= ' return false; ' . "\n";
164
+ $result.= ' }' . "\n";
165
+ $result.= ' }' . "\n";
166
+ $result.= "\n" . '</script>';
167
+
168
+ return $result;
169
+ }
170
+
171
+
172
+ /* protected function _getCollectionClass()
173
+ {
174
+ // This is the model we are using for the grid
175
+ return 'foo_bar/baz_collection';
176
+ } */
177
+
178
+
179
+ protected function _prepareCollection()
180
+ {
181
+ // Get and set our collection for the grid
182
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
183
+ $this->setCollection($collection);
184
+
185
+ return parent::_prepareCollection();
186
+ }
187
+
188
+ protected function _prepareColumns()
189
+ {
190
+ // Add the columns that should appear in the grid
191
+ $this->addColumn('id',
192
+ array(
193
+ 'header'=> $this->__('ID'),
194
+ 'align' =>'right',
195
+ 'width' => '150px',
196
+ 'index' => 'id'
197
+ )
198
+ );
199
+
200
+ $this->addColumn('name',
201
+ array(
202
+ 'header'=> $this->__('Name'),
203
+ 'index' => 'name'
204
+ )
205
+ );
206
+
207
+
208
+
209
+
210
+ return parent::_prepareColumns();
211
+ }
212
+
213
+ public function getRowUrl($row)
214
+ {
215
+
216
+ // This is where our row data will link to
217
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
218
+ }
219
+ }
app/code/community/AlternativePaymentsInc/AlternativePayments/Block/Redirect.php CHANGED
File without changes
app/code/community/AlternativePaymentsInc/AlternativePayments/Model/Standard.php CHANGED
@@ -113,7 +113,7 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
113
  return $errorMsg;
114
  }
115
 
116
- $order->setSepaSignum($data->getSepaSignum());
117
  $order->setSepaIban($data->getSepaIban());
118
  $order->setSepaBic($data->getSepaBic());
119
 
@@ -230,7 +230,7 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
230
 
231
  /**
232
  * methode for prepere and send infroramtion on service, checking and info client if all ok before place order
233
- * only for "EPS", "IDEAL", "GIROPAY", "PAYSAFE", "POLI", "PRZELEWY", "QIWI", "TELEINGRESO", "YELLOWPAY" , "DIRECTPAY", "DIRECTPAYMAX", "TELEPAY" - special request
234
  *
235
  * @param Varien_Object $data
236
  * @return
@@ -242,11 +242,25 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
242
  $incrementId = $order -> getEntityId();
243
 
244
 
 
 
 
 
 
 
 
 
245
  // filter for payment gateway
246
  if (in_array($order->getAlternativepaymentsTypeName(), array("YELLOWPAY", "EPS", "IDEAL", "GIROPAY", "PAYSAFE",
247
  "POLI", "PRZELEWY", "QIWI", "TELEINGRESO"
 
248
  , "DIRECTPAY", "DIRECTPAYMAX", "TELEPAY"
 
249
  ))) {
 
 
 
 
250
  $amount = $order -> getGrandTotal();
251
 
252
  //build request list
@@ -269,6 +283,10 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
269
 
270
  return -1;
271
  }
 
 
 
 
272
  }
273
 
274
  /**
@@ -284,9 +302,13 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
284
  $payment = $order -> getPayment();
285
  $incrementId = $order -> getEntityId();
286
 
 
 
 
 
287
  if (in_array($order->getAlternativepaymentsTypeName(), array("SEPA", "EuroDebit", "ACH", "CreditCard", "BARPAY"))) {
288
 
289
- Mage::log(var_export($order->debug(), TRUE), null,'$cart3.log');
290
 
291
 
292
  $check = $this -> _getOrderDirectPay($order);
@@ -294,10 +316,53 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
294
 
295
  return Mage::getUrl('checkout/onepage/failure', array('_secure' => true));
296
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  // filter for specific payment gateway
299
  } elseif (in_array($order->getAlternativepaymentsTypeName(), array("YELLOWPAY", "EPS", "IDEAL", "GIROPAY", "PAYSAFE",
300
  "POLI", "PRZELEWY", "QIWI", "TELEINGRESO"
 
301
  , "DIRECTPAY", "DIRECTPAYMAX", "TELEPAY"
302
  ))) {
303
 
@@ -316,6 +381,8 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
316
  Mage::throwException(Mage::helper('paygate')->__('Unexpected error'));
317
  }
318
 
 
 
319
  }
320
 
321
  /**
@@ -487,7 +554,7 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
487
 
488
  "pricepoint" => $cart->getPricePoint(),
489
  "paymenttype" => $cart->getAlternativepaymentsTypeName(),
490
- "signum" => $cart->getSepaSignum(),
491
  "iban" => $cart->getSepaIban(),
492
  "bic" => $cart->getSepaBic(),
493
  );
@@ -593,7 +660,7 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
593
  }
594
 
595
  $fields = $fields + $fields_tmp;
596
- // file_put_contents(Mage::getBaseDir('base')."/var/log/fields$$$.txt", print_r($fields, true), FILE_APPEND);
597
  return $fields;
598
  }
599
  }
@@ -614,7 +681,7 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
614
  $postData = http_build_query($cartValues);
615
 
616
 
617
- // file_put_contents(Mage::getBaseDir('base')."/var/log/cartValues$$$.txt", print_r($cartValues, true), FILE_APPEND);
618
 
619
  $urlToPost = $cart->getUrlcode();
620
  // Create a curl request and send the values
@@ -631,9 +698,9 @@ class AlternativePaymentsInc_AlternativePayments_Model_Standard extends Mage_Pay
631
  curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
632
 
633
  $content = curl_exec($ch); //The string returned
634
- // file_put_contents(Mage::getBaseDir('base')."/var/log/content$$$.txt", $content, FILE_APPEND);
635
  $response = curl_getinfo($ch);
636
- // file_put_contents(Mage::getBaseDir('base')."/var/log/response$$$.txt", print_r($response, true), FILE_APPEND);
637
  curl_close ($ch);
638
 
639
  if ($response['http_code'] == 301 || $response['http_code'] == 302)
113
  return $errorMsg;
114
  }
115
 
116
+ // $order->setSepaSignum($data->getSepaSignum());
117
  $order->setSepaIban($data->getSepaIban());
118
  $order->setSepaBic($data->getSepaBic());
119
 
230
 
231
  /**
232
  * methode for prepere and send infroramtion on service, checking and info client if all ok before place order
233
+ * only for "EPS", "IDEAL", "GIROPAY", "PAYSAFE", "POLI", "PRZELEWY", "QIWI", "TELEINGRESO", "YELLOWPAY" - special request
234
  *
235
  * @param Varien_Object $data
236
  * @return
242
  $incrementId = $order -> getEntityId();
243
 
244
 
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
  // filter for payment gateway
254
  if (in_array($order->getAlternativepaymentsTypeName(), array("YELLOWPAY", "EPS", "IDEAL", "GIROPAY", "PAYSAFE",
255
  "POLI", "PRZELEWY", "QIWI", "TELEINGRESO"
256
+
257
  , "DIRECTPAY", "DIRECTPAYMAX", "TELEPAY"
258
+
259
  ))) {
260
+
261
+
262
+
263
+
264
  $amount = $order -> getGrandTotal();
265
 
266
  //build request list
283
 
284
  return -1;
285
  }
286
+
287
+
288
+
289
+
290
  }
291
 
292
  /**
302
  $payment = $order -> getPayment();
303
  $incrementId = $order -> getEntityId();
304
 
305
+ // $order->setPricePoint($this->getConfigData('pricepoint'));
306
+
307
+
308
+ // ---- direct pay gateway method - START !!!!!! -------
309
  if (in_array($order->getAlternativepaymentsTypeName(), array("SEPA", "EuroDebit", "ACH", "CreditCard", "BARPAY"))) {
310
 
311
+ // Mage::log(var_export($order->debug(), TRUE), null,'$cart3.log');
312
 
313
 
314
  $check = $this -> _getOrderDirectPay($order);
316
 
317
  return Mage::getUrl('checkout/onepage/failure', array('_secure' => true));
318
  }
319
+
320
+ // ---- direct pay gateway method - END !!!!!! -----------------------------
321
+ // ---- redirect pay gateway method - START !!!!!! -------------------------
322
+ /* } elseif (in_array($order->getAlternativepaymentsTypeName(), array("DIRECTPAY", "CHINADEBIT",
323
+ "BrazilPay", "DIRECTPAYMAX", "TELEPAY" "__TEST"))) {
324
+
325
+ // Mage::log(var_export($order->debug(), TRUE), null,'$cart3.log');
326
+
327
+ $amount = $order -> getGrandTotal();
328
+ $cartValues = $this -> _buildRequest($order, $amount);
329
+
330
+ list($content, $response) = $this -> _postRequest($order, $cartValues);
331
+ list($isPaymentAccepted, $message) = $this->_formatPostResult($content);
332
+
333
+ $responseURL = $response['url'];
334
 
335
+ // ---- redirect pay gateway method - DIRECTPAY and DIRECTPAYMAX only !!!!!! (specific) --------
336
+ if (in_array($order->getAlternativepaymentsTypeName(), array("DIRECTPAY", "DIRECTPAYMAX", "TELEPAY" "__TEST"))) {
337
+
338
+ if ($isPaymentAccepted == self::RESPONSE_CODE_DECLINED || $isPaymentAccepted == self::RESPONSE_CODE_ERROR) {
339
+
340
+ $order->setStatus(self::STATUS_ERROR);
341
+ $order->save();
342
+ $orderId = $order-> getReservedOrderId();
343
+ $orderOBJ = Mage::getModel('sales/order')->loadByIncrementId("$orderId");
344
+ $orderOBJ->setState(Mage_Sales_Model_Order::STATE_CANCELED, true);
345
+ $orderOBJ->save();
346
+ Mage::throwException(Mage::helper('paygate')->__('Unexpected error: '. $message));
347
+ } else {
348
+
349
+ Mage::getSingleton('alternativepayments/session')->setPostBack(serialize($content));
350
+ Mage::getSingleton('alternativepayments/session')->setBackFlag(serialize('TRUE'));
351
+
352
+ return Mage::getUrl('alternativepayments/', array('_secure' => true));
353
+
354
+ }
355
+ } else {
356
+
357
+ return $responseURL;
358
+
359
+ }
360
+ */
361
+
362
  // filter for specific payment gateway
363
  } elseif (in_array($order->getAlternativepaymentsTypeName(), array("YELLOWPAY", "EPS", "IDEAL", "GIROPAY", "PAYSAFE",
364
  "POLI", "PRZELEWY", "QIWI", "TELEINGRESO"
365
+
366
  , "DIRECTPAY", "DIRECTPAYMAX", "TELEPAY"
367
  ))) {
368
 
381
  Mage::throwException(Mage::helper('paygate')->__('Unexpected error'));
382
  }
383
 
384
+ // return Mage::getUrl(Mage::getSingleton('checkout/session')->getTestField(), array('_secure' => true));
385
+
386
  }
387
 
388
  /**
554
 
555
  "pricepoint" => $cart->getPricePoint(),
556
  "paymenttype" => $cart->getAlternativepaymentsTypeName(),
557
+ // "signum" => $cart->getSepaSignum(),
558
  "iban" => $cart->getSepaIban(),
559
  "bic" => $cart->getSepaBic(),
560
  );
660
  }
661
 
662
  $fields = $fields + $fields_tmp;
663
+ file_put_contents(Mage::getBaseDir('base')."/var/log/fields$$$.txt", print_r($fields, true), FILE_APPEND);
664
  return $fields;
665
  }
666
  }
681
  $postData = http_build_query($cartValues);
682
 
683
 
684
+ file_put_contents(Mage::getBaseDir('base')."/var/log/cartValues$$$.txt", print_r($cartValues, true), FILE_APPEND);
685
 
686
  $urlToPost = $cart->getUrlcode();
687
  // Create a curl request and send the values
698
  curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
699
 
700
  $content = curl_exec($ch); //The string returned
701
+ file_put_contents(Mage::getBaseDir('base')."/var/log/content$$$.txt", $content, FILE_APPEND);
702
  $response = curl_getinfo($ch);
703
+ file_put_contents(Mage::getBaseDir('base')."/var/log/response$$$.txt", print_r($response, true), FILE_APPEND);
704
  curl_close ($ch);
705
 
706
  if ($response['http_code'] == 301 || $response['http_code'] == 302)
app/code/community/AlternativePaymentsInc/AlternativePayments/Model/System/Config/Source/Payment/_Tshow1.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
+ * 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 Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ class AlternativePaymentsInc_AlternativePayments_Model_System_Config_Source_Payment_Tshow1 extends AlternativePaymentsInc_AlternativePayments_Model_System_Config_Source_Allowtypeall
28
+ {
29
+
30
+
31
+ public function toOptionArray()
32
+ {
33
+ $dbSourceList = Mage::getModel('alternativepayments/dbsource')->getCollection()->getData();
34
+ $_paymentTypesName = array();
35
+
36
+ foreach ($dbSourceList as $product=>$key) {
37
+
38
+ array_push($_paymentTypesName, array( 'value' => $key["type_name"], 'label' => $key["type_label"] ));
39
+ }
40
+
41
+ return $_paymentTypesName;
42
+ }
43
+ }
44
+
45
+
app/code/community/AlternativePaymentsInc/AlternativePayments/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <AlternativePaymentsInc_AlternativePayments>
25
- <version>1.0.1</version>
26
  </AlternativePaymentsInc_AlternativePayments>
27
  </modules>
28
 
@@ -89,7 +89,17 @@
89
  <title>Alternative Payments</title>
90
  <payment_action>sale</payment_action>
91
  <allowspecific>0</allowspecific>
92
- <sort_order>33</sort_order>
 
 
 
 
 
 
 
 
 
 
93
  </alternativepayments>
94
  </payment>
95
  </default>
@@ -131,7 +141,10 @@
131
  </updates>
132
  </layout>
133
  </frontend>
 
 
134
  <adminhtml>
 
135
  <translate>
136
  <modules>
137
  <AlternativePaymentsInc_AlternativePayments>
22
  <config>
23
  <modules>
24
  <AlternativePaymentsInc_AlternativePayments>
25
+ <version>1.0.2</version>
26
  </AlternativePaymentsInc_AlternativePayments>
27
  </modules>
28
 
89
  <title>Alternative Payments</title>
90
  <payment_action>sale</payment_action>
91
  <allowspecific>0</allowspecific>
92
+ <sort_order>33</sort_order>
93
+
94
+
95
+ <!--
96
+ <ppach>defaultvalue1</ppach>
97
+ <ppbarpay>defaultvalue2</ppbarpay>
98
+ <ppdirectpay>defaultvalue3</ppdirectpay>
99
+ <ppdirectpaymax>defaultvalue4</ppdirectpaymax>
100
+ -->
101
+
102
+
103
  </alternativepayments>
104
  </payment>
105
  </default>
141
  </updates>
142
  </layout>
143
  </frontend>
144
+
145
+
146
  <adminhtml>
147
+
148
  <translate>
149
  <modules>
150
  <AlternativePaymentsInc_AlternativePayments>
app/code/community/AlternativePaymentsInc/AlternativePayments/etc/system.xml CHANGED
@@ -58,6 +58,79 @@
58
  <show_in_website>1</show_in_website>
59
  <show_in_store>0</show_in_store>
60
  </urlcode>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  <websiteid translate="label">
62
  <label>Website ID</label>
63
  <comment>Website ID given by Alternative Payments</comment>
@@ -118,14 +191,14 @@
118
  <show_in_website>1</show_in_website>
119
  <show_in_store>0</show_in_store>
120
  </pp_ach>
121
- <pp_barpay translate="label">
122
  <label>Price Point for "BARPAY"</label>
123
  <frontend_type>text</frontend_type>
124
  <sort_order>32</sort_order>
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>0</show_in_store>
128
- </pp_barpay>
129
  <pp_directpay translate="label">
130
  <label>Price Point for "Directpay"</label>
131
  <frontend_type>text</frontend_type>
@@ -238,6 +311,17 @@
238
  <show_in_website>1</show_in_website>
239
  <show_in_store>0</show_in_store>
240
  </pp_yellowpay>
 
 
 
 
 
 
 
 
 
 
 
241
  <allowspecific translate="label">
242
  <label>Payment Applicable From</label>
243
  <frontend_type>select</frontend_type>
58
  <show_in_website>1</show_in_website>
59
  <show_in_store>0</show_in_store>
60
  </urlcode>
61
+
62
+ <!--
63
+ <testfield translate="label comment">
64
+ <label>BBBBBBBBBBB</label>
65
+ <comment>AAAAAAAAAAAAAAAAAAA</comment>
66
+ <frontend_type>multiselect</frontend_type>
67
+ <sort_order>5</sort_order>
68
+ <source_model>alternativepayments/system_config_source_payment_tshow1</source_model>
69
+ <frontend_model>alternativepayments/adminhtml_textfields2</frontend_model>
70
+ <backend_model>adminhtml/system_config_backend_serialized</backend_model>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>0</show_in_store>
74
+ </testfield>
75
+
76
+ <tshow1 translate="label">
77
+ <label>tshow1 ACH</label>
78
+ <frontend_type>text</frontend_type>
79
+ <sort_order>7</sort_order>
80
+ <show_in_default>1</show_in_default>
81
+ <show_in_website>1</show_in_website>
82
+ <show_in_store>0</show_in_store>
83
+ <depends>
84
+ <testfield>10</testfield>
85
+ </depends>
86
+ </tshow1>
87
+ <tshow2 translate="label">
88
+ <label>tshow2 BBBBB</label>
89
+ <frontend_type>text</frontend_type>
90
+ <sort_order>7</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>0</show_in_store>
94
+ <depends>
95
+ <testfield>11</testfield>
96
+ </depends>
97
+ </tshow2> -->
98
+
99
+ <!--
100
+ <tshow1 translate="label">
101
+ <label>This is some label</label>
102
+ <comment>This is some comment.</comment>
103
+ <tooltip><![CDATA[This is some tooltip]]></tooltip>
104
+ <frontend_type>text</frontend_type>
105
+ <frontend_model>alternativepayments/adminhtml_textfields</frontend_model>
106
+ <backend_model>adminhtml/system_config_backend_serialized</backend_model>
107
+ <sort_order>99</sort_order>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>0</show_in_store>
111
+ </tshow1>
112
+ -->
113
+
114
+
115
+
116
+
117
+
118
+
119
+ <!--
120
+ <labels translate="label">
121
+ <label>This is some label</label>
122
+ <comment>This is some comment.</comment>
123
+ <tooltip><![CDATA[This is some tooltip]]></tooltip>
124
+ <frontend_type>text</frontend_type>
125
+ <frontend_model>alternativepayments/adminhtml_textfields</frontend_model>
126
+ <backend_model>adminhtml/system_config_backend_serialized</backend_model>
127
+ <sort_order>9</sort_order>
128
+ <show_in_default>1</show_in_default>
129
+ <show_in_website>1</show_in_website>
130
+ <show_in_store>0</show_in_store>
131
+ </labels>
132
+ -->
133
+
134
  <websiteid translate="label">
135
  <label>Website ID</label>
136
  <comment>Website ID given by Alternative Payments</comment>
191
  <show_in_website>1</show_in_website>
192
  <show_in_store>0</show_in_store>
193
  </pp_ach>
194
+ <!--<pp_barpay translate="label">
195
  <label>Price Point for "BARPAY"</label>
196
  <frontend_type>text</frontend_type>
197
  <sort_order>32</sort_order>
198
  <show_in_default>1</show_in_default>
199
  <show_in_website>1</show_in_website>
200
  <show_in_store>0</show_in_store>
201
+ </pp_barpay>-->
202
  <pp_directpay translate="label">
203
  <label>Price Point for "Directpay"</label>
204
  <frontend_type>text</frontend_type>
311
  <show_in_website>1</show_in_website>
312
  <show_in_store>0</show_in_store>
313
  </pp_yellowpay>
314
+ <!--
315
+ <order_status translate="label">
316
+ <label>New Order Status</label>
317
+ <frontend_type>select</frontend_type>
318
+ <source_model>adminhtml/system_config_source_order_status</source_model>
319
+ <sort_order>50</sort_order>
320
+ <show_in_default>1</show_in_default>
321
+ <show_in_website>1</show_in_website>
322
+ <show_in_store>0</show_in_store>
323
+ </order_status>
324
+ -->
325
  <allowspecific translate="label">
326
  <label>Payment Applicable From</label>
327
  <frontend_type>select</frontend_type>
app/code/community/AlternativePaymentsInc/AlternativePayments/sql/alternativepayments_setup/mysql4-upgrade-1.0.1-1.0.2.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Payment Method
23
+ * @package AlternativePaymentsInc_AlternativePayments
24
+ * @copyright Copyright (c) 2012 Alternative Payments Inc (http://www.alternativepayments.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ echo 'Running Upgrade script (mysql4-upgrade-1.0.1-1.0.2.php) for AlternativePaymentsInc_AlternativePayments<br />';
30
+
31
+ $installer = $this;
32
+
33
+ $installer->startSetup();
34
+
35
+ $installer->run("
36
+
37
+ DROP TABLE IF EXISTS {$this->getTable('alternativepayments_resource')};
38
+ CREATE TABLE `{$this->getTable('alternativepayments_resource')}`
39
+ (
40
+ type_name VARCHAR(255) NOT NULL UNIQUE,
41
+ type_label VARCHAR(255) NOT NULL,
42
+ allow_country TEXT NOT NULL,
43
+ validation VARCHAR(255) NOT NULL
44
+ ) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
45
+
46
+ INSERT INTO `{$this->getTable('alternativepayments_resource')}`
47
+ (`type_name`, `type_label`, `allow_country`, `validation` )
48
+ VALUES
49
+ ( 'ACH', 'ACH - Online Check', 'US|CA', 'achValidation' ),
50
+ ( 'EPS', 'EPS', 'AT', 'emptyValidation' ),
51
+ ( 'IDEAL', 'iDEAL', 'NL', 'idealValidation' ),
52
+ ( 'GIROPAY', 'GiroPay', 'DE', 'giropayValidation' ),
53
+ ( 'YELLOWPAY', 'YellowPay', 'CH', 'emptyValidation' ),
54
+ ( 'EuroDebit', 'EuroDebit', 'DE|AT|NL', 'eurodebitValidation' ),
55
+ ( 'DIRECTPAYMAX', 'Pay by Bank', 'DE|US', 'directpaymaxValidation' ),
56
+ ( 'DIRECTPAY', 'Directpay', 'AD|AT|BE|CH|CY|CZ|DE|DK|EE|ES|FI|FR|GB|GI|GR|HR|HU|IE|IS|IT|LT|LU|LV|MK|MT|NL|NO|PL|PT|RO|SE|SI|SK|TN|TR|US', 'emptyValidation' ),
57
+ ( 'PAYSAFE', 'Paysafecard', 'AR|AT|BE|CH|CS|CY|CZ|DE|DK|ES|FI|FR|GB|GR|IE|IT|LU|LV|MX|NL|NO|PL|PT|RO|SE|SI|US', 'emptyValidation' ),
58
+ ( 'POLI', 'POLi', 'AU|NZ', 'emptyValidation' ),
59
+ ( 'PRZELEWY', 'Przelewy24', 'PL', 'emptyValidation' ),
60
+ ( 'TELEINGRESO', 'Teleingreso', 'ES', 'emptyValidation' ),
61
+ ( 'SEPA', 'EuroDebit SEPA', 'AT|BE|BG|CH|CY|CZ|DE|DK|ES|FI|FR|GB|GR|HU|IE|IS|IT|LI|LT|LU|LV|MC|MT|NO|PL|PT|RO|SE|SI|SK', 'sepaValidation' ),
62
+ ( 'TELEPAY', 'TelePay', 'MX', 'emptyValidation' ),
63
+ ( 'QIWI', 'QIWI', 'RU', 'emptyValidation' );
64
+
65
+
66
+ ");
67
+ // ( 'BARPAY', 'BARPAY', 'DE', 'emptyValidation' ),
68
+ // ( 'CreditCard', 'Credit Card', 'AD|AE|AF|AG|AI|AL|AM|AN|AO|AQ|AR|AS|AT|AU|AW|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BM|BN|BO|BR|BS|BT|BW|BY|BZ|CA|CD|CH|CI|CK|CL|CM|CN|CO|CR|RS|CU|CV|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EE|EG|ES|ET|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GH|GI|GL|GM|GN|GP|GQ|GR|GT|GU|GW|GY|HK|HN|HR|HT|HU|ID|IE|IL|IN|IQ|IR|IS|IT|JM|JO|JP|KE|KG|KH|KI|KM|KN|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MG|ML|MM|MN|MO|MR|MS|MT|MU|MV|MW|MX|MY|MZ|NA|NC|NE|NG|NI|NL|NO|NP|NR|NZ|OM|PA|PE|PF|PG|PH|PK|PL|PM|PR|PT|PY|QA|RO|RU|RW|SA|SB|SC|SE|SG|SH|SI|SK|SL|SM|SN|SO|SR|ST|SV|SY|SZ|TC|TD|TG|TH|TJ|TM|TN|TO|TR|TT|TW|TZ|UA|UG|US|UY|UZ|VA|VC|VE|VG|VN|VU|WF|WS|YE|YT|YU|ZA|ZM|ZR|ZW', 'creditcardValidation' ),
69
+ // ( 'BrazilPay', 'BrazilPay', 'BR', 'brazilpayValidation' ),
70
+ // ( 'CHINADEBIT', 'China Debit', 'CN', 'emptyValidation' ),
71
+ // ( 'FASTERPAY', 'FasterPay', 'GB' ),
72
+
73
+ $installer->endSetup();
74
+
75
+
76
+
app/design/frontend/base/default/layout/alternativepayments.xml CHANGED
@@ -21,20 +21,25 @@
21
 
22
  -->
23
  <layout version="0.1.0">
24
- <!--
25
  <alternativepayments_processing_payment>
26
  <reference name="head">
27
-
28
  <action method="addItem"><type>skin_js</type><name>alternativepayments/jquery-1.8.3.min.js</name></action>
29
  <action method="addItem"><type>skin_js</type><name>alternativepayments/jquery.easing.1.3.js</name></action>
30
-
 
 
 
31
  </reference>
32
  </alternativepayments_processing_payment>
33
- -->
34
  <default>
35
  <reference name="head">
36
  <action method="addItem"><type>skin_css</type><file>alternativepayments/css/styles.css</file></action>
37
  </reference>
 
 
38
  </default>
39
 
40
  </layout>
21
 
22
  -->
23
  <layout version="0.1.0">
24
+
25
  <alternativepayments_processing_payment>
26
  <reference name="head">
27
+ <!--
28
  <action method="addItem"><type>skin_js</type><name>alternativepayments/jquery-1.8.3.min.js</name></action>
29
  <action method="addItem"><type>skin_js</type><name>alternativepayments/jquery.easing.1.3.js</name></action>
30
+
31
+ <action method="addItem"><type>skin_js</type><name>js/functions.js</name></action>
32
+
33
+ -->
34
  </reference>
35
  </alternativepayments_processing_payment>
36
+
37
  <default>
38
  <reference name="head">
39
  <action method="addItem"><type>skin_css</type><file>alternativepayments/css/styles.css</file></action>
40
  </reference>
41
+
42
+
43
  </default>
44
 
45
  </layout>
app/design/frontend/base/default/template/alternativepayments/form/sepa.phtml CHANGED
@@ -780,13 +780,13 @@ Validation.add('validate-sepa-signature', '<?php echo __('Signature number must
780
  <input type="text" style="float:left" class="required-entry validate-alphanum validate-sepa-bic" maxlength="11" size="15" name="payment[sepa_bic]" />
781
  </span>
782
  </li>
783
-
784
  <li>
785
  <label for="sepa-signature" class="required">
786
- <em>*</em><?php echo $this->__('Signature') ?></label>
787
  <span class="input-box" style="width:360px;">
788
- <a class="sepa-make-tool sepa-signature-make-tool" title="<?php echo $this->__('How the signature box works') ?>" href="#">
789
- <img src="<?php echo $this->getSkinUrl('alternativepayments/images/qm.gif') ?>" alt="<?php echo $this->__('How the signature box works') ?>" title="<?php echo $this->__('How the signature box works') ?>" />
790
  </a>
791
  <iframe id="signaturebox" frameborder=0 style="margin:0px;width:325px;height:145px;float:left"
792
  src="https://secure.2000charge.com/secure/signature/capturesignature.asp?clientaccount=<?php echo $clientaccount ?>&key=<?php echo $keyaccount ?>">
@@ -795,16 +795,16 @@ Validation.add('validate-sepa-signature', '<?php echo __('Signature number must
795
  </li>
796
  <li>
797
  <label for="sepa-signature-number" class="required">
798
- <em>*</em><?php echo $this->__('Signature number') ?></label>
799
  <span class="input-box">
800
- <!-- <input type="text" class="required-entry" maxlength="11" size="11" name="payment[sepa_bic]" /> -->
801
- <a class="sepa-make-tool sepa-signature-number-make-tool" title="<?php echo $this->__('How you make Signature Number') ?>" href="#">
802
- <img src="<?php echo $this->getSkinUrl('alternativepayments/images/qm.gif') ?>" alt="<?php echo $this->__('How you make Signature Number') ?>" title="<?php echo $this->__('How you make Signature Number') ?>" />
803
  </a>
804
  <input type="text" style="float:left" class="required-entry validate-digits validate-sepa-signature" id="signum" maxLength="8" size="8" name="payment[sepa_signum]">
805
 
806
  </span>
807
- </li>
808
  </ul>
809
 
810
 
780
  <input type="text" style="float:left" class="required-entry validate-alphanum validate-sepa-bic" maxlength="11" size="15" name="payment[sepa_bic]" />
781
  </span>
782
  </li>
783
+ <!--
784
  <li>
785
  <label for="sepa-signature" class="required">
786
+ <em>*</em><?php //echo $this->__('Signature') ?></label>
787
  <span class="input-box" style="width:360px;">
788
+ <a class="sepa-make-tool sepa-signature-make-tool" title="<?php //echo $this->__('How the signature box works') ?>" href="#">
789
+ <img src="<?php //echo $this->getSkinUrl('alternativepayments/images/qm.gif') ?>" alt="<?php //echo $this->__('How the signature box works') ?>" title="<?php //echo $this->__('How the signature box works') ?>" />
790
  </a>
791
  <iframe id="signaturebox" frameborder=0 style="margin:0px;width:325px;height:145px;float:left"
792
  src="https://secure.2000charge.com/secure/signature/capturesignature.asp?clientaccount=<?php echo $clientaccount ?>&key=<?php echo $keyaccount ?>">
795
  </li>
796
  <li>
797
  <label for="sepa-signature-number" class="required">
798
+ <em>*</em><?php //echo $this->__('Signature number') ?></label>
799
  <span class="input-box">
800
+
801
+ <a class="sepa-make-tool sepa-signature-number-make-tool" title="<?php //echo $this->__('How you make Signature Number') ?>" href="#">
802
+ <img src="<?php //echo $this->getSkinUrl('alternativepayments/images/qm.gif') ?>" alt="<?php ///echo $this->__('How you make Signature Number') ?>" title="<?php //echo $this->__('How you make Signature Number') ?>" />
803
  </a>
804
  <input type="text" style="float:left" class="required-entry validate-digits validate-sepa-signature" id="signum" maxLength="8" size="8" name="payment[sepa_signum]">
805
 
806
  </span>
807
+ </li> -->
808
  </ul>
809
 
810
 
app/design/frontend/base/default/template/alternativepayments/response.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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 design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2012 Alternative Payments Inc (http://www.alternativepayments.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ // Retrieve order
29
+ //if(Mage::getSingleton('customer/session')->isLoggedIn()):
30
+ $value1 = Mage::getSingleton('alternativepayments/session')->getYYY();
31
+ $value2 = unserialize(Mage::getSingleton('alternativepayments/session')->getPostBack());
32
+ $val2 = unserialize(Mage::getSingleton('alternativepayments/session')->getBackFlag());
33
+ //endif;
34
+ if ($val2 == 'TRUE') {
35
+ echo $this->__('Redirect to payment service...');
36
+ $val2 = unserialize(Mage::getSingleton('alternativepayments/session')->setBackFlag(serialize('FALSE')));
37
+ echo $value2;
38
+ } else {
39
+ Mage::app()->getFrontController()->getResponse()->setRedirect('../checkout/cart/');
40
+ }
41
+
42
+
43
+ ?>
44
+
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AlternativePaymentsInc_AlternativePayments</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
@@ -27,9 +27,9 @@ EuroDebit SEPA&#xD;
27
  QIWI</description>
28
  <notes>This module adds the wide range of different alternative payment methods.</notes>
29
  <authors><author><name>Alternative Payments Inc</name><user>alternativepayments</user><email>magento@alternativepayments.com</email></author></authors>
30
- <date>2013-02-04</date>
31
- <time>10:12:07</time>
32
- <contents><target name="magecommunity"><dir name="AlternativePaymentsInc"><dir name="AlternativePayments"><dir name="Block"><file name="Form.php" hash="7872bc7c6373e95cd6baa62308c761e8"/><file name="PaymentInfo.php" hash="f9fd55ba85bf393b477e8349ce111189"/><file name="Redirect.php" hash="6da455eed980c9cc81dc6faba3fb07c5"/></dir><dir name="Helper"><file name="Data.php" hash="a34b1fde4d3fd9f7fe3c1c9cd466735a"/></dir><dir name="Model"><file name="Dbiban.php" hash="77570789806b0777dd080aff5297b36f"/><file name="Dbsource.php" hash="0901fcf408b616e3dece942c36466ebd"/><dir name="Mysql4"><dir name="Dbiban"><file name="Collection.php" hash="3308f64b6eb00f45f11f14f15e6bd455"/></dir><file name="Dbiban.php" hash="27488a50bffc0283cf7d9ca7bf1100f9"/><dir name="Dbsource"><file name="Collection.php" hash="cf58c8f838e9a60bc9df251fa79813ce"/></dir><file name="Dbsource.php" hash="cb7421422905d1b71aab74bc6a0657c6"/></dir><dir name="Resource"><file name="Setup.php" hash="c895acc6ccdd12f3f1dc656fa0075c9a"/></dir><file name="Session.php" hash="935ad9754dd2be70455bb77dde200056"/><file name="Standard.php" hash="463a166d1b14d47918b847a34f2519a9"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Allowtypeall.php" hash="5e8a9672c445a9ea959863d10bf01581"/><dir name="Payment"><file name="Alternativepaymenttype.php" hash="f46c88e5b2185f11a4c97ea7b9e65d34"/></dir><file name="Testmode.php" hash="ea23e270155e949398963977a3281bf4"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="3f140638fb6a07b14594783784fff77a"/><file name="PaymentController.php" hash="762ba0744fd3c4f5ee4bfa85033f27eb"/></dir><dir name="etc"><file name="config.xml" hash="e226e38324c2be5ecac9825553a01d25"/><file name="system.xml" hash="1cac30c10c888f3e62e79147c3fe6e2a"/></dir><dir name="sql"><dir name="alternativepayments_setup"><file name="mysql4-install-0.1.0.php" hash="55837bbfa25529cbbf463ed6775951a0"/><file name="mysql4-upgrade-0.1.0-0.1.4.php" hash="d29e5b80d189e99601ef34de81297067"/><file name="mysql4-upgrade-0.1.4-0.2.0.php" hash="67731c22b9017e2988e037f5f2a6ec09"/><file name="mysql4-upgrade-0.2.0-0.2.2.php" hash="28e1ed22715f799d2ae785d12553ba34"/><file name="mysql4-upgrade-0.2.2-1.0.0.php" hash="e02d2be64400e4aef70a9f67b6242ca3"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="737de6352262b4dac5dcb374d5db64cf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AlternativePaymentsInc_AlternativePayments.xml" hash="c95eef35957a05ed40dbc8f038432c6a"/></dir></target><target name="magelocale"><dir name="en_US"><file name="AlternativePaymentsInc_AlternativePayments.csv" hash="8ddcaf54ac93ec7b5af8b5f9c4df350a"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="alternativepayments"><file name="failure.phtml" hash="9a6181d271abaa1250857a8f26394afe"/><dir name="form"><file name="ach.phtml" hash="3ab3dce8e907f6a26a58e2fc74010c7f"/><file name="barpay.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="brazilpay.phtml" hash="1ebcedd34b5bb07188a928f748172846"/><file name="chinadebit.phtml" hash="56bbeed4548aad597a9784dc1ed5deba"/><file name="creditcard.phtml" hash="a6ee16f20da3e30f5e69b842733d735d"/><file name="directpay.phtml" hash="ad1411f184341fca5db6a4835604fcd1"/><file name="directpaymax.phtml" hash="c2ffc0a97df4342de20039634af4e2f0"/><file name="eps.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="eurodebit.phtml" hash="862e8f92191801bd180a3b9ea231f3e7"/><file name="giropay.phtml" hash="dee7411000671a92ec6566d056ff64a6"/><file name="ideal.phtml" hash="9fa3d535b9dcffe76d31b10b4dee18f7"/><file name="paysafe.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="poli.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="przelewy.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="qiwi.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="sepa.phtml" hash="fb93dbf3d6efad1f29de17eb7554c43e"/><file name="teleingreso.phtml" hash="07d2fb74b92b506fd5c94700d288d66d"/><file name="telepay.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="yellowpay.phtml" hash="092ff9792b4ab8a1f1cee1cce9c5c96b"/></dir><file name="form.phtml" hash="a2714b2ac583cc595a9afa63f93df2e7"/><file name="isapprove.phtml" hash="c527d3e50ca91452420cccb3053a90cf"/><file name="redirect.phtml" hash="ed106333c9638351b909d409abe5dfd0"/><file name="success.phtml" hash="5b505b11de29af9fa3e587e5c54af25e"/></dir></dir><dir name="layout"><file name="alternativepayments.xml" hash="9281d6239a2dc92c05ff040d4272df9b"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="alternativepayments"><dir name="css"><file name="styles.css" hash="fb7201cf0a6971e2a6815448b4f5c194"/></dir><dir name="images"><file name="cvv22.gif" hash="83cdd38bf110b0f9c52fe84b56f45298"/><file name="information.png" hash="db8ec00f3807b9c6a4f83f860507473c"/><file name="phoneverf1.jpg" hash="e767327aeb2ac74f63dab481102963ab"/><file name="phoneverf2.jpg" hash="8a2b8e54fcc8ed9e9d374798b9a151df"/><file name="phoneverf3.jpg" hash="6e01da6a98e7416993974867e155350a"/><file name="phoneverf4.jpg" hash="c2d41b2e90ff26d1cd5b25c104bd14e5"/><file name="qm.gif" hash="90db9e3e88dbd76eaf7c1f902262ddc6"/></dir></dir></dir></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mygento_JQueryLib</name><channel>community</channel><min>1.8.1.0</min><max></max></package></required></dependencies>
35
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AlternativePaymentsInc_AlternativePayments</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
27
  QIWI</description>
28
  <notes>This module adds the wide range of different alternative payment methods.</notes>
29
  <authors><author><name>Alternative Payments Inc</name><user>alternativepayments</user><email>magento@alternativepayments.com</email></author></authors>
30
+ <date>2014-01-29</date>
31
+ <time>12:38:25</time>
32
+ <contents><target name="magecommunity"><dir name="AlternativePaymentsInc"><dir name="AlternativePayments"><dir name="Block"><dir name="Adminhtml"><file name="Textfields.php" hash="7e8d3f62121707cc30d370ed8782e0d2"/><file name="Textfields1.php" hash="451d68fc966e6a917c899be289f39443"/><file name="Textfields2.php" hash="aecd2fac88f06689931186c7b5eed222"/></dir><file name="Form.php" hash="7872bc7c6373e95cd6baa62308c761e8"/><file name="PaymentInfo.php" hash="f9fd55ba85bf393b477e8349ce111189"/><file name="Redirect.php" hash="6da455eed980c9cc81dc6faba3fb07c5"/></dir><dir name="Helper"><file name="Data.php" hash="a34b1fde4d3fd9f7fe3c1c9cd466735a"/></dir><dir name="Model"><file name="Dbiban.php" hash="77570789806b0777dd080aff5297b36f"/><file name="Dbsource.php" hash="0901fcf408b616e3dece942c36466ebd"/><dir name="Mysql4"><dir name="Dbiban"><file name="Collection.php" hash="3308f64b6eb00f45f11f14f15e6bd455"/></dir><file name="Dbiban.php" hash="27488a50bffc0283cf7d9ca7bf1100f9"/><dir name="Dbsource"><file name="Collection.php" hash="cf58c8f838e9a60bc9df251fa79813ce"/></dir><file name="Dbsource.php" hash="cb7421422905d1b71aab74bc6a0657c6"/></dir><dir name="Resource"><file name="Setup.php" hash="c895acc6ccdd12f3f1dc656fa0075c9a"/></dir><file name="Session.php" hash="935ad9754dd2be70455bb77dde200056"/><file name="Standard.php" hash="f10abdb0921a509573ddce489249fe46"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Allowtypeall.php" hash="5e8a9672c445a9ea959863d10bf01581"/><dir name="Payment"><file name="Alternativepaymenttype.php" hash="f46c88e5b2185f11a4c97ea7b9e65d34"/><file name="_Tshow1.php" hash="e8898e83621d573313bfd61ca7aac8be"/></dir><file name="Testmode.php" hash="ea23e270155e949398963977a3281bf4"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="3f140638fb6a07b14594783784fff77a"/><file name="PaymentController.php" hash="762ba0744fd3c4f5ee4bfa85033f27eb"/></dir><dir name="etc"><file name="config.xml" hash="d0d81786148434e89dd650223230a421"/><file name="system.xml" hash="5f51fe0a10543ce6728ae79891bd285a"/></dir><dir name="sql"><dir name="alternativepayments_setup"><file name="mysql4-install-0.1.0.php" hash="55837bbfa25529cbbf463ed6775951a0"/><file name="mysql4-upgrade-0.1.0-0.1.4.php" hash="d29e5b80d189e99601ef34de81297067"/><file name="mysql4-upgrade-0.1.4-0.2.0.php" hash="67731c22b9017e2988e037f5f2a6ec09"/><file name="mysql4-upgrade-0.2.0-0.2.2.php" hash="28e1ed22715f799d2ae785d12553ba34"/><file name="mysql4-upgrade-0.2.2-1.0.0.php" hash="e02d2be64400e4aef70a9f67b6242ca3"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="737de6352262b4dac5dcb374d5db64cf"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="4d09d965ba40b89593b8ab88c02c7cca"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AlternativePaymentsInc_AlternativePayments.xml" hash="c95eef35957a05ed40dbc8f038432c6a"/></dir></target><target name="magelocale"><dir name="en_US"><file name="AlternativePaymentsInc_AlternativePayments.csv" hash="8ddcaf54ac93ec7b5af8b5f9c4df350a"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="alternativepayments"><file name="failure.phtml" hash="9a6181d271abaa1250857a8f26394afe"/><dir name="form"><file name="ach.phtml" hash="3ab3dce8e907f6a26a58e2fc74010c7f"/><file name="barpay.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="brazilpay.phtml" hash="1ebcedd34b5bb07188a928f748172846"/><file name="chinadebit.phtml" hash="56bbeed4548aad597a9784dc1ed5deba"/><file name="creditcard.phtml" hash="a6ee16f20da3e30f5e69b842733d735d"/><file name="directpay.phtml" hash="ad1411f184341fca5db6a4835604fcd1"/><file name="directpaymax.phtml" hash="c2ffc0a97df4342de20039634af4e2f0"/><file name="eps.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="eurodebit.phtml" hash="862e8f92191801bd180a3b9ea231f3e7"/><file name="giropay.phtml" hash="dee7411000671a92ec6566d056ff64a6"/><file name="ideal.phtml" hash="9fa3d535b9dcffe76d31b10b4dee18f7"/><file name="paysafe.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="poli.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="przelewy.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="qiwi.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="sepa.phtml" hash="f820294236eb728ccd72e862013b9f32"/><file name="teleingreso.phtml" hash="07d2fb74b92b506fd5c94700d288d66d"/><file name="telepay.phtml" hash="d2bb7cad795645f5b0ed3d32c933cec3"/><file name="yellowpay.phtml" hash="092ff9792b4ab8a1f1cee1cce9c5c96b"/></dir><file name="form.phtml" hash="a2714b2ac583cc595a9afa63f93df2e7"/><file name="isapprove.phtml" hash="c527d3e50ca91452420cccb3053a90cf"/><file name="redirect.phtml" hash="ed106333c9638351b909d409abe5dfd0"/><file name="response.phtml" hash="36dda28d50a5fb9d3dc76bdb6dee0525"/><file name="success.phtml" hash="5b505b11de29af9fa3e587e5c54af25e"/></dir></dir><dir name="layout"><file name="alternativepayments.xml" hash="929215c56b35ff6feb7ce85bc155fe45"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="alternativepayments"><dir name="css"><file name="styles.css" hash="fb7201cf0a6971e2a6815448b4f5c194"/></dir><dir name="images"><file name="cvv22.gif" hash="83cdd38bf110b0f9c52fe84b56f45298"/><file name="information.png" hash="db8ec00f3807b9c6a4f83f860507473c"/><file name="phoneverf1.jpg" hash="e767327aeb2ac74f63dab481102963ab"/><file name="phoneverf2.jpg" hash="8a2b8e54fcc8ed9e9d374798b9a151df"/><file name="phoneverf3.jpg" hash="6e01da6a98e7416993974867e155350a"/><file name="phoneverf4.jpg" hash="c2d41b2e90ff26d1cd5b25c104bd14e5"/><file name="qm.gif" hash="90db9e3e88dbd76eaf7c1f902262ddc6"/></dir></dir></dir></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mygento_JQueryLib</name><channel>community</channel><min>1.8.1.0</min><max></max></package></required></dependencies>
35
  </package>