Lusopay_LusopayGateway - Version 1.4.0

Version Notes

Versão para magento 1.9

Download this release

Release Info

Developer Lusopay
Extension Lusopay_LusopayGateway
Version 1.4.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.4.0

app/code/local/Magnimeios/Magnimeiosgateway/Model/GerarRef.php CHANGED
@@ -56,7 +56,8 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
56
  $eav_entity_type = Mage::getModel('eav/entity_type')->loadByCode('order');
57
  $eav_entity_store = Mage::getModel('eav/entity_store')->loadByEntityStore($eav_entity_type->getEntityTypeId(), $this->getQuote()->getStoreId());
58
 
59
- $order_id = substr($eav_entity_store->getIncrementLastId() + $eav_entity_type->getIncrementPerStore(), -6, 6);
 
60
 
61
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
62
  $select = $connection->select()->from('magnimeiosreferences', array('*'))->where('id_order=?', $order_id);
@@ -182,7 +183,7 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
182
  }
183
  else
184
  {
185
- echo "entrou aqui update";
186
  $order_value = number_format($this -> getQuote() -> getGrandTotal(),2,'.','');
187
 
188
  $chave = $this->getConfigData('chave');
56
  $eav_entity_type = Mage::getModel('eav/entity_type')->loadByCode('order');
57
  $eav_entity_store = Mage::getModel('eav/entity_store')->loadByEntityStore($eav_entity_type->getEntityTypeId(), $this->getQuote()->getStoreId());
58
 
59
+ //$order_id = substr($eav_entity_store->getIncrementLastId() + $eav_entity_type->getIncrementPerStore(), -6, 6);
60
+ $order_id = $eav_entity_store->getIncrementLastId() + $eav_entity_type->getIncrementPerStore();
61
 
62
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
63
  $select = $connection->select()->from('magnimeiosreferences', array('*'))->where('id_order=?', $order_id);
183
  }
184
  else
185
  {
186
+ //echo "entrou aqui update";
187
  $order_value = number_format($this -> getQuote() -> getGrandTotal(),2,'.','');
188
 
189
  $chave = $this->getConfigData('chave');
app/design/adminhtml/default/default/template/magnimeiosgateway/info/pdf/info.phtml CHANGED
@@ -33,64 +33,28 @@
33
  }
34
 
35
 
36
- ?>
37
 
38
- <div align="center">
39
- <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showMB;?>">
40
- <tbody><tr>
41
- <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>
42
- </tr>
43
- <tr>
44
- <td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_MB125x80px.png" alt=""></div></td>
45
- <td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
46
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
47
- </tr>
48
- <tr>
49
- <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
50
- <td style="font-size: x-small; text-align:left"><span><?php echo $int2 ?></span></td>
51
- </tr>
52
- <tr>
53
- <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
54
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
55
- </tr>
56
- <tr>
57
- <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
58
- <td style="font-size: x-small; text-align:left">&nbsp;</td>
59
- </tr>
60
- <tr>
61
- <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>
62
- </tr>
63
- </tbody></table>
64
-
65
-
66
-
67
-
68
- <table cellpadding="3" width="400px" cellspacing="0" style="margin-top: 10px;border: 1px solid #DCDCDC;<?php echo $showPS;?>">
69
- <tbody>
70
- <tr>
71
- <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>
72
- </tr>
73
- <tr>
74
- <td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_Payshop125x80px.png" alt=""></div></td>
75
- </tr>
76
- <tr>
77
- <td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
78
- <td style="font-size: x-small; text-align:left"><span><?php echo $int1 ?></span></td>
79
- </tr>
80
- <tr>
81
- <td style="font-size: x-small; font-weight:bold; text-align:left">Valor:</td>
82
- <td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?></span></td>
83
- </tr>
84
- <tr>
85
- <td style="font-size: x-small; font-weight:bold; text-align:left">&nbsp;</td>
86
- <td style="font-size: x-small; text-align:left">&nbsp;</td>
87
- </tr>
88
- <tr>
89
- <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>
90
- </tr>
91
- </tbody></table>
92
-
93
- </div>
94
 
95
  <?php }
96
  else{
33
  }
34
 
35
 
36
+ ?>
37
 
38
+ <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>
39
+ {{pdf_row_separator}}
40
+ {{pdf_row_separator}}
41
+ Pagamento por Multibanco (By LUSOPAY)
42
+ {{pdf_row_separator}}
43
+ Entidade: <?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?>
44
+ {{pdf_row_separator}}
45
+ Referência: <?php echo $int2 ?>
46
+ {{pdf_row_separator}}
47
+ Valor: <?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?>
48
+ {{pdf_row_separator}}
49
+ {{pdf_row_separator}}
50
+ {{pdf_row_separator}}
51
+ Pagamento por Payshop (by LUSOPAY)
52
+ {{pdf_row_separator}}
53
+
54
+ Referência: <?php echo $int1 ?>
55
+ {{pdf_row_separator}}
56
+ Valor: <?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosMontante()) . ' EUR' ?>
57
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  <?php }
60
  else{
app/design/frontend/base/default/template/magnimeiosgateway/form/form.phtml CHANGED
@@ -1,6 +1,6 @@
1
  <fieldset class="form-list">
2
  <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
3
- <li><img src="<?php echo $this->getSkinUrl('images/magnimeiosgateway/Logo_Lusopay_MBePayshop125x80px.png') ?>" border="0" /></li>
4
 
5
 
6
  </ul>
1
  <fieldset class="form-list">
2
  <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
3
+
4
 
5
 
6
  </ul>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
- <version>1.1.0</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</description>
11
  <notes>Vers&#xE3;o para magento 1.9</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
- <date>2014-12-30</date>
14
- <time>10:12:39</time>
15
- <contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><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"><dir name="Convert"><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/></dir><file name="GerarRef.php" hash="c182982442edb867697a0d94c1255370"/><dir name="Mysql4"><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/></dir><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/><file name="GerarRef.php" hash="c182982442edb867697a0d94c1255370"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="etc"><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="info"><dir name="pdf"><file name="info.phtml" hash="5080d20a40f627198414bef4d513269f"/></dir><file name="info.phtml" hash="d3797bc60dce649cc1e25154e3e1c521"/></dir><dir name="form"><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="form.phtml" hash="ba48c0bf1ed926fcc742f7e54c939901"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir><dir name="info"><file name="info.phtml" hash="59976f60b5830babf6fb9aba5f41959c"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magnimeios_Magnimeiosgateway.xml" hash="bf2c21eae3198cddf69ab496cb29443f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_256x85px.png" hash="bcc54ae1f8a25cf10f8642a8f91339e2"/><file name="logo.png" hash="c2e0e05d5dd6ac2331020dff60adf696"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_MBePayshop125x80px.png" hash="dbe096eb26c34cf69816b97fb049926b"/><file name="logo.png" hash="ad194614eeee86b5dc1fe688e5a0d573"/></dir></dir></dir></dir></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>1.4.0</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</description>
11
  <notes>Vers&#xE3;o para magento 1.9</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
+ <date>2015-01-09</date>
14
+ <time>12:31:47</time>
15
+ <contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><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"><dir name="Convert"><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/></dir><file name="GerarRef.php" hash="73ef82324092a4f1de160e46404de14f"/><dir name="Mysql4"><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/></dir><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/><file name="GerarRef.php" hash="73ef82324092a4f1de160e46404de14f"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="etc"><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="info"><dir name="pdf"><file name="info.phtml" hash="5782769a75900a3aecae1e4e0f78b0c8"/></dir><file name="info.phtml" hash="d3797bc60dce649cc1e25154e3e1c521"/></dir><dir name="form"><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="form.phtml" hash="6b09c9b3ae7bcbf1ee0d1e30a0e7a494"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir><dir name="info"><file name="info.phtml" hash="59976f60b5830babf6fb9aba5f41959c"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magnimeios_Magnimeiosgateway.xml" hash="bf2c21eae3198cddf69ab496cb29443f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_256x85px.png" hash="bcc54ae1f8a25cf10f8642a8f91339e2"/><file name="logo.png" hash="c2e0e05d5dd6ac2331020dff60adf696"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_MBePayshop125x80px.png" hash="dbe096eb26c34cf69816b97fb049926b"/><file name="logo.png" hash="ad194614eeee86b5dc1fe688e5a0d573"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>