Compropago_Payment_Extension - Version 2.0.1

Version Notes

* Bug: Correct GrandTotal order validation for providers

Download this release

Release Info

Developer Eduardo Aguilar
Extension Compropago_Payment_Extension
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/community/Compropago/CpPayment/Model/Standard.php CHANGED
@@ -259,12 +259,9 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
259
  (int)trim($this->getConfigData('compropago_mode')) == 1 ? true : false
260
  );
261
 
262
- $sessionCheckout = Mage::getSingleton('checkout/session');
263
- $quoteId = $sessionCheckout->getQuoteId();
264
- $quote = Mage::getSingleton('checkout/session')->getQuote($quoteId);
265
- $orderId = $quote->getReservedOrderId();
266
- $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
267
- $grandTotal = (float)$order->getBaseGrandTotal();
268
 
269
  $providers = $client->api->listProviders(false, $grandTotal);
270
  $filter = explode(',', $this->getConfigData('compropago_provider_available'));
259
  (int)trim($this->getConfigData('compropago_mode')) == 1 ? true : false
260
  );
261
 
262
+ $quote = Mage::getModel('checkout/session')->getQuote();
263
+ $quoteData = $quote->getData();
264
+ $grandTotal = $quoteData['grand_total'];
 
 
 
265
 
266
  $providers = $client->api->listProviders(false, $grandTotal);
267
  $filter = explode(',', $this->getConfigData('compropago_provider_available'));
package.xml CHANGED
@@ -1,26 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Con ComproPago puede recibir pagos en OXXO, 7Eleven y muchas tiendas m&#xE1;s en todo M&#xE9;xico.</summary>
10
  <description>Con ComproPago puede recibir pagos en OXXO, 7Eleven y muchas tiendas m&#xE1;s en todo M&#xE9;xico.</description>
11
- <notes>* Feature: Auto register webhook&#xD;
12
- * Feature: Error Message in admin configuration&#xD;
13
- * Feature: Providers filter by amount&#xD;
14
- * Feature: Restructure view styles&#xD;
15
- * Feature: Add option for logo title&#xD;
16
- * Feature: Add transaction tables for manage webhoo aprovations&#xD;
17
- * Remove: Compropago_Model_Api file&#xD;
18
- * Require: compropago/php-sdk == 2.0.0&#xD;
19
- * Require: PHP &gt;= 5.5</notes>
20
  <authors><author><name>Eduardo Aguilar</name><user>eduardoay</user><email>eduardo.aguilar@compropago.com</email></author></authors>
21
- <date>2016-09-19</date>
22
- <time>21:53:08</time>
23
- <contents><target name="mageetc"><dir name="modules"><file name="Compropago_CpPayment.xml" hash="39b519aeecb171cb993e0ee4e064f29a"/></dir></target><target name="magecommunity"><dir name="Compropago"><dir name="CpPayment"><dir name="Block"><file name="Form.php" hash="fedfa50d8860395445eec7e4def4df7d"/><file name="Info.php" hash="d34706306b26afc91b7b0190edbe73a0"/></dir><dir name="Helper"><file name="Data.php" hash="0ae647f79d66d82cc976408c120fcbb6"/></dir><dir name="Model"><file name="Observer.php" hash="240cb5799b8ed42ff62f7f43e14c648f"/><file name="Providers.php" hash="57bbb11a08f26afa92a98ca0dd9f940b"/><file name="Standard.php" hash="286659ecd4d3885d1413c3f09cef24e2"/></dir><dir name="controllers"><file name="IndexController.php" hash="8af99d32644ec954a379d81ce83de40f"/></dir><dir name="etc"><file name="config.xml" hash="7622826b2a16b5c09a01892d06f11a91"/><file name="system.xml" hash="8a96aa67ae243dfb980fefb94066143a"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cppayment.xml" hash="aadfc4eed58b61274c257d022363e0bb"/></dir><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="cash.phtml" hash="0e7120d90e0953f3f5082566117bc0c8"/><file name="info.phtml" hash="717385b1db73eed01c81e64e8dafb0a6"/><file name="mark.phtml" hash="4eb1668734994184ea2a2f10c9bf8e13"/><file name="success.phtml" hash="1292183b370d80bddf50b67b9b8f13f0"/><file name=".DS_Store" hash="6d26a77bb0aa1f0b0471ffbeb4126011"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Compropago"><file name="composer.json" hash="dab35a4840258d689c577eb8cf794d42"/><file name="composer.lock" hash="fdd74ce238a9714a54279d54dc0d2636"/><dir name="vendor"><file name="autoload.php" hash="c4fa9e42a8d841ae2cddcbcf89a446db"/><dir name="composer"><file name="ClassLoader.php" hash="c67ebce5ff31e99311ceb750202adf2e"/><file name="LICENSE" hash="9b01fc9e0129adc080344653fbcbbc0f"/><file name="autoload_classmap.php" hash="8ff8ebb2cf9435efd25aa5e5b169c2ce"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="df81fdf7f6a94668dcd14ba4c5d3b008"/><file name="autoload_static.php" hash="e1591ba8ceab49896e43e946d5b00e2c"/><file name="installed.json" hash="3a67acfde9844ca6b08b47eae498179d"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="7bc84067e94660d27d4acc1f6028b3aa"/><dir name="CompropagoSdk"><file name="Client.php" hash="9d318d40070a1e8cc7fff47801779af2"/><dir name="Extern"><file name="TransactTables.php" hash="c269cb4e56992a3679fdfa144646c209"/></dir><dir name="Factory"><dir name="Abs"><file name="CpOrderInfo.php" hash="2c07014273cb94f916e5bd24f04b456b"/><file name="FeeDetails.php" hash="470a7d254a7893de41e5a85d77680638"/><file name="InstrcutionDetails.php" hash="b403951cdc3992c33ef118d811315ab9"/><file name="Instructions.php" hash="8df175ea9cc84f432fc1a8a8c6884fe0"/><file name="NewOrderInfo.php" hash="b5e9edbc3b0fbbb841c1bf683effe056"/><file name="OrderInfo.php" hash="2e3615d2f9f44f82e2c3579b50c99463"/><file name="SmsInfo.php" hash="1de7ba73a2d94f9ab60117ff73d7f4e2"/></dir><file name="Factory.php" hash="d3c3a9880c9063c69449a350e0e6e796"/><dir name="Json"><file name="Serialize.php" hash="0c3068b84f4242d5e3318f07d678908b"/></dir><dir name="V10"><file name="CpObject.php" hash="aeab5d5b62b142537c338c4edf11b855"/><file name="CpOrderInfo10.php" hash="6ee8dba52eb288a6d00f1b98aa56521e"/><file name="Data.php" hash="16e9998838e08f7d66cf2a4875e76655"/><file name="FeeDetails10.php" hash="649dfd75195b07d4de4db39b2809c60a"/><file name="InstructionDetails10.php" hash="43c2fa8533dd921ba45023d966d3485e"/><file name="Instructions10.php" hash="39d9857eac6c8ee3d52aeb2335e17eef"/><file name="NewOrderInfo10.php" hash="724bc0bdf5e3df77d06cecf7f44fdabc"/><file name="OrderInfo10.php" hash="ff27c66305435fa1413505b6c63d877a"/><file name="PaymentDetails.php" hash="e5bd6a8644dea836d6ce661b58c7c291"/><file name="ProductInformation.php" hash="c63c71f33f5e82ac4136e43d126886b6"/><file name="SmsInfo10.php" hash="e336b1735000708b34ef069c307e21a5"/><file name="SmsPayment.php" hash="bb476340a02cd0d979d8c1ca9ed2671e"/></dir><dir name="V11"><file name="CpOrderInfo11.php" hash="37966497a5a0e98f77094f4570dab9e9"/><file name="FeeDetails11.php" hash="72784fe03e2df00ade0440a814e2f031"/><file name="InstructionDetails11.php" hash="6b544c61195feb3c83a195cd0436835d"/><file name="Instructions11.php" hash="6e777291658e22eecd6e1521287763cc"/><file name="NewOrderInfo11.php" hash="80b2320107ae4c89d14516a62f4503ec"/><file name="OrderInfo11.php" hash="dacab3cf478582d45254064badb7c801"/><file name="SmsData.php" hash="1fbd65a4f8ea70be3a7844509deb1fb2"/><file name="SmsInfo11.php" hash="79ce17cad0a8870c7948214d1ea6a9b9"/><file name="SmsObject.php" hash="a2493d08bbdfe962ae61144716e6b433"/></dir></dir><dir name="Models"><file name="Customer.php" hash="949b434172aa9efd028101767ad96575"/><file name="EvalAuthInfo.php" hash="8f9c57b28515ec30a57ff26f94b9136b"/><file name="PlaceOrderInfo.php" hash="afccd7fa2297f0cfe96cdd1252050551"/><file name="Provider.php" hash="f07d2287187bb45ed79dded7492d5a29"/><file name="Webhook.php" hash="5ddc7281b09b168ffae75a7845a11b6c"/><file name="WebhookError.php" hash="738c1eb4586224eaa65195b229f90fe3"/></dir><file name="Service.php" hash="359985d2695d0db44a83cf25b7d4557d"/><dir name="Tools"><file name="Http.php" hash="19f223dc631cf9bba116d1ee5fe132ff"/><file name="Rest.php" hash="9cadea65cb89c33c7fd5a08f445949cf"/><file name="Validations.php" hash="c454beb05f2f1bd584f82e94c767703e"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="8238cd3a10ad81c7170563ae602a80cb"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="9dbf37e3538be36082c2f0c8dcd4fcea"/><file name="composer.json" hash="acbda0f6db41070fe890eeb26686fbbf"/><file name=".gitignore" hash="736ed715b5cef5267757d98de045d736"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="cppayment"><file name="compropago-logo.png" hash="2a3e98095b5c9df0669b7dc70f0682cd"/><file name="gitmerge.gif" hash="31c57faf2960d93d98e9d39bd71df00b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="compropago"><file name="compropago.css" hash="5a4b5271ef09e42b63eaeabb73d7d9e8"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="compropago"><file name="compropago.js" hash="ffdf6e940b91554944656fff2cbdb6c5"/></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>curl</name><min>5.0.0</min><max>8.0.0</max></extension><extension><name>json</name><min>1.0.0</min><max>1.3.9</max></extension></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
+ <version>2.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Con ComproPago puede recibir pagos en OXXO, 7Eleven y muchas tiendas m&#xE1;s en todo M&#xE9;xico.</summary>
10
  <description>Con ComproPago puede recibir pagos en OXXO, 7Eleven y muchas tiendas m&#xE1;s en todo M&#xE9;xico.</description>
11
+ <notes>* Bug: Correct GrandTotal order validation for providers</notes>
 
 
 
 
 
 
 
 
12
  <authors><author><name>Eduardo Aguilar</name><user>eduardoay</user><email>eduardo.aguilar@compropago.com</email></author></authors>
13
+ <date>2016-09-27</date>
14
+ <time>17:17:35</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Compropago_CpPayment.xml" hash="39b519aeecb171cb993e0ee4e064f29a"/></dir></target><target name="magecommunity"><dir name="Compropago"><dir name="CpPayment"><dir name="Block"><file name="Form.php" hash="fedfa50d8860395445eec7e4def4df7d"/><file name="Info.php" hash="d34706306b26afc91b7b0190edbe73a0"/></dir><dir name="Helper"><file name="Data.php" hash="0ae647f79d66d82cc976408c120fcbb6"/></dir><dir name="Model"><file name="Observer.php" hash="240cb5799b8ed42ff62f7f43e14c648f"/><file name="Providers.php" hash="57bbb11a08f26afa92a98ca0dd9f940b"/><file name="Standard.php" hash="37658d0e09f1bb606d64f0ed6d74f06d"/></dir><dir name="controllers"><file name="IndexController.php" hash="8af99d32644ec954a379d81ce83de40f"/></dir><dir name="etc"><file name="config.xml" hash="7622826b2a16b5c09a01892d06f11a91"/><file name="system.xml" hash="8a96aa67ae243dfb980fefb94066143a"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cppayment.xml" hash="aadfc4eed58b61274c257d022363e0bb"/></dir><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="cash.phtml" hash="0e7120d90e0953f3f5082566117bc0c8"/><file name="info.phtml" hash="717385b1db73eed01c81e64e8dafb0a6"/><file name="mark.phtml" hash="4eb1668734994184ea2a2f10c9bf8e13"/><file name="success.phtml" hash="1292183b370d80bddf50b67b9b8f13f0"/><file name=".DS_Store" hash="6d26a77bb0aa1f0b0471ffbeb4126011"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Compropago"><file name="composer.json" hash="dab35a4840258d689c577eb8cf794d42"/><file name="composer.lock" hash="fdd74ce238a9714a54279d54dc0d2636"/><dir name="vendor"><file name="autoload.php" hash="c4fa9e42a8d841ae2cddcbcf89a446db"/><dir name="composer"><file name="ClassLoader.php" hash="c67ebce5ff31e99311ceb750202adf2e"/><file name="LICENSE" hash="9b01fc9e0129adc080344653fbcbbc0f"/><file name="autoload_classmap.php" hash="8ff8ebb2cf9435efd25aa5e5b169c2ce"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="df81fdf7f6a94668dcd14ba4c5d3b008"/><file name="autoload_static.php" hash="e1591ba8ceab49896e43e946d5b00e2c"/><file name="installed.json" hash="3a67acfde9844ca6b08b47eae498179d"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="7bc84067e94660d27d4acc1f6028b3aa"/><dir name="CompropagoSdk"><file name="Client.php" hash="9d318d40070a1e8cc7fff47801779af2"/><dir name="Extern"><file name="TransactTables.php" hash="c269cb4e56992a3679fdfa144646c209"/></dir><dir name="Factory"><dir name="Abs"><file name="CpOrderInfo.php" hash="2c07014273cb94f916e5bd24f04b456b"/><file name="FeeDetails.php" hash="470a7d254a7893de41e5a85d77680638"/><file name="InstrcutionDetails.php" hash="b403951cdc3992c33ef118d811315ab9"/><file name="Instructions.php" hash="8df175ea9cc84f432fc1a8a8c6884fe0"/><file name="NewOrderInfo.php" hash="b5e9edbc3b0fbbb841c1bf683effe056"/><file name="OrderInfo.php" hash="2e3615d2f9f44f82e2c3579b50c99463"/><file name="SmsInfo.php" hash="1de7ba73a2d94f9ab60117ff73d7f4e2"/></dir><file name="Factory.php" hash="d3c3a9880c9063c69449a350e0e6e796"/><dir name="Json"><file name="Serialize.php" hash="0c3068b84f4242d5e3318f07d678908b"/></dir><dir name="V10"><file name="CpObject.php" hash="aeab5d5b62b142537c338c4edf11b855"/><file name="CpOrderInfo10.php" hash="6ee8dba52eb288a6d00f1b98aa56521e"/><file name="Data.php" hash="16e9998838e08f7d66cf2a4875e76655"/><file name="FeeDetails10.php" hash="649dfd75195b07d4de4db39b2809c60a"/><file name="InstructionDetails10.php" hash="43c2fa8533dd921ba45023d966d3485e"/><file name="Instructions10.php" hash="39d9857eac6c8ee3d52aeb2335e17eef"/><file name="NewOrderInfo10.php" hash="724bc0bdf5e3df77d06cecf7f44fdabc"/><file name="OrderInfo10.php" hash="ff27c66305435fa1413505b6c63d877a"/><file name="PaymentDetails.php" hash="e5bd6a8644dea836d6ce661b58c7c291"/><file name="ProductInformation.php" hash="c63c71f33f5e82ac4136e43d126886b6"/><file name="SmsInfo10.php" hash="e336b1735000708b34ef069c307e21a5"/><file name="SmsPayment.php" hash="bb476340a02cd0d979d8c1ca9ed2671e"/></dir><dir name="V11"><file name="CpOrderInfo11.php" hash="37966497a5a0e98f77094f4570dab9e9"/><file name="FeeDetails11.php" hash="72784fe03e2df00ade0440a814e2f031"/><file name="InstructionDetails11.php" hash="6b544c61195feb3c83a195cd0436835d"/><file name="Instructions11.php" hash="6e777291658e22eecd6e1521287763cc"/><file name="NewOrderInfo11.php" hash="80b2320107ae4c89d14516a62f4503ec"/><file name="OrderInfo11.php" hash="dacab3cf478582d45254064badb7c801"/><file name="SmsData.php" hash="1fbd65a4f8ea70be3a7844509deb1fb2"/><file name="SmsInfo11.php" hash="79ce17cad0a8870c7948214d1ea6a9b9"/><file name="SmsObject.php" hash="a2493d08bbdfe962ae61144716e6b433"/></dir></dir><dir name="Models"><file name="Customer.php" hash="949b434172aa9efd028101767ad96575"/><file name="EvalAuthInfo.php" hash="8f9c57b28515ec30a57ff26f94b9136b"/><file name="PlaceOrderInfo.php" hash="afccd7fa2297f0cfe96cdd1252050551"/><file name="Provider.php" hash="f07d2287187bb45ed79dded7492d5a29"/><file name="Webhook.php" hash="5ddc7281b09b168ffae75a7845a11b6c"/><file name="WebhookError.php" hash="738c1eb4586224eaa65195b229f90fe3"/></dir><file name="Service.php" hash="359985d2695d0db44a83cf25b7d4557d"/><dir name="Tools"><file name="Http.php" hash="19f223dc631cf9bba116d1ee5fe132ff"/><file name="Rest.php" hash="9cadea65cb89c33c7fd5a08f445949cf"/><file name="Validations.php" hash="c454beb05f2f1bd584f82e94c767703e"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="8238cd3a10ad81c7170563ae602a80cb"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="9dbf37e3538be36082c2f0c8dcd4fcea"/><file name="composer.json" hash="acbda0f6db41070fe890eeb26686fbbf"/><file name=".gitignore" hash="736ed715b5cef5267757d98de045d736"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="cppayment"><file name="compropago-logo.png" hash="2a3e98095b5c9df0669b7dc70f0682cd"/><file name="gitmerge.gif" hash="31c57faf2960d93d98e9d39bd71df00b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="compropago"><file name="compropago.css" hash="5a4b5271ef09e42b63eaeabb73d7d9e8"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="compropago"><file name="compropago.js" hash="ffdf6e940b91554944656fff2cbdb6c5"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>curl</name><min>5.0.0</min><max>8.0.0</max></extension><extension><name>json</name><min>1.0.0</min><max>1.3.9</max></extension></required></dependencies>
18
  </package>