Eximbay - Version 1.0.9

Version Notes

Updated for Cybersource gateway.

Download this release

Release Info

Developer KRPartners Co.,Ltd
Extension Eximbay
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/code/local/Mage/Eximbay/Model/Event.php CHANGED
@@ -146,7 +146,11 @@ class Mage_Eximbay_Model_Event
146
  $this->_createInvoice();
147
  $this->_order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $msg);
148
  // save transaction ID
149
- $this->_order->getPayment()->setLastTransId($this->getEventData('transid'));
 
 
 
 
150
  // send new order email
151
  $this->_order->sendNewOrderEmail();
152
  $this->_order->setEmailSent(true);
@@ -239,7 +243,12 @@ class Mage_Eximbay_Model_Event
239
  Mage::throwException('Secret key is empty.'.$secretKey);
240
  }
241
 
242
- $linkBuf = $secretKey. "?mid=" .$params['mid'] ."&ref=" .$params['ref'] ."&cur=" .$params['cur'] ."&amt=" .$params['amt'] ."&rescode=" .$params['rescode'] ."&transid=" .$params['transid'];
 
 
 
 
 
243
  //$newFgkey = md5($linkBuf);
244
  $newFgkey = hash("sha256", $linkBuf);
245
 
146
  $this->_createInvoice();
147
  $this->_order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $msg);
148
  // save transaction ID
149
+ $transid = $this->getEventData('transid');
150
+ if (empty($transid)){
151
+ $transid = $this->getEventData('requestid');
152
+ }
153
+ $this->_order->getPayment()->setLastTransId($transid);
154
  // send new order email
155
  $this->_order->sendNewOrderEmail();
156
  $this->_order->setEmailSent(true);
243
  Mage::throwException('Secret key is empty.'.$secretKey);
244
  }
245
 
246
+ $suffix = "&transid=" .$params['transid'];
247
+ if (empty($params['transid'])){
248
+ $suffix = "&requestid=" .$params['requestid'];
249
+ }
250
+
251
+ $linkBuf = $secretKey. "?mid=" .$params['mid'] ."&ref=" .$params['ref'] ."&cur=" .$params['cur'] ."&amt=" .$params['amt'] ."&rescode=" .$params['rescode'] .$suffix;
252
  //$newFgkey = md5($linkBuf);
253
  $newFgkey = hash("sha256", $linkBuf);
254
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
- <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License </license>
7
  <channel>community</channel>
@@ -28,11 +28,11 @@
28
  &lt;p&gt;&lt;b&gt;Contact Us:&lt;/b&gt;&lt;/p&gt;&#xD;
29
  &lt;p&gt;If you want to know more about our services and products, please visit us here &lt;a href="https://www.eximbay.com"&gt;www.eximbay.com&lt;/a&gt;&lt;/p&gt;&#xD;
30
  &lt;p&gt;You can also contact us anytime at email address: &lt;u&gt;onlinesupport@eximbay.com&lt;/u&gt;&lt;/p&gt;</description>
31
- <notes>Updated for Magento versioin 1.9</notes>
32
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
33
- <date>2014-10-08</date>
34
- <time>04:17:33</time>
35
- <contents><target name="magelocal"><dir name="Mage"><dir name="Eximbay"><dir name="Block"><file name="Form.php" hash="b8147288ed4b1618385ce3435542a525"/><file name="Info.php" hash="d54164acde35a307cba6c2a93efa545d"/><file name="Jsinit.php" hash="8485fc4e1405c247c66bc2c3a998945a"/><file name="Payment.php" hash="f01db54dd0e7b8e9311332a8cf505197"/><file name="Placeform.php" hash="847d84d6cd2a4109fe86167122b48238"/><file name="Redirect.php" hash="5f94a39dbe0d151e0624070f3ea36af3"/></dir><dir name="Helper"><file name="Data.php" hash="152b123f6ff4de1ecb49f07c4ddfb85d"/></dir><dir name="Model"><file name="Abstract.php" hash="f9c9c1d615f405b8a32aa041489685d5"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="6ee03d349e3bd43934e862a6e550dac3"/><file name="Source.php" hash="105a8fe25e2e08ebca7c425f9353c929"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="eb8aa48637821b2615df3b9d3a5a35aa"/></dir><dir name="etc"><file name="config.xml" hash="3f85e6a4cf9455f6243a7fdc8c63104e"/><file name="system.xml" hash="7ffb8aad1a37974d551db99ae9299f5c"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="mysql4-install-0.1.0.php" hash="a6be2fbf126da40e119bf9d15acd545e"/><file name="mysql4-ugrade-0.1.0-0.2.0.php" hash="b6adcaae8201d20284c53eee72cbca36"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="a40141b94abc2e79f48261c380f6bee8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="eb6781c9c3239e9e7680c6d135608a98"/><file name="jsinit.phtml" hash="0c96e841bb9c384df2e04d018c5d3a3e"/><dir name="pdf"><file name="info.phtml" hash="d087d55b5aca15306673e37c37650b9b"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="6ff8a6036e516221aad42f5144942278"/></dir><dir name="template"><dir name="eximbay"><file name="blank.phtml" hash="6a2650fc18513a3cfb13d3b8362fac63"/><file name="form.phtml" hash="38fbb480c17767a72c3f2cf957c62255"/><file name="info.phtml" hash="e06bb65b3d5e5c57e15be49b2c69c5b9"/><file name="payment.phtml" hash="dc5caf5964467ef488e0f2221a6f4b59"/><file name="placeform.phtml" hash="05f35c94c065c9da92c74833e1f9318f"/><file name="redirect.phtml" hash="3889defdb3ed77611448e05406b193ab"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Eximbay.xml" hash="d2ad4447bb58e1fb25f3624eee141768"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Eximbay.csv" hash="dcea44085c5e6f5bd41b49eb9333863d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="banner_120_int.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_acc.gif" hash="0396c67d5d153ee4cae3189a3d469700"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/></dir></dir></dir></dir></dir></target></contents>
36
  <compatible/>
37
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
38
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
+ <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License </license>
7
  <channel>community</channel>
28
  &lt;p&gt;&lt;b&gt;Contact Us:&lt;/b&gt;&lt;/p&gt;&#xD;
29
  &lt;p&gt;If you want to know more about our services and products, please visit us here &lt;a href="https://www.eximbay.com"&gt;www.eximbay.com&lt;/a&gt;&lt;/p&gt;&#xD;
30
  &lt;p&gt;You can also contact us anytime at email address: &lt;u&gt;onlinesupport@eximbay.com&lt;/u&gt;&lt;/p&gt;</description>
31
+ <notes>Updated for Cybersource gateway.</notes>
32
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
33
+ <date>2014-10-14</date>
34
+ <time>06:57:55</time>
35
+ <contents><target name="magelocal"><dir name="Mage"><dir name="Eximbay"><dir name="Block"><file name="Form.php" hash="b8147288ed4b1618385ce3435542a525"/><file name="Info.php" hash="d54164acde35a307cba6c2a93efa545d"/><file name="Jsinit.php" hash="8485fc4e1405c247c66bc2c3a998945a"/><file name="Payment.php" hash="f01db54dd0e7b8e9311332a8cf505197"/><file name="Placeform.php" hash="847d84d6cd2a4109fe86167122b48238"/><file name="Redirect.php" hash="5f94a39dbe0d151e0624070f3ea36af3"/></dir><dir name="Helper"><file name="Data.php" hash="152b123f6ff4de1ecb49f07c4ddfb85d"/></dir><dir name="Model"><file name="Abstract.php" hash="f9c9c1d615f405b8a32aa041489685d5"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="57551f30b0abdc691cdb959b24ad8e1a"/><file name="Source.php" hash="105a8fe25e2e08ebca7c425f9353c929"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="eb8aa48637821b2615df3b9d3a5a35aa"/></dir><dir name="etc"><file name="config.xml" hash="3f85e6a4cf9455f6243a7fdc8c63104e"/><file name="system.xml" hash="7ffb8aad1a37974d551db99ae9299f5c"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="mysql4-install-0.1.0.php" hash="a6be2fbf126da40e119bf9d15acd545e"/><file name="mysql4-ugrade-0.1.0-0.2.0.php" hash="b6adcaae8201d20284c53eee72cbca36"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="a40141b94abc2e79f48261c380f6bee8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="eb6781c9c3239e9e7680c6d135608a98"/><file name="jsinit.phtml" hash="0c96e841bb9c384df2e04d018c5d3a3e"/><dir name="pdf"><file name="info.phtml" hash="d087d55b5aca15306673e37c37650b9b"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="6ff8a6036e516221aad42f5144942278"/></dir><dir name="template"><dir name="eximbay"><file name="blank.phtml" hash="6a2650fc18513a3cfb13d3b8362fac63"/><file name="form.phtml" hash="38fbb480c17767a72c3f2cf957c62255"/><file name="info.phtml" hash="e06bb65b3d5e5c57e15be49b2c69c5b9"/><file name="payment.phtml" hash="dc5caf5964467ef488e0f2221a6f4b59"/><file name="placeform.phtml" hash="05f35c94c065c9da92c74833e1f9318f"/><file name="redirect.phtml" hash="3889defdb3ed77611448e05406b193ab"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Eximbay.xml" hash="d2ad4447bb58e1fb25f3624eee141768"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Eximbay.csv" hash="dcea44085c5e6f5bd41b49eb9333863d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="banner_120_int.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_acc.gif" hash="0396c67d5d153ee4cae3189a3d469700"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/></dir></dir></dir></dir></dir></target></contents>
36
  <compatible/>
37
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
38
  </package>