Lusopay_LusopayGateway - Version 2.3.9

Version Notes

Checkout fix some bugs and in history client.

Download this release

Release Info

Developer Lusopay
Extension Lusopay_LusopayGateway
Version 2.3.9
Comparing to
See all releases


Code changes from version 2.3.8 to 2.3.9

app/code/local/Magnimeios/Magnimeiosgateway/Model/GerarRef.php CHANGED
@@ -101,7 +101,7 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
101
  </pay:References>
102
  </tem:valueList>
103
  <!--Optional:-->
104
- <tem:sendEmail>true</tem:sendEmail>
105
  </tem:getNewDynamicReference>
106
  </soapenv:Body>
107
  </soapenv:Envelope>';
@@ -224,7 +224,7 @@ $ch = curl_init();
224
  </pay:References>
225
  </tem:valueList>
226
  <!--Optional:-->
227
- <tem:sendEmail>true</tem:sendEmail>
228
  </tem:getNewDynamicReference>
229
  </soapenv:Body>
230
  </soapenv:Envelope>';
101
  </pay:References>
102
  </tem:valueList>
103
  <!--Optional:-->
104
+ <tem:sendEmail>false</tem:sendEmail>
105
  </tem:getNewDynamicReference>
106
  </soapenv:Body>
107
  </soapenv:Envelope>';
224
  </pay:References>
225
  </tem:valueList>
226
  <!--Optional:-->
227
+ <tem:sendEmail>false</tem:sendEmail>
228
  </tem:getNewDynamicReference>
229
  </soapenv:Body>
230
  </soapenv:Envelope>';
app/code/local/Magnimeios/Magnimeiosgateway/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
- <version>2.3.8</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Magnimeios_Magnimeiosgateway>
5
+ <version>2.3.9</version>
6
  </Magnimeios_Magnimeiosgateway>
7
  </modules>
8
  <frontend>
app/code/local/Magnimeios/Magnimeiosgateway/sql/magnimeiosgateway_setup/{mysql4-install-2.3.8.php → mysql4-install-2.3.9.php} RENAMED
File without changes
app/design/frontend/base/default/template/magnimeiosgateway/info/info.phtml CHANGED
@@ -1,3 +1,121 @@
1
  <?php
2
 
3
- echo $this->escapeHtml($this->getMethod()->getTitle());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ echo $this->escapeHtml($this->getMethod()->getTitle());
4
+ //Get Referencias
5
+ $referencias = $this->htmlEscape($this->getInfo()->getMagnimeiosReferencia());
6
+
7
+ $refs = $this->getInfo()->getMagnimeiosReferencia();
8
+
9
+ $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
10
+ $select = $connection->select()->from('sales_flat_order_payment', array('*'))->where('magnimeios_referencia=?', $refs);
11
+
12
+ $row = $connection->fetchRow($select);
13
+
14
+
15
+ if($row){
16
+ $order_id = $row['entity_id'];
17
+
18
+ if(Mage::getBaseUrl(). 'sales/order/view/order_id/'.$order_id.'/'){
19
+
20
+
21
+ if(!is_null($referencias)){
22
+
23
+ $re1='.*?'; # Non-greedy match on filler
24
+ $re2='(\\d+)'; # Integer Number 1
25
+ $re3='.*?'; # Non-greedy match on filler
26
+ $re4='(\\d+)'; # Integer Number 2
27
+
28
+ if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $referencias, $matches))
29
+ {
30
+ $int1=$matches[1][0];
31
+ $int2=$matches[2][0];
32
+ }
33
+
34
+
35
+ if ($int1 == '1'){
36
+ $showPS = 'display:none;';
37
+ $int1='';
38
+ }
39
+ else{
40
+ $showPS = '';
41
+ $int1 = substr($int1,0,3).' '.substr($int1,3,3).' '.substr($int1,6,3).' '.substr($int1,9,3).' '.substr($int1,12,1);
42
+ }
43
+
44
+ if ($int2 == '1'){
45
+ $showMB = 'display:none;';
46
+ $int2='';
47
+ }
48
+ else{
49
+ $showMB = '';
50
+ $int2 = substr($int2,0,3).' '.substr($int2,3,3).' '.substr($int2,6,3);
51
+ }
52
+
53
+
54
+ ?>
55
+
56
+
57
+
58
+ <div align="center">
59
+ <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showMB; ?>">
60
+ <tbody><tr>
61
+ <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>
62
+ </tr>
63
+ <tr>
64
+ <td rowspan="4"><div align="center"><img src="https://www.lusopay.com/App_Files/cms/documents/images/Logo_Lusopay_MB125x80px.png" alt=""></div></td>
65
+ <td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
66
+ <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
67
+ </tr>
68
+ <tr>
69
+ <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
70
+ <td style="font-size: x-small; text-align:left"><span><?php echo $int2 ?></span></td>
71
+ </tr>
72
+ <tr>
73
+ <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
74
+ <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
75
+ </tr>
76
+ <tr>
77
+ <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
78
+ <td style="font-size: x-small; text-align:left">&nbsp;</td>
79
+ </tr>
80
+ <tr>
81
+ <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>
82
+ </tr>
83
+ </tbody></table>
84
+
85
+
86
+
87
+
88
+ <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showPS; ?>">
89
+ <tbody>
90
+ <tr>
91
+ <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>
92
+ </tr>
93
+ <tr>
94
+ <td rowspan="4"><div align="center"><img src="https://www.lusopay.com/App_Files/cms/documents/images/Logo_Lusopay_Payshop125x80px.png" alt=""></div></td>
95
+ </tr>
96
+ <tr>
97
+ <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
98
+ <td style="font-size: x-small; text-align:left"><span><?php echo $int1 ?></span></td>
99
+ </tr>
100
+ <tr>
101
+ <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
102
+ <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
103
+ </tr>
104
+ <tr>
105
+ <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
106
+ <td style="font-size: x-small; text-align:left">&nbsp;</td>
107
+ </tr>
108
+ <tr>
109
+ <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>
110
+ </tr>
111
+ </tbody></table>
112
+
113
+ </div>
114
+
115
+ <?php }
116
+ else{
117
+ echo "A geração da referencia falhou";
118
+ }
119
+
120
+ }
121
+ }
package.xml CHANGED
@@ -1,18 +1,18 @@
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
+ <version>2.3.9</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 and in history client.</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
+ <date>2015-11-05</date>
14
+ <time>14:41:07</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="096b4b1a09168ce00d8c6ba2e4720253"/><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="096b4b1a09168ce00d8c6ba2e4720253"/><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="8570ef76ea3798653d2fa34c3ca55703"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/><file name="config.xml" hash="8570ef76ea3798653d2fa34c3ca55703"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.9.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.3.9.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="e618c37acdd0c8a5caddeb01c64cd835"/></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>