F500_Xibpayments - Version 1.0.6

Version Notes

Stabe release

Download this release

Release Info

Developer Magento Core Team
Extension F500_Xibpayments
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/local/F500/Xibpayments/Block/Form.php CHANGED
@@ -25,6 +25,7 @@ class F500_Xibpayments_Block_Form extends Mage_Payment_Block_Form
25
  '0721' => 'ING',
26
  '0021' => 'Rabobank',
27
  '0751' => 'SNS Bank',
 
28
  '-' => '',
29
  '0761' => 'ASN Bank',
30
  '0771' => 'SNS Regio Bank',
25
  '0721' => 'ING',
26
  '0021' => 'Rabobank',
27
  '0751' => 'SNS Bank',
28
+ '0511' => 'Triodos Bank',
29
  '-' => '',
30
  '0761' => 'ASN Bank',
31
  '0771' => 'SNS Regio Bank',
app/code/local/F500/Xibpayments/Model/Standard.php CHANGED
@@ -147,12 +147,12 @@ class F500_Xibpayments_Model_Standard extends Mage_Payment_Model_Method_Abstract
147
  'country_code' => $a->getCountry(),
148
  'postal_code' => $a->getPostcode(),
149
  'phone_number' => $a->getTelephone(),
150
- 'option' => $option,
151
- 'suboption' => $suboption,
152
  'currency' => $currency_code
153
  );
154
 
155
  if ( $this->isTest() || $this->isDebug() ) {
 
 
156
  $sArr = array_merge($sArr, array(
157
  'test' => '1'
158
  ));
@@ -162,6 +162,12 @@ class F500_Xibpayments_Model_Standard extends Mage_Payment_Model_Method_Abstract
162
  'debug' => '1'
163
  ));
164
  }
 
 
 
 
 
 
165
  }
166
 
167
  $amount = ($a->getBaseSubtotal()+$b->getBaseSubtotal())-($a->getBaseDiscountAmount()+$b->getBaseDiscountAmount());
@@ -169,7 +175,7 @@ class F500_Xibpayments_Model_Standard extends Mage_Payment_Model_Method_Abstract
169
  $sArr = array_merge($sArr, array(
170
  'description' => str_replace('%id%',$this->getCheckout()->getLastRealOrderId(),$this->getConfigData('order_description')),
171
  'amount' => $grandTotalCents,
172
- 'hash' => md5($this->getConfigData('site_id') . $grandTotalCents . $sArr['ref'] . $this->getConfigData('password_key'))
173
  ));
174
 
175
 
147
  'country_code' => $a->getCountry(),
148
  'postal_code' => $a->getPostcode(),
149
  'phone_number' => $a->getTelephone(),
 
 
150
  'currency' => $currency_code
151
  );
152
 
153
  if ( $this->isTest() || $this->isDebug() ) {
154
+ $hash_prefix = 'TEST';
155
+
156
  $sArr = array_merge($sArr, array(
157
  'test' => '1'
158
  ));
162
  'debug' => '1'
163
  ));
164
  }
165
+ } else {
166
+ $hash_prefix = '';
167
+ $sArr = array_merge($sArr, array(
168
+ 'option' => $option,
169
+ 'suboption' => $suboption,
170
+ ));
171
  }
172
 
173
  $amount = ($a->getBaseSubtotal()+$b->getBaseSubtotal())-($a->getBaseDiscountAmount()+$b->getBaseDiscountAmount());
175
  $sArr = array_merge($sArr, array(
176
  'description' => str_replace('%id%',$this->getCheckout()->getLastRealOrderId(),$this->getConfigData('order_description')),
177
  'amount' => $grandTotalCents,
178
+ 'hash' => md5( $hash_prefix . $this->getConfigData('site_id') . $grandTotalCents . $sArr['ref'] . $this->getConfigData('password_key'))
179
  ));
180
 
181
 
app/code/local/F500/Xibpayments/Model/System/Paymentoptions.php CHANGED
@@ -27,6 +27,8 @@ class F500_Xibpayments_Model_System_Paymentoptions
27
  array('value'=>'paypal', 'label'=>Mage::helper('xibpayments')->__('paypal')),
28
  array('value'=>'mistercash', 'label'=>Mage::helper('xibpayments')->__('mistercash')),
29
  array('value'=>'giropay', 'label'=>Mage::helper('xibpayments')->__('giropay')),
 
 
30
  );
31
  }
32
  }
27
  array('value'=>'paypal', 'label'=>Mage::helper('xibpayments')->__('paypal')),
28
  array('value'=>'mistercash', 'label'=>Mage::helper('xibpayments')->__('mistercash')),
29
  array('value'=>'giropay', 'label'=>Mage::helper('xibpayments')->__('giropay')),
30
+ array('value'=>'directebanking', 'label'=>Mage::helper('xibpayments')->__('directebanking')),
31
+ array('value'=>'webmoney', 'label'=>Mage::helper('xibpayments')->__('webmoney')),
32
  );
33
  }
34
  }
app/code/local/F500/Xibpayments/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config>
21
  <modules>
22
  <F500_Xibpayments>
23
- <version>1.0.5</version>
24
  </F500_Xibpayments>
25
  </modules>
26
  <global>
20
  <config>
21
  <modules>
22
  <F500_Xibpayments>
23
+ <version>1.0.6</version>
24
  </F500_Xibpayments>
25
  </modules>
26
  <global>
app/code/local/F500/Xibpayments/etc/system.xml CHANGED
@@ -121,12 +121,28 @@
121
  <title_giropay translate="label">
122
  <label>Translation giropay</label>
123
  <frontend_type>text</frontend_type>
124
- <comment><![CDATA[Descriptions to show the customer in the checkout screen. Leave empty for default names.]]></comment>
125
  <sort_order>19</sort_order>
126
  <show_in_default>1</show_in_default>
127
  <show_in_website>1</show_in_website>
128
  <show_in_store>1</show_in_store>
129
  </title_giropay>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  <order_description translate="label">
131
  <label>Order description</label>
132
  <frontend_type>text</frontend_type>
121
  <title_giropay translate="label">
122
  <label>Translation giropay</label>
123
  <frontend_type>text</frontend_type>
 
124
  <sort_order>19</sort_order>
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>1</show_in_store>
128
  </title_giropay>
129
+ <title_directebanking translate="label">
130
+ <label>Translation directebanking</label>
131
+ <frontend_type>text</frontend_type>
132
+ <sort_order>20</sort_order>
133
+ <show_in_default>1</show_in_default>
134
+ <show_in_website>1</show_in_website>
135
+ <show_in_store>1</show_in_store>
136
+ </title_directebanking>
137
+ <title_webmoney translate="label">
138
+ <label>Translation webmoney</label>
139
+ <frontend_type>text</frontend_type>
140
+ <comment><![CDATA[Descriptions to show the customer in the checkout screen. Leave empty for default names.]]></comment>
141
+ <sort_order>21</sort_order>
142
+ <show_in_default>1</show_in_default>
143
+ <show_in_website>1</show_in_website>
144
+ <show_in_store>1</show_in_store>
145
+ </title_webmoney>
146
  <order_description translate="label">
147
  <label>Order description</label>
148
  <frontend_type>text</frontend_type>
app/etc/modules/F500_Xibpayments.xml CHANGED
@@ -12,7 +12,7 @@
12
  <Mage_Payment />
13
  </depends>
14
  <!-- declare module's version information for database updates -->
15
- <version>1.0.5</version>
16
  </F500_Xibpayments>
17
  </modules>
18
  </config>
12
  <Mage_Payment />
13
  </depends>
14
  <!-- declare module's version information for database updates -->
15
+ <version>1.0.6</version>
16
  </F500_Xibpayments>
17
  </modules>
18
  </config>
app/locale/en_US/F500_Xibpayments.csv CHANGED
@@ -17,11 +17,15 @@
17
  "paypal","Paypal"
18
  "mistercash","Mister Cash"
19
  "giropay","Giropay"
 
 
20
  "Translation creditcard","Title creditcard"
21
  "Translation ideal","Title ideal"
22
  "Translation paypal","Title paypal"
23
  "Translation mistercash","Title mistercash"
24
  "Translation giropay","Title giropay"
 
 
25
  "Select your bank","Select your bank"
26
  "Additional banks","Additional banks"
27
  "Live","Live"
17
  "paypal","Paypal"
18
  "mistercash","Mister Cash"
19
  "giropay","Giropay"
20
+ "directebanking","DIRECTebanking"
21
+ "webmoney","Webmoney"
22
  "Translation creditcard","Title creditcard"
23
  "Translation ideal","Title ideal"
24
  "Translation paypal","Title paypal"
25
  "Translation mistercash","Title mistercash"
26
  "Translation giropay","Title giropay"
27
+ "Translation directebanking","Title DIRECTebanking"
28
+ "Translation webmoney","Title webmoney"
29
  "Select your bank","Select your bank"
30
  "Additional banks","Additional banks"
31
  "Live","Live"
app/locale/nl_NL/F500_Xibpayments.csv CHANGED
@@ -17,11 +17,15 @@
17
  "paypal","Paypal"
18
  "mistercash","Mister Cash"
19
  "giropay","Giropay"
 
 
20
  "Translation creditcard","Titel creditcard"
21
  "Translation ideal","Titel ideal"
22
  "Translation paypal","Titel paypal"
23
  "Translation mistercash","Titel mistercash"
24
  "Translation giropay","Titel giropay"
 
 
25
  "Select your bank","Kies uw bank"
26
  "Additional banks","Overige banken"
27
  "Live","Live"
17
  "paypal","Paypal"
18
  "mistercash","Mister Cash"
19
  "giropay","Giropay"
20
+ "directebanking","DIRECTebanking"
21
+ "webmoney","Webmoney"
22
  "Translation creditcard","Titel creditcard"
23
  "Translation ideal","Titel ideal"
24
  "Translation paypal","Titel paypal"
25
  "Translation mistercash","Titel mistercash"
26
  "Translation giropay","Titel giropay"
27
+ "Translation directebanking","Titel DIRECTebanking"
28
+ "Translation webmoney","Titel webmoney"
29
  "Select your bank","Kies uw bank"
30
  "Additional banks","Overige banken"
31
  "Live","Live"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>F500_Xibpayments</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@
12
  Apply for an account at info@xibpayments.com</description>
13
  <notes>Stabe release</notes>
14
  <authors><author><name>Ramon de la Fuente</name><user>auto-converted</user><email>ramon@future500.nl</email></author></authors>
15
- <date>2010-02-15</date>
16
- <time>23:53:45</time>
17
- <contents><target name="magelocale"><dir name="en_US"><file name="F500_Xibpayments.csv" hash="e68bfe94fd31272ab5cb3815358632b6"/></dir><dir name="nl_NL"><file name="F500_Xibpayments.csv" hash="cc7f715c24701dfdee73f951462de5b8"/></dir></target><target name="magelocal"><dir name="F500"><dir name="Xibpayments"><dir name="Block"><file name="Form.php" hash="0f8532cbf396c5e64cfd81fd0be42bc2"/><file name="Redirect.php" hash="16bf7b094fd1b45870281b7dde49174c"/></dir><dir name="controllers"><file name="SecureController.php" hash="59a3429d0572a93502ffabe6563b31aa"/></dir><dir name="etc"><file name="config.xml" hash="816395fb45350f444c76c448e7790596"/><file name="system.xml" hash="9865a785acafe0736ae80974b1170e08"/></dir><dir name="Helper"><file name="Data.php" hash="bfa4eeb6609df83759b2e31d39e6b575"/></dir><dir name="Model"><file name="Session.php" hash="a5d2ef4deda15e02a40b7608188ba899"/><file name="Standard.php" hash="fe379430ebed3271562f7ea858db9970"/><dir name="Mysql4"><file name="Setup.php" hash="2dee2d37bd72702b1bd4722a826738c2"/></dir><dir name="System"><file name="Paymentoptions.php" hash="c95d5654ebbcd72977cbf9a91cd63229"/><file name="Transactiontype.php" hash="2d8784404eb1c3434a562d1b1f1871d3"/></dir></dir><dir name="sql"><dir name="xibpayments_setup"><file name="mysql4-install-0.1.0.php" hash="223c70847e08e2f28889d3723871dd2c"/><file name="mysql4-uninstall-0.1.0.php" hash="223c70847e08e2f28889d3723871dd2c"/><file name="mysql4-upgrade-1.0.3-1.0.3.php" hash="833e9c4a263762eda7f67c9b68c643e0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="xibpayments"><file name="form.phtml" hash="38d252b91a2fc9c421020d16bbc01ffd"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="F500_Xibpayments.xml" hash="006f07cd8a376ff45ba10340f882185b"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>F500_Xibpayments</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
12
  Apply for an account at info@xibpayments.com</description>
13
  <notes>Stabe release</notes>
14
  <authors><author><name>Ramon de la Fuente</name><user>auto-converted</user><email>ramon@future500.nl</email></author></authors>
15
+ <date>2010-05-04</date>
16
+ <time>07:22:51</time>
17
+ <contents><target name="magelocale"><dir name="en_US"><file name="F500_Xibpayments.csv" hash="a64707577f9f55c4a9bd549f5ffdfb13"/></dir><dir name="nl_NL"><file name="F500_Xibpayments.csv" hash="f8d75d43ee93564505c63d5646bc6a25"/></dir></target><target name="magelocal"><dir name="F500"><dir name="Xibpayments"><dir name="Block"><file name="Form.php" hash="e409d890480d75d1e8336303909830f0"/><file name="Redirect.php" hash="16bf7b094fd1b45870281b7dde49174c"/></dir><dir name="controllers"><file name="SecureController.php" hash="59a3429d0572a93502ffabe6563b31aa"/></dir><dir name="etc"><file name="config.xml" hash="40089c68eb5894ff91381c53c3434016"/><file name="system.xml" hash="a2d94f69dcb93d9c7cae1e90a26fb4b1"/></dir><dir name="Helper"><file name="Data.php" hash="bfa4eeb6609df83759b2e31d39e6b575"/></dir><dir name="Model"><file name="Session.php" hash="a5d2ef4deda15e02a40b7608188ba899"/><file name="Standard.php" hash="b8d33ddf73259a1392f2aac583419527"/><dir name="Mysql4"><file name="Setup.php" hash="2dee2d37bd72702b1bd4722a826738c2"/></dir><dir name="System"><file name="Paymentoptions.php" hash="9b4ac59156789f08aac20f8c8934b9a3"/><file name="Transactiontype.php" hash="2d8784404eb1c3434a562d1b1f1871d3"/></dir></dir><dir name="sql"><dir name="xibpayments_setup"><file name="mysql4-install-0.1.0.php" hash="223c70847e08e2f28889d3723871dd2c"/><file name="mysql4-uninstall-0.1.0.php" hash="223c70847e08e2f28889d3723871dd2c"/><file name="mysql4-upgrade-1.0.3-1.0.3.php" hash="833e9c4a263762eda7f67c9b68c643e0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="xibpayments"><file name="form.phtml" hash="3e37e85f9454c4c749af8eb5fef1baa1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="F500_Xibpayments.xml" hash="8c1f664719afdf4406b7263ce8715cdc"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>