MisterSoft_Paidy - Version 1.0.1

Version Notes

Fixed checkout bug

Download this release

Release Info

Developer Sergey Balitsky
Extension MisterSoft_Paidy
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/MisterSoft/Paidy/Block/Checkout/Paidy.php CHANGED
@@ -5,6 +5,9 @@ class MisterSoft_Paidy_Block_Checkout_Paidy extends Mage_Core_Block_Template {
5
  return Mage::getStoreConfig('payment/paidy/api_key');
6
  }
7
  public function getPaidyData() {
8
- return Mage::getModel('paidy/paidy')->getPaidyData();;
9
  }
 
 
 
10
  }
5
  return Mage::getStoreConfig('payment/paidy/api_key');
6
  }
7
  public function getPaidyData() {
8
+ return Mage::getModel('paidy/paidy')->getPaidyData();
9
  }
10
+ public function isPaidySelected() {
11
+ return (Mage::getSingleton('checkout/session')->getQuote()->getPayment()->getMethodInstance()->getCode() == 'paidy');
12
+ }
13
  }
app/design/frontend/base/default/template/mistersoft_paidy/checkout/paidy.phtml CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Paidy checkout JS template
4
  */
5
-
6
  ?>
7
  <script type="text/javascript">
8
  var paidy = Paidy.configure({
@@ -20,3 +20,5 @@
20
  return false;
21
  });
22
  </script>
 
 
2
  /*
3
  * Paidy checkout JS template
4
  */
5
+ if ($this->isPaidySelected()) {
6
  ?>
7
  <script type="text/javascript">
8
  var paidy = Paidy.configure({
20
  return false;
21
  });
22
  </script>
23
+ <?php
24
+ };
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MisterSoft_Paidy</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL-3.0</license>
7
  <channel>community</channel>
@@ -16,17 +16,12 @@ The instant JavaScript checkout is optimized for virtually all browsers, both mo
16
  &#x2022; Customers stay on your site during the entire checkout process&#xD;
17
  &#xD;
18
  </description>
19
- <notes>Auth or Auth/Capture&#xD;
20
- (Partial) capture&#xD;
21
- (Partial) Refund&#xD;
22
- Void&#xD;
23
- Test flagging&#xD;
24
- Mobile optimized&#xD;
25
  </notes>
26
  <authors><author><name>Sergey Balitsky</name><user>mistersoft</user><email>sergey.balitsky@gmail.com</email></author><author><name>Paidy</name><user>paidy</user><email>plugins@paidy.com</email></author></authors>
27
- <date>2015-03-24</date>
28
- <time>09:39:19</time>
29
- <contents><target name="magecommunity"><dir name="MisterSoft"><dir name="Paidy"><dir name="Block"><dir name="Checkout"><file name="Form.php" hash="64264648d213dbde1df4b348dbac41c8"/><file name="Paidy.php" hash="daa70897356adbb159c988c1c690ac92"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e73d8f2fa5b43fab56398f4cf8746c49"/></dir><dir name="Model"><file name="Paidy.php" hash="e4a3214fcb720af2d6dbd9e750c3a911"/><dir name="System"><dir name="Config"><dir name="Source"><file name="PaymentActions.php" hash="a945cd161de98df7bcb694c30f7db173"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="733ae78613ec0ca89dc1dea89b5064ba"/><file name="system.xml" hash="bb29fd98851a6e3ebd504494d99bb4c5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mistersoft_paidy.xml" hash="2f11e7ca7e79d89689ceb469b79183a7"/></dir><dir name="template"><dir name="mistersoft_paidy"><dir name="checkout"><file name="form.phtml" hash="4af8a208a5525f66bec4b3543550a611"/><file name="paidy.phtml" hash="e5e83fec48b885c8e2da1e021ae6fafb"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MisterSoft_Paidy.xml" hash="ff106a3b77036a1e4e5f3862654d360d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MisterSoft_Paidy.csv" hash="b7f6d1bb7fb1da9725441f70eab5b303"/></dir><dir name="ja_JP"><file name="MisterSoft_Paidy.csv" hash="84bfb55f5b7b26f55c151a2e70f5efe1"/></dir></target></contents>
30
  <compatible/>
31
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
32
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MisterSoft_Paidy</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL-3.0</license>
7
  <channel>community</channel>
16
  &#x2022; Customers stay on your site during the entire checkout process&#xD;
17
  &#xD;
18
  </description>
19
+ <notes>Fixed checkout bug&#xD;
 
 
 
 
 
20
  </notes>
21
  <authors><author><name>Sergey Balitsky</name><user>mistersoft</user><email>sergey.balitsky@gmail.com</email></author><author><name>Paidy</name><user>paidy</user><email>plugins@paidy.com</email></author></authors>
22
+ <date>2015-03-31</date>
23
+ <time>07:12:44</time>
24
+ <contents><target name="magecommunity"><dir name="MisterSoft"><dir name="Paidy"><dir name="Block"><dir name="Checkout"><file name="Form.php" hash="64264648d213dbde1df4b348dbac41c8"/><file name="Paidy.php" hash="571c120327a95b6837ebd4f99d483c64"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e73d8f2fa5b43fab56398f4cf8746c49"/></dir><dir name="Model"><file name="Paidy.php" hash="e4a3214fcb720af2d6dbd9e750c3a911"/><dir name="System"><dir name="Config"><dir name="Source"><file name="PaymentActions.php" hash="a945cd161de98df7bcb694c30f7db173"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="733ae78613ec0ca89dc1dea89b5064ba"/><file name="system.xml" hash="bb29fd98851a6e3ebd504494d99bb4c5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mistersoft_paidy.xml" hash="2f11e7ca7e79d89689ceb469b79183a7"/></dir><dir name="template"><dir name="mistersoft_paidy"><dir name="checkout"><file name="form.phtml" hash="4af8a208a5525f66bec4b3543550a611"/><file name="paidy.phtml" hash="f9f39acb30684d246b6bc96cd444997c"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MisterSoft_Paidy.xml" hash="ff106a3b77036a1e4e5f3862654d360d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MisterSoft_Paidy.csv" hash="b7f6d1bb7fb1da9725441f70eab5b303"/></dir><dir name="ja_JP"><file name="MisterSoft_Paidy.csv" hash="84bfb55f5b7b26f55c151a2e70f5efe1"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
27
  </package>