J2t_Payplug - Version 1.0.5

Version Notes

Curl Error 30 issue

Download this release

Release Info

Developer J2T DESIGN
Extension J2t_Payplug
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/community/J2t/Payplug/Model/Observer.php CHANGED
@@ -8,12 +8,11 @@ class J2t_Payplug_Model_Observer extends Mage_Core_Model_Session_Abstract
8
 
9
  curl_setopt($process, CURLOPT_USERPWD, $user.':'.$pass);
10
  curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
11
- curl_setopt($process, CURLOPT_SSLVERSION, 3);
12
  $answer = curl_exec($process);
13
 
14
  $errorCurl = curl_errno($process);
15
 
16
-
17
  curl_close($process);
18
  if($errorCurl == 0) {
19
  $jsonAnswer = json_decode($answer);
8
 
9
  curl_setopt($process, CURLOPT_USERPWD, $user.':'.$pass);
10
  curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
11
+ //curl_setopt($process, CURLOPT_SSLVERSION, 3);
12
  $answer = curl_exec($process);
13
 
14
  $errorCurl = curl_errno($process);
15
 
 
16
  curl_close($process);
17
  if($errorCurl == 0) {
18
  $jsonAnswer = json_decode($answer);
app/code/community/J2t/Payplug/Model/PaymentMethod.php CHANGED
@@ -156,13 +156,13 @@ class J2t_Payplug_Model_PaymentMethod extends Mage_Payment_Model_Method_Abstract
156
 
157
  public function isAvailable($quote = null)
158
  {
159
- $min = Mage::getStoreConfig('payment/j2tpayplug/min_amount', $quote->getStoreId());
160
- $max = Mage::getStoreConfig('payment/j2tpayplug/max_amount', $quote->getStoreId());
161
- if (parent::isAvailable($quote) && $quote->getGrandTotal() >= $min && $quote->getGrandTotal() <= $max
162
- && Mage::getStoreConfig('payment/j2tpayplug/private_key', $quote->getStoreId())
163
- && Mage::getStoreConfig('payment/j2tpayplug/public_key', $quote->getStoreId())
164
- && Mage::getStoreConfig('payment/j2tpayplug/module_url', $quote->getStoreId())
165
- && Mage::getStoreConfig('payment/j2tpayplug/currencies', $quote->getStoreId())
166
  ) {
167
  return true;
168
  }
156
 
157
  public function isAvailable($quote = null)
158
  {
159
+ $min = Mage::getStoreConfig('payment/j2tpayplug/min_amount', $quote ? $quote->getStoreId() : null);
160
+ $max = Mage::getStoreConfig('payment/j2tpayplug/max_amount', $quote ? $quote->getStoreId() : null);
161
+ if (parent::isAvailable($quote) && $quote && $quote->getGrandTotal() >= $min && $quote->getGrandTotal() <= $max
162
+ && Mage::getStoreConfig('payment/j2tpayplug/private_key', $quote ? $quote->getStoreId() : null)
163
+ && Mage::getStoreConfig('payment/j2tpayplug/public_key', $quote ? $quote->getStoreId() : null)
164
+ && Mage::getStoreConfig('payment/j2tpayplug/module_url', $quote ? $quote->getStoreId() : null)
165
+ && Mage::getStoreConfig('payment/j2tpayplug/currencies', $quote ? $quote->getStoreId() : null)
166
  ) {
167
  return true;
168
  }
app/code/community/J2t/Payplug/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <J2t_Payplug>
5
- <version>1.0.4</version>
6
  </J2t_Payplug>
7
  </modules>
8
 
@@ -136,4 +136,4 @@
136
  </j2t_all>
137
  </system>
138
  </default>
139
- </config>
2
  <config>
3
  <modules>
4
  <J2t_Payplug>
5
+ <version>1.0.5</version>
6
  </J2t_Payplug>
7
  </modules>
8
 
136
  </j2t_all>
137
  </system>
138
  </default>
139
+ </config>
app/code/community/J2t/Payplug/etc/system.xml CHANGED
@@ -58,7 +58,7 @@
58
  </j2t_all>
59
  <payment>
60
  <groups>
61
- <j2tpayplug translate="label" module="paygate">
62
  <label>Pay Plug</label>
63
  <sort_order>670</sort_order>
64
  <show_in_default>1</show_in_default>
58
  </j2t_all>
59
  <payment>
60
  <groups>
61
+ <j2tpayplug translate="label" module="j2tpayplug">
62
  <label>Pay Plug</label>
63
  <sort_order>670</sort_order>
64
  <show_in_default>1</show_in_default>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>J2t_Payplug</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>PayPlug payment gateway</summary>
10
  <description>It allows to pay with PayPlug</description>
11
- <notes>Minor update</notes>
12
  <authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
13
- <date>2014-09-29</date>
14
- <time>08:46:57</time>
15
- <contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="1879d72dca0d0762afa48d7039d07925"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="6d67e04bd3fd33e44c8381e64d5e9682"/><file name="PaymentMethod.php" hash="ecdb9dddcaaac90b80e5df92690b8d4a"/></dir><dir name="controllers"><file name="PaymentController.php" hash="39dc7cde45283f1c5d6c62e1bb8efcac"/></dir><dir name="etc"><file name="config.xml" hash="0f4544ffd59462b9f2d5234fb90e37e9"/><file name="system.xml" hash="3162cbcfe20e70dea4f3361f15b05b4f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="j2tpayplug"><file name="form.phtml" hash="6edeec68d52f962cfe43b703d9925302"/><file name="info.phtml" hash="7270ac2591cb0ad18915d8f5e92bef69"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="j2tpayplug.xml" hash="b4f4d0cbe73cbd00bff554680f531741"/></dir><dir name="template"><dir name="j2tpayplug"><file name="info.phtml" hash="f6aa9ac4ef5ec0aa207e4b5a03666bd1"/><dir name="pdf"><file name="info.phtml" hash="007c81c2ae9e9b16522924a8073294ef"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="magelocale"><dir><dir name="fr_FR"><file name="j2t_payplug.csv" hash="e974dd6332fdb4714dc519e4df59f1b0"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash="6d64fbd2a114cd820c11017c61bd0897"/><dir name="images"><file name="j2t_all_1.png" hash="19abc9040d74479f19eeb0c686f84766"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash="5270a1ef6a85f679504849cdb1dccb2a"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>J2t_Payplug</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>PayPlug payment gateway</summary>
10
  <description>It allows to pay with PayPlug</description>
11
+ <notes>Curl Error 30 issue</notes>
12
  <authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
13
+ <date>2015-01-26</date>
14
+ <time>09:27:48</time>
15
+ <contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="1879d72dca0d0762afa48d7039d07925"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="b385fea0af6f8765f296a2b213b3f10c"/><file name="PaymentMethod.php" hash="0621acf79efad4f9a9fa885ce669812e"/></dir><dir name="controllers"><file name="PaymentController.php" hash="39dc7cde45283f1c5d6c62e1bb8efcac"/></dir><dir name="etc"><file name="config.xml" hash="d4da4d21fa84cdf191d6c326dcc34a56"/><file name="system.xml" hash="6025f80f59a375e4e687065ab2a347df"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="j2tpayplug"><file name="form.phtml" hash="6edeec68d52f962cfe43b703d9925302"/><file name="info.phtml" hash="7270ac2591cb0ad18915d8f5e92bef69"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="j2tpayplug.xml" hash="b4f4d0cbe73cbd00bff554680f531741"/></dir><dir name="template"><dir name="j2tpayplug"><file name="info.phtml" hash="f6aa9ac4ef5ec0aa207e4b5a03666bd1"/><dir name="pdf"><file name="info.phtml" hash="007c81c2ae9e9b16522924a8073294ef"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="magelocale"><dir><dir name="fr_FR"><file name="j2t_payplug.csv" hash="e974dd6332fdb4714dc519e4df59f1b0"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash="6d64fbd2a114cd820c11017c61bd0897"/><dir name="images"><file name="j2t_all_1.png" hash="19abc9040d74479f19eeb0c686f84766"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash="5270a1ef6a85f679504849cdb1dccb2a"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>