Tpv_Ceca - Version 1.0.1

Version Notes

payment gateway
partial refunds
use of transactions

Download this release

Release Info

Developer Magento Desarrollo
Extension Tpv_Ceca
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Magentodesarrollo/Ceca/Model/Paymentmethod.php CHANGED
@@ -91,7 +91,7 @@ class Magentodesarrollo_Ceca_Model_Paymentmethod extends Mage_Payment_Model_Meth
91
  ->getFirstItem();
92
 
93
  $transId=$invoice->getTransactionId();
94
- $url = (Mage::getStoreConfig('payment/ceca/produccion')?'https://pgw.ceca.es/cgi-bin/tpvanular':'http://tpv.ceca.es:8000/cgi-bin/tpvanular');
95
  $clave=Mage::getStoreConfig('payment/ceca/clave_encriptacion');
96
  $merchant=Mage::getStoreConfig('payment/ceca/merchant_id');
97
  $acquirer=Mage::getStoreConfig('payment/ceca/acquirer_bin');
@@ -127,7 +127,7 @@ class Magentodesarrollo_Ceca_Model_Paymentmethod extends Mage_Payment_Model_Meth
127
  $result = curl_exec($ch);
128
  Mage::log($result,null,'serversidevalidation.log');
129
  $resok = preg_replace("/<.*?>/", "", $result);
130
- $resok = preg_match("/400/", $resok);
131
  if(!$resok){
132
  $resko = preg_replace("/[\n|\r]/", "", $result);
133
  $resko = preg_replace("/<SCRIPT.*<\/SCRIPT>/", "", $resko);
91
  ->getFirstItem();
92
 
93
  $transId=$invoice->getTransactionId();
94
+ $url = (Mage::getStoreConfig('payment/ceca/produccion')?'https://pgw.ceca.es/cgi-bin/tpvanularparcialmente':'http://tpv.ceca.es:8000/cgi-bin/tpvanularparcialmente');
95
  $clave=Mage::getStoreConfig('payment/ceca/clave_encriptacion');
96
  $merchant=Mage::getStoreConfig('payment/ceca/merchant_id');
97
  $acquirer=Mage::getStoreConfig('payment/ceca/acquirer_bin');
127
  $result = curl_exec($ch);
128
  Mage::log($result,null,'serversidevalidation.log');
129
  $resok = preg_replace("/<.*?>/", "", $result);
130
+ $resok = preg_match("/900/", $resok);
131
  if(!$resok){
132
  $resko = preg_replace("/[\n|\r]/", "", $result);
133
  $resko = preg_replace("/<SCRIPT.*<\/SCRIPT>/", "", $resko);
app/code/community/Magentodesarrollo/Ceca/controllers/PaymentController.php CHANGED
@@ -64,7 +64,6 @@ class Magentodesarrollo_Ceca_PaymentController extends Mage_Core_Controller_Fron
64
  }
65
 
66
  public function responseAction() {
67
- //Mage::log($_POST);
68
  // Recogemos datos de respuesta
69
  $clave = Mage::getStoreConfig('payment/ceca/clave_encriptacion');
70
  $total = $_POST["Importe"];
64
  }
65
 
66
  public function responseAction() {
 
67
  // Recogemos datos de respuesta
68
  $clave = Mage::getStoreConfig('payment/ceca/clave_encriptacion');
69
  $total = $_POST["Importe"];
app/code/community/Magentodesarrollo/Ceca/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Magentodesarrollo_Ceca>
5
- <version>0.1.0</version>
6
  </Magentodesarrollo_Ceca>
7
  </modules>
8
  <frontend>
@@ -26,7 +26,7 @@
26
  <default>
27
  <payment>
28
  <ceca>
29
- <active>1</active>
30
  <!-- model to handle logic for this payment method -->
31
  <model>ceca/paymentmethod</model>
32
  <!-- order status for new orders paid by this payment method -->
2
  <config>
3
  <modules>
4
  <Magentodesarrollo_Ceca>
5
+ <version>1.0.1</version>
6
  </Magentodesarrollo_Ceca>
7
  </modules>
8
  <frontend>
26
  <default>
27
  <payment>
28
  <ceca>
29
+ <active>0</active>
30
  <!-- model to handle logic for this payment method -->
31
  <model>ceca/paymentmethod</model>
32
  <!-- order status for new orders paid by this payment method -->
package.xml CHANGED
@@ -1,18 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tpv_Ceca</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Pasarela bancaria de Ceca</summary>
10
  <description>Modulo para redirigir una compra a la pasarela bancaria de ceca.</description>
11
- <notes>testing</notes>
 
 
12
  <authors><author><name>Magento Desarrollo</name><user>magentobk1</user><email>magentodesarrollo@brokerfashion.com</email></author></authors>
13
- <date>2015-07-03</date>
14
- <time>15:04:11</time>
15
- <contents><target name="magecommunity"><dir name="Magentodesarrollo"><dir name="Ceca"><dir name="Helper"><file name="Data.php" hash="9f56090ba09c144d5330d1a3bc88f880"/></dir><dir name="Model"><file name="Paymentmethod.php" hash="e1600e8831b5133c9aab95f1bfeb78e5"/></dir><dir name="controllers"><file name="PaymentController.php" hash="dcbc5a2b282f26fbd39464d776ff48a9"/></dir><dir name="etc"><file name="config.xml" hash="b7041c2c6353902925ecd83c47322917"/><file name="system.xml" hash="82f2a7bfea20c990e9d1ed724eed6fbb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magentodesarrollo_Ceca.xml" hash="427d8c952d6408e5ef49721855a57175"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.36</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tpv_Ceca</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Pasarela bancaria de Ceca</summary>
10
  <description>Modulo para redirigir una compra a la pasarela bancaria de ceca.</description>
11
+ <notes>payment gateway&#xD;
12
+ partial refunds&#xD;
13
+ use of transactions</notes>
14
  <authors><author><name>Magento Desarrollo</name><user>magentobk1</user><email>magentodesarrollo@brokerfashion.com</email></author></authors>
15
+ <date>2015-07-15</date>
16
+ <time>15:32:52</time>
17
+ <contents><target name="magecommunity"><dir name="Magentodesarrollo"><dir name="Ceca"><dir name="Helper"><file name="Data.php" hash="9f56090ba09c144d5330d1a3bc88f880"/></dir><dir name="Model"><file name="Paymentmethod.php" hash="178d6a8e9b1a415b52413f221c132d96"/></dir><dir name="controllers"><file name="PaymentController.php" hash="b5f5ed561153788a96b02c022af7b8c5"/></dir><dir name="etc"><file name="config.xml" hash="58aebff71a67afd93d3bb0628500f7b4"/><file name="system.xml" hash="82f2a7bfea20c990e9d1ed724eed6fbb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magentodesarrollo_Ceca.xml" hash="427d8c952d6408e5ef49721855a57175"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.4.36</min><max>6.0.0</max></php></required></dependencies>
20
  </package>