Compropago_Payment_Extension - Version 2.1.1

Version Notes

* Feature: Place correct info in order description and history

Download this release

Release Info

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


Code changes from version 2.1.0 to 2.1.1

app/code/community/Compropago/CpPayment/Model/Standard.php CHANGED
@@ -173,12 +173,14 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
173
  $customer = Mage::getModel('customer/customer');
174
  $customer->setWebsiteId(1);
175
  $customer->loadByEmail($info['customer_email']);
176
-
177
  $orderbyid = Mage::getModel('sales/order')->loadByIncrementId($orderNumber);
178
  $orderbyid->setCustomerId($customer->getId());
179
  $orderbyid->setCustomerFirstname($customer->getFirstname());
180
  $orderbyid->setCustomerLastname($customer->getLastname());
181
  $orderbyid->setCustomerEmail($customer->getEmail());
 
 
182
  $orderbyid->save();
183
 
184
  // Start New Sales Order Quote
@@ -373,4 +375,4 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
373
  }
374
  return $error;
375
  }
376
- }
173
  $customer = Mage::getModel('customer/customer');
174
  $customer->setWebsiteId(1);
175
  $customer->loadByEmail($info['customer_email']);
176
+ $message = 'The user has not completed the payment process yet.';
177
  $orderbyid = Mage::getModel('sales/order')->loadByIncrementId($orderNumber);
178
  $orderbyid->setCustomerId($customer->getId());
179
  $orderbyid->setCustomerFirstname($customer->getFirstname());
180
  $orderbyid->setCustomerLastname($customer->getLastname());
181
  $orderbyid->setCustomerEmail($customer->getEmail());
182
+ $history = $orderbyid->addStatusHistoryComment($message);
183
+ $history->setIsCustomerNotified(true);
184
  $orderbyid->save();
185
 
186
  // Start New Sales Order Quote
375
  }
376
  return $error;
377
  }
378
+ }
app/code/community/Compropago/CpPayment/controllers/IndexController.php CHANGED
@@ -44,7 +44,7 @@ class Compropago_CpPayment_IndexController extends Mage_Core_Controller_Front_Ac
44
  /**
45
  * Se captura la informacion enviada desde compropago
46
  */
47
- $request = @file_get_contents('php://input');
48
 
49
  /**
50
  * Se valida el request y se transforma con la cadena a un objeto de tipo CpOrderInfo con el Factory
@@ -132,8 +132,8 @@ class Compropago_CpPayment_IndexController extends Mage_Core_Controller_Front_Ac
132
  $message = 'The user has not completed the payment process yet.';
133
  $_order->setData('state',$status);
134
  $_order->setStatus($status);
135
- $history = $_order->addStatusHistoryComment($message);
136
- $history->setIsCustomerNotified(false);
137
  $_order->save();
138
  $nomestatus = 'COMPROPAGO_PENDING';
139
  break;
@@ -213,4 +213,4 @@ class Compropago_CpPayment_IndexController extends Mage_Core_Controller_Front_Ac
213
  die($e->getMessage());
214
  }
215
  }
216
- }
44
  /**
45
  * Se captura la informacion enviada desde compropago
46
  */
47
+ $request = @file_get_contents('php://input');
48
 
49
  /**
50
  * Se valida el request y se transforma con la cadena a un objeto de tipo CpOrderInfo con el Factory
132
  $message = 'The user has not completed the payment process yet.';
133
  $_order->setData('state',$status);
134
  $_order->setStatus($status);
135
+ //$history = $_order->addStatusHistoryComment($message);
136
+ //$history->setIsCustomerNotified(true);
137
  $_order->save();
138
  $nomestatus = 'COMPROPAGO_PENDING';
139
  break;
213
  die($e->getMessage());
214
  }
215
  }
216
+ }
app/design/adminhtml/base/default/template/compropago/cppayment/info.phtml ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <p><img src=http://cdn.compropago.com/cp-assets/ui-compropago/logo.svg alt=ComproPago style=height:30px /> </p>
2
+ <p> Compropago Payment Extension </p>
package.xml CHANGED
@@ -1,20 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
- <version>2.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>
8
  <extends/>
9
  <summary>Se agrego currency Exchange</summary>
10
  <description>ComproPago Payment Gateway in Magento</description>
11
- <notes>* Feature: Currency Exchange for USD EUR GBP&#xD;
12
- * Bug-Fix: Conflic resolution in providers selector&#xD;
13
  </notes>
14
  <authors><author><name>Eduardo Aguilar</name><user>eduardoay</user><email>eduardo.aguilar@compropago.com</email></author></authors>
15
- <date>2017-01-18</date>
16
- <time>00:19:23</time>
17
- <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="b6a47c44819519b8aa3764295741646a"/></dir><dir name="controllers"><file name="IndexController.php" hash="e3605b92059940ec96a4bcf5a7b16bb6"/></dir><dir name="etc"><file name="config.xml" hash="4aec58a07b59df2fbbc60d43c575539f"/><file name="system.xml" hash="8a96aa67ae243dfb980fefb94066143a"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/><file name="install-2.1.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="1b226a7e6f65bd591f49345b11b03fac"/><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="bf6638c9ddfed8bcdb7596a5e64d1aca"/><file name="composer.lock" hash="e687ae6c45f73765aa985b4743dfba64"/><dir name="vendor"><file name="autoload.php" hash="4595cb94f03a113906186bff4a8b575b"/><dir name="composer"><file name="ClassLoader.php" hash="d925befc389a2a2d5ecb76b81899d775"/><file name="LICENSE" hash="9b01fc9e0129adc080344653fbcbbc0f"/><file name="autoload_classmap.php" hash="57a1800204f81c8bae5e08dd69479854"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="26c81866f019e3fbca597a361e5bd03b"/><file name="autoload_static.php" hash="8d8f3c1b1b7eb4061be818b8be979820"/><file name="installed.json" hash="3c8dab59a5f4c01e4407209e82ff2ef7"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="bbaebfede967523edfa97b0afc17e6c9"/><dir name="CompropagoSdk"><file name="Client.php" hash="f6ca9200cb74dd4e6b0eec21fd7a1d73"/><dir name="Extern"><file name="TransactTables.php" hash="15176b9e3da1da264c8ed3b25bc95b89"/></dir><dir name="Factory"><file name="Factory.php" hash="7b3ee12649eac6fab670d89b6f3ad124"/><dir name="Models"><file name="CpOrderInfo.php" hash="467a5b7234e392046c042d30ca7c887c"/><file name="Customer.php" hash="063820ab5593af6ca1f5651faefd1f7d"/><file name="EvalAuthInfo.php" hash="f20efd78c8444de1319ffcdff6fe17a6"/><file name="FeeDetails.php" hash="abb7dd814c9406c8b3c3140b49603594"/><file name="InstructionDetails.php" hash="f62a708998cb78b5fadf3ba06c7ff499"/><file name="Instructions.php" hash="d791bb0c351ba5527d2c42052d264d49"/><file name="NewOrderInfo.php" hash="e8e7bea0a47c288cf9e1fd50ff1b789b"/><file name="OrderInfo.php" hash="fd9a05922bcdab2e176cd1058688514e"/><file name="PlaceOrderInfo.php" hash="02a127b6f4ae1f5ee193fedfdafca1e3"/><file name="Provider.php" hash="c45d8402bfcc3b67d7767b597ad6bafb"/><file name="SmsData.php" hash="79485fd7121b5220df4ccc913fe1e8d2"/><file name="SmsInfo.php" hash="53b5d46bc67e9ff9e3e0fb6154bd5b12"/><file name="SmsObject.php" hash="ac4a5eb8cf4c22850e89491544b4506d"/><file name="Webhook.php" hash="8e8f101d6ffe2493e3bdfc4cd2290bec"/></dir><file name="Serialize.php" hash="41e68aa6ba77c60adf5c5e373cdd1cc4"/></dir><file name="Service.php" hash="2b5d7a9c62c70d561662e163b0dc5202"/><dir name="Tools"><file name="Http.php" hash="ae5f0911464eedbb3708d26a8ee04fcf"/><file name="Request.php" hash="6f1942e3fae6fc6ca9821b7c693e35d9"/><file name="Validations.php" hash="db3d42e0abc7855012c52126c69d67ff"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="d8ac1827e879ae5b6bb8c9c87c4b5ba1"/><file name="autoload.php" hash="c43ead2675f0fee011d0a56affd871b5"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="8482e8e4fd34ef47c24bfc6f36ff7796"/><file name="composer.json" hash="19cd4efb372eaca1997cefc9b310545c"/><file name=".gitignore" hash="34ac7e14eb103b0316bf4efc1ddb8bc0"/></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>
18
  <compatible/>
19
- <dependencies><required><php><min>5.5.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
+ <version>2.1.1</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>Se agrego currency Exchange</summary>
10
  <description>ComproPago Payment Gateway in Magento</description>
11
+ <notes>* Feature: Place correct info in order description and history&#xD;
 
12
  </notes>
13
  <authors><author><name>Eduardo Aguilar</name><user>eduardoay</user><email>eduardo.aguilar@compropago.com</email></author></authors>
14
+ <date>2017-01-25</date>
15
+ <time>19:10:53</time>
16
+ <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="c2c427674ea9d94c1a7cfb476dea26e1"/></dir><dir name="controllers"><file name="IndexController.php" hash="4b2c048e6f17d7721298a86baa209fc5"/></dir><dir name="etc"><file name="config.xml" hash="4aec58a07b59df2fbbc60d43c575539f"/><file name="system.xml" hash="8a96aa67ae243dfb980fefb94066143a"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/><file name="install-2.1.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="1b226a7e6f65bd591f49345b11b03fac"/><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><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="info.phtml" hash="cef0629238404e0441a56af1d072ba82"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Compropago"><file name="composer.json" hash="bf6638c9ddfed8bcdb7596a5e64d1aca"/><file name="composer.lock" hash="e687ae6c45f73765aa985b4743dfba64"/><dir name="vendor"><file name="autoload.php" hash="4595cb94f03a113906186bff4a8b575b"/><dir name="composer"><file name="ClassLoader.php" hash="d925befc389a2a2d5ecb76b81899d775"/><file name="LICENSE" hash="9b01fc9e0129adc080344653fbcbbc0f"/><file name="autoload_classmap.php" hash="57a1800204f81c8bae5e08dd69479854"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="26c81866f019e3fbca597a361e5bd03b"/><file name="autoload_static.php" hash="8d8f3c1b1b7eb4061be818b8be979820"/><file name="installed.json" hash="3c8dab59a5f4c01e4407209e82ff2ef7"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="bbaebfede967523edfa97b0afc17e6c9"/><dir name="CompropagoSdk"><file name="Client.php" hash="f6ca9200cb74dd4e6b0eec21fd7a1d73"/><dir name="Extern"><file name="TransactTables.php" hash="15176b9e3da1da264c8ed3b25bc95b89"/></dir><dir name="Factory"><file name="Factory.php" hash="7b3ee12649eac6fab670d89b6f3ad124"/><dir name="Models"><file name="CpOrderInfo.php" hash="467a5b7234e392046c042d30ca7c887c"/><file name="Customer.php" hash="063820ab5593af6ca1f5651faefd1f7d"/><file name="EvalAuthInfo.php" hash="f20efd78c8444de1319ffcdff6fe17a6"/><file name="FeeDetails.php" hash="abb7dd814c9406c8b3c3140b49603594"/><file name="InstructionDetails.php" hash="f62a708998cb78b5fadf3ba06c7ff499"/><file name="Instructions.php" hash="d791bb0c351ba5527d2c42052d264d49"/><file name="NewOrderInfo.php" hash="e8e7bea0a47c288cf9e1fd50ff1b789b"/><file name="OrderInfo.php" hash="fd9a05922bcdab2e176cd1058688514e"/><file name="PlaceOrderInfo.php" hash="02a127b6f4ae1f5ee193fedfdafca1e3"/><file name="Provider.php" hash="c45d8402bfcc3b67d7767b597ad6bafb"/><file name="SmsData.php" hash="79485fd7121b5220df4ccc913fe1e8d2"/><file name="SmsInfo.php" hash="53b5d46bc67e9ff9e3e0fb6154bd5b12"/><file name="SmsObject.php" hash="ac4a5eb8cf4c22850e89491544b4506d"/><file name="Webhook.php" hash="8e8f101d6ffe2493e3bdfc4cd2290bec"/></dir><file name="Serialize.php" hash="41e68aa6ba77c60adf5c5e373cdd1cc4"/></dir><file name="Service.php" hash="2b5d7a9c62c70d561662e163b0dc5202"/><dir name="Tools"><file name="Http.php" hash="ae5f0911464eedbb3708d26a8ee04fcf"/><file name="Request.php" hash="6f1942e3fae6fc6ca9821b7c693e35d9"/><file name="Validations.php" hash="db3d42e0abc7855012c52126c69d67ff"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="d8ac1827e879ae5b6bb8c9c87c4b5ba1"/><file name="autoload.php" hash="c43ead2675f0fee011d0a56affd871b5"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="8482e8e4fd34ef47c24bfc6f36ff7796"/><file name="composer.json" hash="19cd4efb372eaca1997cefc9b310545c"/><file name=".gitignore" hash="34ac7e14eb103b0316bf4efc1ddb8bc0"/></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>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.5.0</min><max>8.0.0</max></php></required></dependencies>
19
  </package>