Lusopay_LusopayGateway - Version 2.3.5

Version Notes

Novo sistema de callback

Download this release

Release Info

Developer Lusopay
Extension Lusopay_LusopayGateway
Version 2.3.5
Comparing to
See all releases


Code changes from version 2.3.1 to 2.3.5

app/code/local/Magnimeios/Magnimeiosgateway/Block/Checkout/Success.php CHANGED
@@ -5,22 +5,28 @@ class Magnimeios_Magnimeiosgateway_Block_Checkout_Success extends Mage_Checkout_
5
  protected function _toHtml()
6
  {
7
 
8
- $read = Mage::getSingleton( 'core/resource' )->getConnection( 'core_read' ); // To read from the database
9
 
10
  $order_id = $this->getOrderId();
11
 
12
  //var_dump($order_id);
13
 
14
- $query = "SELECT * FROM magnimeiosreferences WHERE id_order = ".$order_id;
 
15
 
16
- $result = $read->query($query);
17
-
18
- while($row=$result->fetch()){
19
 
20
  $refMB = $row['refMB'];
21
  $refPS = $row['refPS'];
22
  $valor= $row['value'];
23
  }
 
 
 
 
 
24
 
25
  if(!is_null($refMB) || $refMB != -1){
26
 
@@ -82,14 +88,19 @@ class Magnimeios_Magnimeiosgateway_Block_Checkout_Success extends Mage_Checkout_
82
  </tr>
83
  </table>';
84
  }
 
85
 
86
  $html = parent::_toHtml();
87
 
88
  $html .= $tabela;
 
 
89
 
90
-
91
-
92
- return $html;
 
 
93
  }
94
  }
95
 
5
  protected function _toHtml()
6
  {
7
 
8
+ $connection = Mage::getSingleton( 'core/resource' )->getConnection( 'core_read' ); // To read from the database
9
 
10
  $order_id = $this->getOrderId();
11
 
12
  //var_dump($order_id);
13
 
14
+ $select = $connection->select()->from('magnimeiosreferences', array('*'))->where('id_order=?', $order_id);
15
+ $rows = $connection->fetchRow($select);
16
 
17
+ if($rows == true){
18
+ /*
19
+ while($row){
20
 
21
  $refMB = $row['refMB'];
22
  $refPS = $row['refPS'];
23
  $valor= $row['value'];
24
  }
25
+ */
26
+
27
+ $refMB = $rows['refMB'];
28
+ $refPS = $rows['refPS'];
29
+ $valor = $rows['value'];
30
 
31
  if(!is_null($refMB) || $refMB != -1){
32
 
88
  </tr>
89
  </table>';
90
  }
91
+
92
 
93
  $html = parent::_toHtml();
94
 
95
  $html .= $tabela;
96
+
97
+ return $html;
98
 
99
+ }else{
100
+ $html = parent::_toHtml();
101
+ return $html;
102
+ }
103
+
104
  }
105
  }
106
 
app/code/local/Magnimeios/Magnimeiosgateway/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
- <version>2.1.0</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
@@ -133,7 +133,7 @@
133
  <specificcountry>PT</specificcountry>
134
  <chave></chave>
135
  <nif></nif>
136
- <mensagem></mensagem>
137
  <payment_action>order</payment_action>
138
  <active_callback>0</active_callback>
139
  </magnimeiosgateway>
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
+ <version>2.3.5</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
133
  <specificcountry>PT</specificcountry>
134
  <chave></chave>
135
  <nif></nif>
136
+ <mensagem>Aviso Importante: Não efetue o pagamento antes de finalizar a sua encomenda, só assim é que será válida. Na página seguinte pode rever a(s) tabela(s).</mensagem>
137
  <payment_action>order</payment_action>
138
  <active_callback>0</active_callback>
139
  </magnimeiosgateway>
app/code/local/Magnimeios/Magnimeiosgateway/sql/magnimeiosgateway_setup/{mysql4-install-2.1.0.php → mysql4-install-2.3.5.php} RENAMED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
- <version>2.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Metodo de pagamento atrav&#xE9;s da gera&#xE7;&#xE3;o refer&#xEA;ncias Multibanco e payshop e com sistema callback.</description>
11
  <notes>Novo sistema de callback</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
- <date>2015-07-29</date>
14
- <time>15:37:49</time>
15
- <contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><dir name="Checkout"><dir name="Info"><file name="LusopayMBPS.php" hash="b6274051d8914c43fddfa8d9572e2557"/><file name="LusopayMBPS.php" hash="b6274051d8914c43fddfa8d9572e2557"/></dir><file name="Success.php" hash="5768870f7c610a6d34f9ee2f80670257"/><file name="Success.php" hash="5768870f7c610a6d34f9ee2f80670257"/></dir><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/></dir><dir name="Helper"><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/></dir><dir name="Model"><file name="AtivarCallback.php" hash="01db9f3b75f892c68b0343b3c6f39ec9"/><dir name="Convert"><file name="Order.php" hash="4db18a43bb43a11690141dbaa8ed5799"/><file name="Quote.php" hash="2741e8f49ea614e099296a8df8318377"/><file name="Order.php" hash="4db18a43bb43a11690141dbaa8ed5799"/><file name="Quote.php" hash="2741e8f49ea614e099296a8df8318377"/></dir><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><dir name="Mysql4"><file name="Setup.php" hash="99eb9cd753f0d2f58f3eb3c8ee3c6ff4"/><file name="Setup.php" hash="99eb9cd753f0d2f58f3eb3c8ee3c6ff4"/></dir><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/><file name="AtivarCallback.php" hash="01db9f3b75f892c68b0343b3c6f39ec9"/><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="8ff06b08f503b8d33be245f9a6e46dcc"/><file name="CallbackController.php" hash="8ff06b08f503b8d33be245f9a6e46dcc"/></dir><dir name="etc"><file name="config.xml" hash="79297d8e89fa8561ea2eddaf8fa2feba"/><file name="system.xml" hash="8c12150a0d33977951836bd63b3268c4"/><file name="config.xml" hash="79297d8e89fa8561ea2eddaf8fa2feba"/><file name="system.xml" hash="8c12150a0d33977951836bd63b3268c4"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.1.0.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.1.0.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/><file name="mark.phtml" hash="49b022bdb40ed3aaf8055e05a0e725f3"/></dir><dir name="info"><file name="info.phtml" hash="d07b20ae60559a61b2c8f314816da303"/><dir name="pdf"><file name="info.phtml" hash="5782769a75900a3aecae1e4e0f78b0c8"/></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="mark.phtml" hash="49b022bdb40ed3aaf8055e05a0e725f3"/><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/></dir><dir name="info"><file name="info.phtml" hash="0fd23136fccb26bc8dca3f5a2476791e"/><dir name="pdf"><file name="info.phtml" hash="5782769a75900a3aecae1e4e0f78b0c8"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magnimeiosgateway.xml" hash="dfceba032c2112335d3de7a876c151c0"/></dir><dir name="template"><dir name="magnimeiosgateway"><dir name="checkout"><file name="success.phtml" hash="890651282fa0b4d1cbdeaabbce67e5ce"/></dir><dir name="form"><file name="form.phtml" hash="357405fda2c5827381cba52f1871c4d8"/><file name="mark.phtml" hash="03422e879309c75a1bc407f202a44ff1"/></dir><dir name="info"><file name="info.phtml" hash="c9abacb184a9f75fb32a5a8e268a2470"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magnimeios_Magnimeiosgateway.xml" hash="bf2c21eae3198cddf69ab496cb29443f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
+ <version>2.3.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Metodo de pagamento atrav&#xE9;s da gera&#xE7;&#xE3;o refer&#xEA;ncias Multibanco e payshop e com sistema callback.</description>
11
  <notes>Novo sistema de callback</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
+ <date>2015-08-24</date>
14
+ <time>14:33:40</time>
15
+ <contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><dir name="Checkout"><dir name="Info"><file name="LusopayMBPS.php" hash="b6274051d8914c43fddfa8d9572e2557"/><file name="LusopayMBPS.php" hash="b6274051d8914c43fddfa8d9572e2557"/></dir><file name="Success.php" hash="5be6c37d01bbefbefe888c22166c1e77"/><file name="Success.php" hash="5be6c37d01bbefbefe888c22166c1e77"/></dir><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/></dir><dir name="Helper"><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/></dir><dir name="Model"><file name="AtivarCallback.php" hash="01db9f3b75f892c68b0343b3c6f39ec9"/><dir name="Convert"><file name="Order.php" hash="4db18a43bb43a11690141dbaa8ed5799"/><file name="Quote.php" hash="2741e8f49ea614e099296a8df8318377"/><file name="Order.php" hash="4db18a43bb43a11690141dbaa8ed5799"/><file name="Quote.php" hash="2741e8f49ea614e099296a8df8318377"/></dir><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><dir name="Mysql4"><file name="Setup.php" hash="99eb9cd753f0d2f58f3eb3c8ee3c6ff4"/><file name="Setup.php" hash="99eb9cd753f0d2f58f3eb3c8ee3c6ff4"/></dir><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/><file name="AtivarCallback.php" hash="01db9f3b75f892c68b0343b3c6f39ec9"/><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="8ff06b08f503b8d33be245f9a6e46dcc"/><file name="CallbackController.php" hash="8ff06b08f503b8d33be245f9a6e46dcc"/></dir><dir name="etc"><file name="config.xml" hash="b9889df610085bb5999d9baf54d11616"/><file name="system.xml" hash="8c12150a0d33977951836bd63b3268c4"/><file name="config.xml" hash="b9889df610085bb5999d9baf54d11616"/><file name="system.xml" hash="8c12150a0d33977951836bd63b3268c4"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.5.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.1.0.php" hash=""/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/><file name="mark.phtml" hash="49b022bdb40ed3aaf8055e05a0e725f3"/></dir><dir name="info"><file name="info.phtml" hash="d07b20ae60559a61b2c8f314816da303"/><dir name="pdf"><file name="info.phtml" hash="5782769a75900a3aecae1e4e0f78b0c8"/></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="mark.phtml" hash="49b022bdb40ed3aaf8055e05a0e725f3"/><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/></dir><dir name="info"><file name="info.phtml" hash="0fd23136fccb26bc8dca3f5a2476791e"/><dir name="pdf"><file name="info.phtml" hash="5782769a75900a3aecae1e4e0f78b0c8"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magnimeiosgateway.xml" hash="dfceba032c2112335d3de7a876c151c0"/></dir><dir name="template"><dir name="magnimeiosgateway"><dir name="checkout"><file name="success.phtml" hash="890651282fa0b4d1cbdeaabbce67e5ce"/></dir><dir name="form"><file name="form.phtml" hash="357405fda2c5827381cba52f1871c4d8"/><file name="mark.phtml" hash="03422e879309c75a1bc407f202a44ff1"/></dir><dir name="info"><file name="info.phtml" hash="c9abacb184a9f75fb32a5a8e268a2470"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magnimeios_Magnimeiosgateway.xml" hash="bf2c21eae3198cddf69ab496cb29443f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>