Lusopay_LusopayGateway - Version 2.3.13

Version Notes

Fix a checkout validation error.

Download this release

Release Info

Developer Lusopay
Extension Lusopay_LusopayGateway
Version 2.3.13
Comparing to
See all releases


Code changes from version 2.3.11 to 2.3.13

app/code/local/Magnimeios/Magnimeiosgateway/Model/GerarRef.php CHANGED
@@ -6,7 +6,7 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
6
  protected $_paymentMethod = 'magnimeiosgateway';
7
  protected $_formBlockType = 'magnimeiosgateway/form';
8
  protected $_infoBlockType = 'magnimeiosgateway/info';
9
- protected $_allowCurrencyCode = array('EUR');
10
 
11
 
12
  protected $_isGateway = false;
@@ -338,7 +338,7 @@ $ch = curl_init();
338
  if ($order_value >= 999999.99) {
339
  Mage::throwException(Mage::helper('magnimeiosgateway')->__('O valor excede o limite para pagamento na rede MB e PS'));
340
  }
341
- $currency_code = $this->getQuote()->getBaseCurrencyCode();
342
  //var_dump($currency_code);
343
  //die();
344
  if ($currency_code != $this->_allowCurrencyCode) {
6
  protected $_paymentMethod = 'magnimeiosgateway';
7
  protected $_formBlockType = 'magnimeiosgateway/form';
8
  protected $_infoBlockType = 'magnimeiosgateway/info';
9
+ protected $_allowCurrencyCode = 'EUR';
10
 
11
 
12
  protected $_isGateway = false;
338
  if ($order_value >= 999999.99) {
339
  Mage::throwException(Mage::helper('magnimeiosgateway')->__('O valor excede o limite para pagamento na rede MB e PS'));
340
  }
341
+ $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
342
  //var_dump($currency_code);
343
  //die();
344
  if ($currency_code != $this->_allowCurrencyCode) {
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lusopay_LusopayGateway</name>
4
- <version>2.3.11</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>Fix a checkout validattion error.</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
- <date>2016-07-27</date>
14
- <time>18:08:52</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="dd57b33ca0738ebb1058848ef803daa2"/><file name="Success.php" hash="dd57b33ca0738ebb1058848ef803daa2"/></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="06baadb5cf7fa25b02eebb4c859455da"/><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="1bdab933c68c70cd6f4eb176497c253e"/><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="06baadb5cf7fa25b02eebb4c859455da"/><file name="GerarRef.php" hash="1bdab933c68c70cd6f4eb176497c253e"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="e94435a06dd1e167ee361bbe20194525"/><file name="CallbackController.php" hash="e94435a06dd1e167ee361bbe20194525"/></dir><dir name="etc"><file name="config.xml" hash="e838cbc844c395f767fe0c8d6d2db058"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/><file name="config.xml" hash="e838cbc844c395f767fe0c8d6d2db058"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.10.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.3.10.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="6567bc3f8febc51bdcb97b0c0791b094"/></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.13</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>Fix a checkout validation error.</notes>
12
  <authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
13
+ <date>2016-07-29</date>
14
+ <time>17:57:37</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="dd57b33ca0738ebb1058848ef803daa2"/><file name="Success.php" hash="dd57b33ca0738ebb1058848ef803daa2"/></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="06baadb5cf7fa25b02eebb4c859455da"/><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="37dcbcbb5d28eaa9fcf4f118a9c57e78"/><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="06baadb5cf7fa25b02eebb4c859455da"/><file name="GerarRef.php" hash="37dcbcbb5d28eaa9fcf4f118a9c57e78"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="controllers"><file name="CallbackController.php" hash="e94435a06dd1e167ee361bbe20194525"/><file name="CallbackController.php" hash="e94435a06dd1e167ee361bbe20194525"/></dir><dir name="etc"><file name="config.xml" hash="e838cbc844c395f767fe0c8d6d2db058"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/><file name="config.xml" hash="e838cbc844c395f767fe0c8d6d2db058"/><file name="system.xml" hash="ae1d79bdfcaafbcd59d90342cc4cd312"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.3.10.php" hash="3bd68c1602cbd1b60ecb860af582bb81"/><file name="mysql4-install-2.3.10.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="6567bc3f8febc51bdcb97b0c0791b094"/></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>