Bitbull_Satispay - Version 0.2.1

Version Notes

Magento Satispay extension for Magento versions 1.7.x, 1.8.x and 1.9.x.

Download this release

Release Info

Developer Renato Cason
Extension Bitbull_Satispay
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/community/Bitbull/Satispay/Model/Logger.php CHANGED
@@ -36,7 +36,11 @@ class Bitbull_Satispay_Model_Logger extends Mage_Core_Model_Abstract
36
  $force = $this->_force;
37
  }
38
 
39
- return $this->_logger->log($message, $level, $this->_filename, $force);
 
 
 
 
40
  }
41
 
42
  /**
36
  $force = $this->_force;
37
  }
38
 
39
+ if($this->_logger) {
40
+ return $this->_logger->log($message, $level, $this->_filename, $force);
41
+ } else {
42
+ return Mage::log($message, $level, $this->_filename, $force);
43
+ }
44
  }
45
 
46
  /**
app/code/community/Bitbull/Satispay/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Bitbull_Satispay>
5
- <version>0.2.0</version>
6
  </Bitbull_Satispay>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Bitbull_Satispay>
5
+ <version>0.2.1</version>
6
  </Bitbull_Satispay>
7
  </modules>
8
  <global>
app/design/frontend/base/default/template/bitbull/satispay/payment/page.phtml CHANGED
@@ -19,8 +19,22 @@
19
  </div>
20
 
21
  <script type="text/javascript">
22
- var satispay = new Satispay_Payment(<?php echo Mage::helper('core')->jsonEncode(array(
23
- 'chargeEndpoint' => Mage::getUrl('satispay/payment/charge_user', array('_secure'=>true)),
24
- 'statusEndpoint' => Mage::getUrl('satispay/payment/check_status', array('_secure'=>true)),
25
- )); ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  </script>
19
  </div>
20
 
21
  <script type="text/javascript">
22
+ initSatispay = function()
23
+ {
24
+ var satispay = new Satispay_Payment(<?php echo Mage::helper('core')->jsonEncode(array(
25
+ 'chargeEndpoint' => Mage::getUrl('satispay/payment/charge_user', array('_secure'=>true)),
26
+ 'statusEndpoint' => Mage::getUrl('satispay/payment/check_status', array('_secure'=>true)),
27
+ )); ?>);
28
+ }
29
+
30
+ if(typeof jQuery == 'undefined') {
31
+ var headTag = document.getElementsByTagName("head")[0];
32
+ var jQueryTag = document.createElement('script');
33
+ jQueryTag.type = 'text/javascript';
34
+ jQueryTag.src = '//code.jquery.com/jquery-1.12.4.min.js';
35
+ jQueryTag.onload = initSatispay;
36
+ headTag.appendChild(jQueryTag);
37
+ } else {
38
+ initSatispay();
39
+ }
40
  </script>
package.xml CHANGED
@@ -1,18 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bitbull_Satispay</name>
4
- <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Satispay payment gateway for Magento 1.9.x</summary>
10
- <description>Bitbull_Satispay extension enables your shop to receive payments using Satispay.</description>
11
- <notes>First stable version.</notes>
 
 
 
 
12
  <authors><author><name>Renato Cason</name><user>bitbull_team</user><email>devel@bitbull.it</email></author></authors>
13
- <date>2016-05-20</date>
14
- <time>14:43:47</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Bitbull_Satispay.xml" hash="e29f9792ca510be121a0bf867aba8b40"/></dir></target><target name="magelib"><dir name="Satispay"><dir name="Core"><file name="Client.php" hash="9ad0aae9447343657edba256e157defa"/><file name=".gitkeep" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target><target name="magecommunity"><dir name="Bitbull"><dir name="Satispay"><dir name="Block"><dir name="Payment"><file name="Form.php" hash="2a92ec1fd664fb537d7e12dd4bfb9a97"/><file name="Info.php" hash="582388609b22ba68b10b6fa5270187f9"/><file name="Page.php" hash="7c53d1f85d97db5da3e6b9353004cbfe"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c73362f14dd81f792e968950e5a78a6b"/><file name="Order.php" hash="65e4ef408b2016baca2f0c8db03d40fb"/><file name="Phone.php" hash="1d25accc1311e8be5f608a965110b061"/></dir><dir name="Model"><file name="Cron.php" hash="9a60dd5021b58e3f48bbba6e90a9932b"/><file name="Logger.php" hash="73e12d969afa8a7600f785f28b2abed5"/><file name="Payment.php" hash="d2960416aa7b447da009a88f878089ce"/><file name="Session.php" hash="38ff5005a5ad78a1450b758645209cad"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Countrycode.php" hash="caf42dc3e24629116edb930581b5cfc4"/></dir></dir></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="c47762a35d9cb85c9dde345974fb737a"/></dir><dir name="etc"><file name="config.xml" hash="1c4e145ddd7d0455eadc8e36552a6c78"/><file name="system.xml" hash="254b7329e384f94cffe058c7bcc78c91"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="bitbull"><file name="satispay.xml" hash="ecb54fc1f2606a24007f04b7ec3f2f92"/></dir></dir><dir name="template"><dir name="bitbull"><dir name="satispay"><dir><dir name="payment"><file name="form.phtml" hash="936fdfd76081c6382c4fd18eda40fb39"/><file name="info.phtml" hash="da0eece5659d73746c1f7e0a7d593b7f"/><file name="page.phtml" hash="486e56e8292d58d7b05b8e7c6502e3fe"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="bitbull"><dir name="satispay"><dir name="payment"><file name="info.phtml" hash="2c90d6f0e8cdd838e5fa7e5a340e92db"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bitbull"><dir name="satispay"><dir name="css"><file name="payment.css" hash="8a63a861687a7670e932ac56f2218a11"/></dir><dir name="images"><file name="satispay_logo.png" hash="23dcf008e223b93536b4f2f3f731602f"/></dir><dir name="js"><file name="payment.js" hash="f2efafd7072de4d9414b778f8a32f4ec"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Bitbull_Satispay.csv" hash="6783cb58763d4861c992c7e213bb75c0"/></dir><dir name="it_IT"><file name="Bitbull_Satispay.csv" hash="fbb1585eb56e724a33bc99b7d085a41e"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.5.0</min><max>7.0.6</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bitbull_Satispay</name>
4
+ <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Accept payments via Satispay.</summary>
10
+ <description>This is the official Satispay extension for Magento, that will allow you to receive payments for your orders using Satispay.&#xD;
11
+ For additional informations or to register as a merchant visit https://www.satispay.com/&#xD;
12
+ &#xD;
13
+ Estensione ufficiale Satispay per Magento. A seguito dell'installazione ti permetter&#xE0; di ricevere pagamenti tramite Satispay nel tuo store.&#xD;
14
+ Per ulteriori informazioni o per registrare un account business visita https://www.satispay.com/</description>
15
+ <notes>Magento Satispay extension for Magento versions 1.7.x, 1.8.x and 1.9.x.</notes>
16
  <authors><author><name>Renato Cason</name><user>bitbull_team</user><email>devel@bitbull.it</email></author></authors>
17
+ <date>2016-05-28</date>
18
+ <time>10:06:46</time>
19
+ <contents><target name="mageetc"><dir name="modules"><file name="Bitbull_Satispay.xml" hash="e29f9792ca510be121a0bf867aba8b40"/></dir></target><target name="magelib"><dir name="Satispay"><dir name="Core"><file name="Client.php" hash="9ad0aae9447343657edba256e157defa"/><file name=".gitkeep" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target><target name="magecommunity"><dir name="Bitbull"><dir name="Satispay"><dir name="Block"><dir name="Payment"><file name="Form.php" hash="2a92ec1fd664fb537d7e12dd4bfb9a97"/><file name="Info.php" hash="582388609b22ba68b10b6fa5270187f9"/><file name="Page.php" hash="7c53d1f85d97db5da3e6b9353004cbfe"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c73362f14dd81f792e968950e5a78a6b"/><file name="Order.php" hash="65e4ef408b2016baca2f0c8db03d40fb"/><file name="Phone.php" hash="1d25accc1311e8be5f608a965110b061"/></dir><dir name="Model"><file name="Cron.php" hash="9a60dd5021b58e3f48bbba6e90a9932b"/><file name="Logger.php" hash="462f039bf97b3329a95ba618b3ae6e2f"/><file name="Payment.php" hash="d2960416aa7b447da009a88f878089ce"/><file name="Session.php" hash="38ff5005a5ad78a1450b758645209cad"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Countrycode.php" hash="caf42dc3e24629116edb930581b5cfc4"/></dir></dir></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="c47762a35d9cb85c9dde345974fb737a"/></dir><dir name="etc"><file name="config.xml" hash="38d9541ff57fff88f0fdc56d89b005e0"/><file name="system.xml" hash="254b7329e384f94cffe058c7bcc78c91"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="bitbull"><file name="satispay.xml" hash="ecb54fc1f2606a24007f04b7ec3f2f92"/></dir></dir><dir name="template"><dir name="bitbull"><dir name="satispay"><dir><dir name="payment"><file name="form.phtml" hash="936fdfd76081c6382c4fd18eda40fb39"/><file name="info.phtml" hash="da0eece5659d73746c1f7e0a7d593b7f"/><file name="page.phtml" hash="c7b217e79d22f002d4f6fd298974b926"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="bitbull"><dir name="satispay"><dir name="payment"><file name="info.phtml" hash="2c90d6f0e8cdd838e5fa7e5a340e92db"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bitbull"><dir name="satispay"><dir name="css"><file name="payment.css" hash="8a63a861687a7670e932ac56f2218a11"/></dir><dir name="images"><file name="satispay_logo.png" hash="23dcf008e223b93536b4f2f3f731602f"/></dir><dir name="js"><file name="payment.js" hash="f2efafd7072de4d9414b778f8a32f4ec"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Bitbull_Satispay.csv" hash="6783cb58763d4861c992c7e213bb75c0"/></dir><dir name="it_IT"><file name="Bitbull_Satispay.csv" hash="fbb1585eb56e724a33bc99b7d085a41e"/></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.5.0</min><max>7.0.6</max></php></required></dependencies>
22
  </package>