Eximbay - Version 1.0.7

Version Notes

Updated for Magento versioin 1.8.1

Download this release

Release Info

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


Code changes from version 1.0.6 to 1.0.7

app/code/local/Mage/Eximbay/Model/Abstract.php CHANGED
@@ -112,7 +112,7 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
112
  {
113
  $test_mode = Mage::getStoreConfig('payment/eximbay_acc/test');
114
  if($test_mode){
115
- return 'http://www.test2.eximbay.com/web/payment2.0/payment_real.do';
116
  }else{
117
  return 'https://www.eximbay.com/web/payment2.0/payment_real.do';
118
  }
112
  {
113
  $test_mode = Mage::getStoreConfig('payment/eximbay_acc/test');
114
  if($test_mode){
115
+ return 'https://www.test.eximbay.com/web/payment2.0/payment_real.do';
116
  }else{
117
  return 'https://www.eximbay.com/web/payment2.0/payment_real.do';
118
  }
app/code/local/Mage/Eximbay/Model/Event.php CHANGED
@@ -86,7 +86,8 @@ class Mage_Eximbay_Model_Event
86
  $this->_processSale($msg);
87
  }else{ //fail
88
  $msg = Mage::helper('eximbay')->__('Payment was not successful. Response Code :'.$params['rescode'].' Response Message :'.$params['resmsg']);
89
- $this->_processFail($msg);
 
90
  }
91
  return $msg;
92
  } catch (Mage_Core_Exception $e) {
86
  $this->_processSale($msg);
87
  }else{ //fail
88
  $msg = Mage::helper('eximbay')->__('Payment was not successful. Response Code :'.$params['rescode'].' Response Message :'.$params['resmsg']);
89
+ //$this->_processFail($msg);
90
+ $this->_processCancel($msg);
91
  }
92
  return $msg;
93
  } catch (Mage_Core_Exception $e) {
app/code/local/Mage/Eximbay/controllers/ProcessingController.php CHANGED
@@ -79,12 +79,21 @@ class Mage_Eximbay_ProcessingController extends Mage_Core_Controller_Front_Actio
79
  {
80
  $event = Mage::getModel('eximbay/event')
81
  ->setEventData($this->getRequest()->getParams());
82
-
83
  try {
84
- $quoteId = $event->successEvent();
85
- $this->_getCheckout()->setLastSuccessQuoteId($quoteId);
86
- $this->_redirect('checkout/onepage/success');
87
- return;
 
 
 
 
 
 
 
 
 
88
  } catch (Mage_Core_Exception $e) {
89
  $this->_getCheckout()->addError($e->getMessage());
90
  } catch(Exception $e) {
79
  {
80
  $event = Mage::getModel('eximbay/event')
81
  ->setEventData($this->getRequest()->getParams());
82
+
83
  try {
84
+
85
+ $rescode = $this->getRequest()->get('rescode');
86
+
87
+ if($rescode == '0000'){
88
+ $quoteId = $event->successEvent();
89
+ $this->_getCheckout()->setLastSuccessQuoteId($quoteId);
90
+ $this->_redirect('checkout/onepage/success');
91
+ return;
92
+ }else{
93
+ $this->_redirect('eximbay/processing/cancel');
94
+ return;
95
+ }
96
+
97
  } catch (Mage_Core_Exception $e) {
98
  $this->_getCheckout()->addError($e->getMessage());
99
  } catch(Exception $e) {
app/design/frontend/base/default/template/eximbay/payment.phtml CHANGED
@@ -48,8 +48,8 @@
48
  </table>
49
  <div class="buttons-set" id="eximbay-buttons-container">
50
  <p>Thank you for your order, please click the button below to pay with Eximbay.</p>
51
- <p class="f-left"><a href="<?php echo $this->getUrl('eximbay/processing/cancel') ?>"><?php echo $this->__('Cancel Order') ?></a></p>
52
- <button type="submit" title="<?php echo $this->__('Pay via Eximbay') ?>" class="button btn-checkout" onclick="javascript:window.open('<?php echo Mage::getUrl('eximbay/processing/placeform') ?>','payment2','scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=800,height=470,top=200,left=300');"><span><span><?php echo $this->__('Pay via Eximbay') ?></span></span></button>
53
  </div>
54
  <?php endif; ?>
55
  </td>
48
  </table>
49
  <div class="buttons-set" id="eximbay-buttons-container">
50
  <p>Thank you for your order, please click the button below to pay with Eximbay.</p>
51
+ <p class="f-left"><a href="<?php echo $this->getUrl('eximbay/processing/cancel') ?>" id="eximbay-cancel-link"><?php echo $this->__('Cancel Order') ?></a></p>
52
+ <button type="submit" title="<?php echo $this->__('Pay via Eximbay') ?>" class="button btn-checkout" onclick="javascript:window.open('<?php echo Mage::getUrl('eximbay/processing/placeform') ?>','payment2','scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=800,height=470,top=200,left=300'); this.disabled=true; document.getElementById('eximbay-cancel-link').disabled = true;"><span><span><?php echo $this->__('Pay via Eximbay') ?></span></span></button>
53
  </div>
54
  <?php endif; ?>
55
  </td>
app/design/frontend/base/default/template/eximbay/placeform.phtml CHANGED
@@ -20,8 +20,12 @@
20
  * @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
21
  */
22
  ?>
 
 
 
 
 
23
 
24
- <b><?php echo Mage::helper('eximbay')->__('Loading secure payment page (SSL)'); ?></b>
25
  <form name="eximbay" id="eximbay_place_form" action="<?php echo $this->getFormAction();?>" method="POST">
26
  <?php if (is_array($this->getFormData())): ?>
27
  <?php foreach ($this->getFormData() as $name => $value): ?>
20
  * @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
21
  */
22
  ?>
23
+ <div id="eximbay-loading-img" style="text-align:center;">
24
+ <div class="please-wait" id="eximbay-please-wait" style="line-height: 500px;">
25
+ <img src="<?php echo $this->getSkinUrl('images/eximbay/eximbay_loading.gif') ?>"/>
26
+ </div>
27
+ </div>
28
 
 
29
  <form name="eximbay" id="eximbay_place_form" action="<?php echo $this->getFormAction();?>" method="POST">
30
  <?php if (is_array($this->getFormData())): ?>
31
  <?php foreach ($this->getFormData() as $name => $value): ?>
package.xml CHANGED
@@ -1,18 +1,38 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
- <version>1.0.6</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Official Eximbay Payment Extension</summary>
10
- <description>This payment module offers a variety of popular payment methods for online merchants.</description>
11
- <notes>Added configuration option. Payment Page Type(IFrame or Popup)</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
13
- <date>2014-03-06</date>
14
- <time>11:24:42</time>
15
- <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="1a6ff44b7f363056bd27b5888a94c1c6"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="2721d0bd55a16a44f25ef5789c9ef05f"/><file name="Source.php" hash="105a8fe25e2e08ebca7c425f9353c929"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="a094f99ff8a3edd78e61e2098ab71ba7"/></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="716a97fa8472ec990eebdd829a480b54"/><file name="placeform.phtml" hash="dfa8773672b3ec9911bef6e3381c67d1"/><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"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
+ <version>1.0.7</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License </license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Official Eximbay Payment Extension</summary>
10
+ <description>&lt;p&gt;&lt;i&gt;Eximbay&lt;/i&gt; payment module offers you a variety of popular payment methods via one payment service provider. This module allows you to choose between the following payment types:&lt;/p&gt;&#xD;
11
+ &lt;ul&gt;&#xD;
12
+ &lt;li&gt;International Credit Cards (VISA, MasterCard, JCB, American Express, and UnionPay)&lt;/li&gt;&#xD;
13
+ &lt;li&gt;Paypal, Alipay, Tenpay, CUP(China Union Pay), and 99Bill&lt;/li&gt;&#xD;
14
+ &lt;/ul&gt;&#xD;
15
+ &lt;p&gt;&lt;strong&gt;Additional Advantages and Services:&lt;/strong&gt;&lt;/p&gt;&#xD;
16
+ &lt;ul&gt;&#xD;
17
+ &lt;li&gt;Dynamic Currency Conversion(DCC)&lt;br /&gt;&#xD;
18
+ -Supports 24 currencies (USD, EUR, JPY, SGD, AUD, HKD THB, GBP, CAD, RUB, TWD, MYR, VND, PHP, MNT, NZD, AED, MOP, BRL, KZT, NOK, SAR, TRY, CNY)&lt;/li&gt;&#xD;
19
+ &lt;li&gt;Multi Currency Pricing(MCP)&lt;br /&gt;&#xD;
20
+ -Supports 12 currencies (USD, JPY, EUR, GBP, HKD, TWD, CNY, SGD, CAD, AUD, THB, RUB)&lt;/li&gt;&#xD;
21
+ &lt;li&gt;Payment Window with Multi-languages&lt;br /&gt;&#xD;
22
+ -Supports 4 languages (Korean, Japanese, Chinese, and English)&lt;/li&gt;&#xD;
23
+ &lt;li&gt;Risk Management System&lt;br /&gt;&#xD;
24
+ -ERM(Eximbay Risk Management System)&lt;br /&gt;&#xD;
25
+ -DM/AFS(Decision Manager/Advanced Fraud Screen) Services &#x2013; The World&#x2019;s Biggest Fraud Management Solution by CyberSource Corporation &lt;br /&gt;&#xD;
26
+ -2D &amp;amp; 3D secure payment&lt;/li&gt;&#xD;
27
+ &lt;/ul&gt;&#xD;
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.8.1</notes>
32
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
33
+ <date>2014-10-07</date>
34
+ <time>11:11:00</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="a310826ceed853e79f2a3eb9aae74f56"/><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>
skin/frontend/base/default/images/eximbay/eximbay_loading.gif ADDED
Binary file