Version Notes
Introduction of sandbox feature
Download this release
Release Info
| Developer | J2T DESIGN |
| Extension | J2t_Payplug |
| Version | 1.0.11 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.10 to 1.0.11
app/code/community/J2t/Payplug/Model/Observer.php
CHANGED
|
@@ -14,6 +14,35 @@ class J2t_Payplug_Model_Observer extends Mage_Core_Model_Session_Abstract
|
|
| 14 |
}
|
| 15 |
}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
$process = curl_init($url);
|
| 18 |
//$process = curl_init(self::URL_AUTOCONFIG);
|
| 19 |
|
|
@@ -21,11 +50,9 @@ class J2t_Payplug_Model_Observer extends Mage_Core_Model_Session_Abstract
|
|
| 21 |
curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
|
| 22 |
//curl_setopt($process, CURLOPT_SSLVERSION, 3);
|
| 23 |
$answer = curl_exec($process);
|
| 24 |
-
|
| 25 |
$errorCurl = curl_errno($process);
|
| 26 |
-
|
| 27 |
-
|
| 28 |
curl_close($process);
|
|
|
|
| 29 |
if($errorCurl == 0) {
|
| 30 |
$jsonAnswer = json_decode($answer);
|
| 31 |
$authorizationSuccess = false;
|
| 14 |
}
|
| 15 |
}
|
| 16 |
|
| 17 |
+
/*$curl = new Varien_Http_Adapter_Curl();
|
| 18 |
+
$curl->setConfig(array(
|
| 19 |
+
//'verifypeer' => strpos($url, 'https://') !== false,
|
| 20 |
+
//'header' => true,
|
| 21 |
+
'timeout' => 35,
|
| 22 |
+
));
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
$curl->addOption(CURLOPT_USERPWD, $user.':'.$pass);
|
| 26 |
+
$curl->addOption(CURLOPT_RETURNTRANSFER, true);
|
| 27 |
+
$curl->addOption(CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1 );
|
| 28 |
+
|
| 29 |
+
$curl->write(Zend_Http_Client::GET, $url, '1.1');
|
| 30 |
+
$answer = $curl->read();
|
| 31 |
+
$errorCurl = $curl->getErrno();
|
| 32 |
+
if ($curl->getErrno() || $curl->getError()) {
|
| 33 |
+
//throw new Exception(Mage::helper('wordpress')->__('CURL (%s): %s', $curl->getErrno(), $curl->getError()));
|
| 34 |
+
$errorCurl = $errorCurl." ".$curl->getError();
|
| 35 |
+
} else {
|
| 36 |
+
$answer = preg_split('/^r?$/m', $answer, 2);
|
| 37 |
+
$answer = trim($answer[1]);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
$curl->close();*/
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
////////////////////////////////////////
|
| 45 |
+
|
| 46 |
$process = curl_init($url);
|
| 47 |
//$process = curl_init(self::URL_AUTOCONFIG);
|
| 48 |
|
| 50 |
curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
|
| 51 |
//curl_setopt($process, CURLOPT_SSLVERSION, 3);
|
| 52 |
$answer = curl_exec($process);
|
|
|
|
| 53 |
$errorCurl = curl_errno($process);
|
|
|
|
|
|
|
| 54 |
curl_close($process);
|
| 55 |
+
|
| 56 |
if($errorCurl == 0) {
|
| 57 |
$jsonAnswer = json_decode($answer);
|
| 58 |
$authorizationSuccess = false;
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>J2t_Payplug</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>It allows to pay with PayPlug</description>
|
| 11 |
<notes>Introduction of sandbox feature</notes>
|
| 12 |
<authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<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="6e5e03ae417efe6d538b6437d5c99f87"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Observer.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies><required><php><min>5.1.0</min><max>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>J2t_Payplug</name>
|
| 4 |
+
<version>1.0.11</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>It allows to pay with PayPlug</description>
|
| 11 |
<notes>Introduction of sandbox feature</notes>
|
| 12 |
<authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
|
| 13 |
+
<date>2017-01-18</date>
|
| 14 |
+
<time>17:33:36</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="6e5e03ae417efe6d538b6437d5c99f87"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Observer.php" hash="3d161081938d37620f427a0f8ad52307"/><file name="PaymentMethod.php" hash="dda6ff53374e6656ce1bcee68992c384"/></dir><dir name="controllers"><file name="PaymentController.php" hash="195a5069f5041ba5a5c528ccd9df5791"/></dir><dir name="etc"><file name="config.xml" hash="99f3dbba953d973970a33421c6d42930"/><file name="system.xml" hash="bfb3f1cb7466f1c893847ba660549842"/></dir><dir name="sql"><dir name="j2tpayplug_setup"><file name="install-1.0.0.php" hash="38cd84e5305bf53bca042f3a325523e5"/></dir></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="cacf102de2ad4d183c502ad85d309439"/><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=""/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash=""/><dir name="images"><file name="j2t_all_1.png" hash=""/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash=""/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.1.0</min><max>8.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
