Lusopay_LusopayGateway - Version 2.3.8

Version Notes

Checkout fix some bugs.

Download this release

Release Info

Developer Lusopay
Extension Lusopay_LusopayGateway
Version 2.3.8
Comparing to
See all releases


Code changes from version 2.3.7 to 2.3.8

app/code/local/Magnimeios/Magnimeiosgateway/Block/Checkout/Success.php CHANGED
@@ -50,7 +50,7 @@ class Magnimeios_Magnimeiosgateway_Block_Checkout_Success extends Mage_Checkout_
50
 
51
  $tabela ='
52
  <div align="center">
53
- <table cellpadding="3" width="300px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;'.$showMB.'">
54
  <tr>
55
  <td style="font-size: x-small; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
56
  </tr>
@@ -76,7 +76,7 @@ class Magnimeios_Magnimeiosgateway_Block_Checkout_Success extends Mage_Checkout_
76
  </tr>
77
  </table>';
78
 
79
- $tabela.='<table cellpadding="3" width="300px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC; '.$showPS.'">
80
  <tr>
81
  <td style="font-size: x-small; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
82
  </tr>
50
 
51
  $tabela ='
52
  <div align="center">
53
+ <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;'.$showMB.'">
54
  <tr>
55
  <td style="font-size: x-small; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
56
  </tr>
76
  </tr>
77
  </table>';
78
 
79
+ $tabela.='<table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC; '.$showPS.'">
80
  <tr>
81
  <td style="font-size: x-small; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
82
  </tr>
app/code/local/Magnimeios/Magnimeiosgateway/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
- <version>2.3.7</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
@@ -133,7 +133,7 @@
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>
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
+ <version>2.3.8</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
133
  <specificcountry>PT</specificcountry>
134
  <chave></chave>
135
  <nif></nif>
136
+ <mensagem>Aviso: Na página seguinte poderá ver 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.3.7.php → mysql4-install-2.3.8.php} RENAMED
File without changes
app/design/frontend/base/default/template/magnimeiosgateway/info/info.phtml CHANGED
@@ -1,102 +1,3 @@
1
  <?php
2
 
3
- //Get Referencias
4
- $referencias = $this->htmlEscape($this->getInfo()->getMagnimeiosReferencia());
5
-
6
- if(!is_null($referencias)){
7
-
8
- $re1='.*?'; # Non-greedy match on filler
9
- $re2='(\\d+)'; # Integer Number 1
10
- $re3='.*?'; # Non-greedy match on filler
11
- $re4='(\\d+)'; # Integer Number 2
12
-
13
- if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $referencias, $matches))
14
- {
15
- $int1=$matches[1][0];
16
- $int2=$matches[2][0];
17
- }
18
-
19
- if ($int1 == '1'){
20
- $showPS = 'display:none';
21
- $int1='';
22
- }
23
- else{
24
- $showPS = '';
25
- $int1 = substr($int1,0,3).' '.substr($int1,3,3).' '.substr($int1,6,3).' '.substr($int1,9,3).' '.substr($int1,12,1);
26
- }
27
-
28
- if ($int2 == '1'){
29
- $showMB = 'display:none';
30
- $int2='';
31
- }
32
- else{
33
- $showMB = '';
34
- $int2 = substr($int2,0,3).' '.substr($int2,3,3).' '.substr($int2,6,3);
35
- }
36
-
37
-
38
- ?>
39
-
40
-
41
-
42
- <div align="center">
43
- <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showMB;?> !important;">
44
- <tbody><tr>
45
- <td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
46
- </tr>
47
- <tr>
48
- <td rowspan="4"><div align="center"><img src="https://www.lusopay.com/App_Files/cms/documents/images/Logo_Lusopay_MB125x80px.png" alt=""></div></td>
49
- <td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
50
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
51
- </tr>
52
- <tr>
53
- <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
54
- <td style="font-size: x-small; text-align:left"><span><?php echo $int2 ?></span></td>
55
- </tr>
56
- <tr>
57
- <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
58
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
59
- </tr>
60
- <tr>
61
- <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
62
- <td style="font-size: x-small; text-align:left">&nbsp;</td>
63
- </tr>
64
- <tr>
65
- <td style="font-size: xx-small;border-top: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>O tal&atilde;o emitido pela caixa autom&aacute;tica faz prova de pagamento. Conserve-o.</center></td>
66
- </tr>
67
- </tbody></table>
68
-
69
-
70
-
71
-
72
- <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showPS;?> !important;">
73
- <tbody>
74
- <tr>
75
- <td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
76
- </tr>
77
- <tr>
78
- <td rowspan="4"><div align="center"><img src="https://www.lusopay.com/App_Files/cms/documents/images/Logo_Lusopay_Payshop125x80px.png" alt=""></div></td>
79
- </tr>
80
- <tr>
81
- <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
82
- <td style="font-size: x-small; text-align:left"><span><?php echo $int1 ?></span></td>
83
- </tr>
84
- <tr>
85
- <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
86
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
87
- </tr>
88
- <tr>
89
- <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
90
- <td style="font-size: x-small; text-align:left">&nbsp;</td>
91
- </tr>
92
- <tr>
93
- <td style="font-size: xx-small;border-top: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>O tal&atilde;o emitido faz prova de pagamento. Conserve-o.</center></td>
94
- </tr>
95
- </tbody></table>
96
-
97
- </div>
98
-
99
- <?php }
100
- else{
101
- echo "A geração da referencia falhou";
102
- }
1
  <?php
2
 
3
+ echo $this->escapeHtml($this->getMethod()->getTitle());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
- <version>2.3.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Pagamentos por Multibanco e / ou Payshop (by LUSOPAY)</summary>
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 and fix some bugs.</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
- <date>2015-10-28</date>
14
- <time>17:59:36</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="caeff85e2e65d62ddfb2ad81b25ee04c"/><file name="Success.php" hash="caeff85e2e65d62ddfb2ad81b25ee04c"/></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="5dfdfc743e6df8b61971a57b0e7f13d5"/><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="5dfdfc743e6df8b61971a57b0e7f13d5"/><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="11898193409f2f5a8f6dba30e7ee5a80"/><file name="CallbackController.php" hash="11898193409f2f5a8f6dba30e7ee5a80"/></dir><dir name="etc"><file name="config.xml" hash="6bb83c32e5655cb40ad67b60a24bf799"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/><file name="config.xml" hash="6bb83c32e5655cb40ad67b60a24bf799"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.7.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.3.7.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="7566e5cbe052d86ad84398e3390db256"/></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.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Pagamentos por Multibanco e / ou Payshop (by LUSOPAY)</summary>
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>Checkout fix some bugs.</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
+ <date>2015-11-03</date>
14
+ <time>17:05:45</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="fa07c735cb0de8c6cd0c0344a6d62b31"/><file name="Success.php" hash="fa07c735cb0de8c6cd0c0344a6d62b31"/></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="5dfdfc743e6df8b61971a57b0e7f13d5"/><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="5dfdfc743e6df8b61971a57b0e7f13d5"/><file name="GerarRef.php" hash="6254717ad1913cc4e6392b33cc50c919"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="11898193409f2f5a8f6dba30e7ee5a80"/><file name="CallbackController.php" hash="11898193409f2f5a8f6dba30e7ee5a80"/></dir><dir name="etc"><file name="config.xml" hash="a0565b66133c6896df6463a22c5ebfbd"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/><file name="config.xml" hash="a0565b66133c6896df6463a22c5ebfbd"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.8.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.3.8.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="c36439370098a1327653c155edc23c3e"/></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>