Version Notes
Updated.
Download this release
Release Info
| Developer | KRPartners Co.,Ltd |
| Extension | Eximbay |
| Version | 2.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0 to 2.0.1
- app/code/community/Krp/Eximbay/Helper/Ppp.php +56 -0
- app/code/community/Krp/Eximbay/Model/Abstract.php +1 -1
- app/code/community/Krp/Eximbay/Model/Event.php +21 -9
- app/code/community/Krp/Eximbay/controllers/ProcessingController.php +5 -0
- app/design/frontend/base/default/layout/eximbay.xml +1 -1
- app/design/frontend/base/default/template/eximbay/checkout/onepage/review/button.phtml +23 -0
- app/design/frontend/base/default/template/eximbay/payment.phtml +14 -38
- package.xml +5 -5
app/code/community/Krp/Eximbay/Helper/Ppp.php
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Eximbay, Online Payment Module
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
| 8 |
+
* that is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
| 10 |
+
*
|
| 11 |
+
* DISCLAIMER
|
| 12 |
+
*
|
| 13 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
| 14 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
| 15 |
+
* needs please refer to https://www.eximbay.com for more information.
|
| 16 |
+
*
|
| 17 |
+
* @category Krp
|
| 18 |
+
* @package Krp_Eximbay
|
| 19 |
+
* @copyright Copyright (c) 2014 KRPartners Co.,Ltd (https://www.eximbay.com)
|
| 20 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Popup Solution helper
|
| 25 |
+
*/
|
| 26 |
+
class Krp_Eximbay_Helper_Ppp extends Mage_Core_Helper_Abstract
|
| 27 |
+
{
|
| 28 |
+
|
| 29 |
+
/**
|
| 30 |
+
* Get template for button in order review page if popup window was selected
|
| 31 |
+
*
|
| 32 |
+
* @param string $name template name
|
| 33 |
+
* @param string $block buttons block name
|
| 34 |
+
* @return string
|
| 35 |
+
*/
|
| 36 |
+
public function getReviewButtonTemplate($name, $block)
|
| 37 |
+
{
|
| 38 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
| 39 |
+
if ($quote) {
|
| 40 |
+
|
| 41 |
+
$payment = $quote->getPayment()->getMethodInstance()->getCode();
|
| 42 |
+
$windowType = Mage::getStoreConfig('payment/'.$payment.'/dtype');
|
| 43 |
+
|
| 44 |
+
if (!$windowType) {
|
| 45 |
+
return $name;
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
if ($blockObject = Mage::getSingleton('core/layout')->getBlock($block)) {
|
| 50 |
+
return $blockObject->getTemplate();
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
return '';
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
}
|
app/code/community/Krp/Eximbay/Model/Abstract.php
CHANGED
|
@@ -279,7 +279,7 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
| 279 |
}
|
| 280 |
}
|
| 281 |
|
| 282 |
-
Mage::log($params, null, 'eximbay.log');
|
| 283 |
|
| 284 |
return $params;
|
| 285 |
}
|
| 279 |
}
|
| 280 |
}
|
| 281 |
|
| 282 |
+
Mage::log($params, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 283 |
|
| 284 |
return $params;
|
| 285 |
}
|
app/code/community/Krp/Eximbay/Model/Event.php
CHANGED
|
@@ -84,6 +84,7 @@ class Krp_Eximbay_Model_Event
|
|
| 84 |
if($params['rescode'] == '0000') { //ok
|
| 85 |
$msg = Mage::helper('eximbay')->__('The amount has been authorized and captured by EXIMBAY.');
|
| 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);
|
|
@@ -134,6 +135,8 @@ class Krp_Eximbay_Model_Event
|
|
| 134 |
$this->_order->cancel();
|
| 135 |
$this->_order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, $msg);
|
| 136 |
$this->_order->save();
|
|
|
|
|
|
|
| 137 |
}
|
| 138 |
|
| 139 |
/**
|
|
@@ -155,6 +158,8 @@ class Krp_Eximbay_Model_Event
|
|
| 155 |
$this->_order->sendNewOrderEmail();
|
| 156 |
$this->_order->setEmailSent(true);
|
| 157 |
$this->_order->save();
|
|
|
|
|
|
|
| 158 |
}
|
| 159 |
|
| 160 |
/**
|
|
@@ -199,40 +204,43 @@ class Krp_Eximbay_Model_Event
|
|
| 199 |
* @return array $params request params
|
| 200 |
*/
|
| 201 |
protected function _validateEventData($fullCheck = true)
|
| 202 |
-
{
|
| 203 |
-
|
| 204 |
// get request variables
|
| 205 |
$params = $this->_eventData;
|
| 206 |
|
| 207 |
-
Mage::log($params, null, 'eximbay.log');
|
| 208 |
-
|
| 209 |
if (empty($params)) {
|
|
|
|
| 210 |
Mage::throwException('Request does not contain any elements.');
|
| 211 |
}
|
| 212 |
|
| 213 |
// check order ID
|
| 214 |
if (empty($params['ref'])) { // || ($fullCheck == false && $this->_getCheckout()->getEximbayRealOrderId() != $params['ref'])
|
| 215 |
-
|
|
|
|
| 216 |
}
|
| 217 |
// load order for further validation
|
| 218 |
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($params['ref']);
|
| 219 |
if (!$this->_order->getId()) {
|
| 220 |
-
|
|
|
|
| 221 |
}
|
| 222 |
|
| 223 |
if (0 !== strpos($this->_order->getPayment()->getMethodInstance()->getCode(), 'eximbay_')) {
|
| 224 |
-
|
|
|
|
| 225 |
}
|
| 226 |
|
| 227 |
// make additional validation
|
| 228 |
if ($fullCheck) {
|
| 229 |
// check payment status
|
| 230 |
if (empty($params['rescode'])) {
|
|
|
|
| 231 |
Mage::throwException('Unknown payment status.');
|
| 232 |
}
|
| 233 |
|
| 234 |
// check transaction signature
|
| 235 |
if (empty($params['fgkey'])) {
|
|
|
|
| 236 |
Mage::throwException('Invalid transaction signature.');
|
| 237 |
}
|
| 238 |
|
|
@@ -240,6 +248,7 @@ class Krp_Eximbay_Model_Event
|
|
| 240 |
$enc_secretKey = Mage::getStoreConfig('payment/'.$this->_order->getPayment()->getMethodInstance()->getCode().'/secret_key');
|
| 241 |
$secretKey = Mage::helper('core')->decrypt($enc_secretKey);
|
| 242 |
if (empty($secretKey)) {
|
|
|
|
| 243 |
Mage::throwException('Secretkey is empty.');
|
| 244 |
}
|
| 245 |
|
|
@@ -252,9 +261,10 @@ class Krp_Eximbay_Model_Event
|
|
| 252 |
//$newFgkey = md5($linkBuf);
|
| 253 |
$newFgkey = hash("sha256", $linkBuf);
|
| 254 |
|
| 255 |
-
Mage::log($linkBuf.'/'.$newFgkey, null, 'eximbay.log');
|
| 256 |
|
| 257 |
if(strtolower($params['fgkey']) != $newFgkey){
|
|
|
|
| 258 |
Mage::throwException('Hash is not valid. ');
|
| 259 |
}
|
| 260 |
}
|
|
@@ -264,11 +274,13 @@ class Krp_Eximbay_Model_Event
|
|
| 264 |
if($this->_order->getOrderCurrencyCode() == 'KRW' || $this->_order->getOrderCurrencyCode() == 'JPY' || $this->_order->getOrderCurrencyCode() == 'VND')
|
| 265 |
{
|
| 266 |
if(round($this->_order->getGrandTotal(), 0, PHP_ROUND_HALF_UP) != $params['amt']){
|
|
|
|
| 267 |
Mage::throwException('Transaction amount does not match.');
|
| 268 |
}
|
| 269 |
}else{
|
| 270 |
if(round($this->_order->getGrandTotal(), 2) != $params['amt']) {
|
| 271 |
-
|
|
|
|
| 272 |
}
|
| 273 |
}
|
| 274 |
}
|
| 84 |
if($params['rescode'] == '0000') { //ok
|
| 85 |
$msg = Mage::helper('eximbay')->__('The amount has been authorized and captured by EXIMBAY.');
|
| 86 |
$this->_processSale($msg);
|
| 87 |
+
$msg = Mage::helper('eximbay')->__('rescode=0000&resmsg=success');
|
| 88 |
}else{ //fail
|
| 89 |
$msg = Mage::helper('eximbay')->__('Payment was not successful. Response Code :'.$params['rescode'].' Response Message :'.$params['resmsg']);
|
| 90 |
//$this->_processFail($msg);
|
| 135 |
$this->_order->cancel();
|
| 136 |
$this->_order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, $msg);
|
| 137 |
$this->_order->save();
|
| 138 |
+
|
| 139 |
+
Mage::log($this->getEventData('ref') .' : '.$msg, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 140 |
}
|
| 141 |
|
| 142 |
/**
|
| 158 |
$this->_order->sendNewOrderEmail();
|
| 159 |
$this->_order->setEmailSent(true);
|
| 160 |
$this->_order->save();
|
| 161 |
+
|
| 162 |
+
Mage::log($transid .' : '.$msg, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 163 |
}
|
| 164 |
|
| 165 |
/**
|
| 204 |
* @return array $params request params
|
| 205 |
*/
|
| 206 |
protected function _validateEventData($fullCheck = true)
|
| 207 |
+
{
|
|
|
|
| 208 |
// get request variables
|
| 209 |
$params = $this->_eventData;
|
| 210 |
|
|
|
|
|
|
|
| 211 |
if (empty($params)) {
|
| 212 |
+
Mage::log('Exception - Request does not contain any elements.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 213 |
Mage::throwException('Request does not contain any elements.');
|
| 214 |
}
|
| 215 |
|
| 216 |
// check order ID
|
| 217 |
if (empty($params['ref'])) { // || ($fullCheck == false && $this->_getCheckout()->getEximbayRealOrderId() != $params['ref'])
|
| 218 |
+
Mage::log('Exception - Missing or invalid order ID.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 219 |
+
Mage::throwException('Missing or invalid order ID.');
|
| 220 |
}
|
| 221 |
// load order for further validation
|
| 222 |
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($params['ref']);
|
| 223 |
if (!$this->_order->getId()) {
|
| 224 |
+
Mage::log('Exception - Order not found.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 225 |
+
Mage::throwException('Order not found.');
|
| 226 |
}
|
| 227 |
|
| 228 |
if (0 !== strpos($this->_order->getPayment()->getMethodInstance()->getCode(), 'eximbay_')) {
|
| 229 |
+
Mage::log('Exception - Unknown payment method.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 230 |
+
Mage::throwException('Unknown payment method.');
|
| 231 |
}
|
| 232 |
|
| 233 |
// make additional validation
|
| 234 |
if ($fullCheck) {
|
| 235 |
// check payment status
|
| 236 |
if (empty($params['rescode'])) {
|
| 237 |
+
Mage::log('Exception - Unknown payment status.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 238 |
Mage::throwException('Unknown payment status.');
|
| 239 |
}
|
| 240 |
|
| 241 |
// check transaction signature
|
| 242 |
if (empty($params['fgkey'])) {
|
| 243 |
+
Mage::log('Exception - Invalid transaction signature.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 244 |
Mage::throwException('Invalid transaction signature.');
|
| 245 |
}
|
| 246 |
|
| 248 |
$enc_secretKey = Mage::getStoreConfig('payment/'.$this->_order->getPayment()->getMethodInstance()->getCode().'/secret_key');
|
| 249 |
$secretKey = Mage::helper('core')->decrypt($enc_secretKey);
|
| 250 |
if (empty($secretKey)) {
|
| 251 |
+
Mage::log('Exception - Secretkey is empty.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 252 |
Mage::throwException('Secretkey is empty.');
|
| 253 |
}
|
| 254 |
|
| 261 |
//$newFgkey = md5($linkBuf);
|
| 262 |
$newFgkey = hash("sha256", $linkBuf);
|
| 263 |
|
| 264 |
+
Mage::log($linkBuf.'/'.$newFgkey, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 265 |
|
| 266 |
if(strtolower($params['fgkey']) != $newFgkey){
|
| 267 |
+
Mage::log('Exception - Hash is not valid.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 268 |
Mage::throwException('Hash is not valid. ');
|
| 269 |
}
|
| 270 |
}
|
| 274 |
if($this->_order->getOrderCurrencyCode() == 'KRW' || $this->_order->getOrderCurrencyCode() == 'JPY' || $this->_order->getOrderCurrencyCode() == 'VND')
|
| 275 |
{
|
| 276 |
if(round($this->_order->getGrandTotal(), 0, PHP_ROUND_HALF_UP) != $params['amt']){
|
| 277 |
+
Mage::log('Exception - Transaction amount does not match.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 278 |
Mage::throwException('Transaction amount does not match.');
|
| 279 |
}
|
| 280 |
}else{
|
| 281 |
if(round($this->_order->getGrandTotal(), 2) != $params['amt']) {
|
| 282 |
+
Mage::log('Exception - Transaction amount does not match.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 283 |
+
Mage::throwException('Transaction amount does not match.');
|
| 284 |
}
|
| 285 |
}
|
| 286 |
}
|
app/code/community/Krp/Eximbay/controllers/ProcessingController.php
CHANGED
|
@@ -80,6 +80,8 @@ class Krp_Eximbay_ProcessingController extends Mage_Core_Controller_Front_Action
|
|
| 80 |
$event = Mage::getModel('eximbay/event')
|
| 81 |
->setEventData($this->getRequest()->getParams());
|
| 82 |
|
|
|
|
|
|
|
| 83 |
try {
|
| 84 |
|
| 85 |
$rescode = $this->getRequest()->get('rescode');
|
|
@@ -135,6 +137,9 @@ class Krp_Eximbay_ProcessingController extends Mage_Core_Controller_Front_Action
|
|
| 135 |
{
|
| 136 |
$event = Mage::getModel('eximbay/event')
|
| 137 |
->setEventData($this->getRequest()->getParams());
|
|
|
|
|
|
|
|
|
|
| 138 |
$message = $event->processStatusEvent();
|
| 139 |
$this->getResponse()->setBody($message);
|
| 140 |
}
|
| 80 |
$event = Mage::getModel('eximbay/event')
|
| 81 |
->setEventData($this->getRequest()->getParams());
|
| 82 |
|
| 83 |
+
Mage::log($this->getRequest()->getParams(), null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 84 |
+
|
| 85 |
try {
|
| 86 |
|
| 87 |
$rescode = $this->getRequest()->get('rescode');
|
| 137 |
{
|
| 138 |
$event = Mage::getModel('eximbay/event')
|
| 139 |
->setEventData($this->getRequest()->getParams());
|
| 140 |
+
|
| 141 |
+
Mage::log($this->getRequest()->getParams(), null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 142 |
+
|
| 143 |
$message = $event->processStatusEvent();
|
| 144 |
$this->getResponse()->setBody($message);
|
| 145 |
}
|
app/design/frontend/base/default/layout/eximbay.xml
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
|
| 31 |
</block>
|
| 32 |
</checkout_onepage_paymentmethod>
|
| 33 |
-
|
| 34 |
<eximbay_processing_payment>
|
| 35 |
<reference name="root">
|
| 36 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
| 30 |
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
|
| 31 |
</block>
|
| 32 |
</checkout_onepage_paymentmethod>
|
| 33 |
+
|
| 34 |
<eximbay_processing_payment>
|
| 35 |
<reference name="root">
|
| 36 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
app/design/frontend/base/default/template/eximbay/checkout/onepage/review/button.phtml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Eximbay, Online Payment Module
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
| 8 |
+
* that is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
| 10 |
+
*
|
| 11 |
+
* DISCLAIMER
|
| 12 |
+
*
|
| 13 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
| 14 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
| 15 |
+
* needs please refer to https://www.eximbay.com for more information.
|
| 16 |
+
*
|
| 17 |
+
* @category design
|
| 18 |
+
* @package base_default
|
| 19 |
+
* @copyright Copyright (c) 2014 KRPartners Co.,Ltd (https://www.eximbay.com)
|
| 20 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
?>
|
| 23 |
+
<button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="review.save();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->__('Place Order') ?></span></span></button>
|
app/design/frontend/base/default/template/eximbay/payment.phtml
CHANGED
|
@@ -26,51 +26,27 @@
|
|
| 26 |
|
| 27 |
<table style="width:100%;">
|
| 28 |
<tr>
|
| 29 |
-
|
| 30 |
-
|
| 31 |
<iframe style="width:100%; height:600px; border:0;" src="<?php echo Mage::getUrl('eximbay/processing/placeform') ?>"></iframe>
|
| 32 |
-
<?php else: ?>
|
| 33 |
-
<table class="data-table" id="checkout-review-table" style="width:100%;">
|
| 34 |
-
<thead>
|
| 35 |
-
<tr>
|
| 36 |
-
<th class="a-center"><?php echo $this->__('Order:') ?></th>
|
| 37 |
-
<th class="a-center"><?php echo $this->__('Date:') ?></th>
|
| 38 |
-
<th class="a-center"><?php echo $this->__('Total:') ?></th>
|
| 39 |
-
<th class="a-center"><?php echo $this->__('Payment Method:') ?></th>
|
| 40 |
-
</tr>
|
| 41 |
-
</thead>
|
| 42 |
-
<tbody>
|
| 43 |
-
<tr style="height:35px;">
|
| 44 |
-
<td style="text-align:center;"><?php echo $this->getEximbayTransId() ?></td>
|
| 45 |
-
<td style="text-align:center;"><?php echo $this->getEximbayDate() ?></td>
|
| 46 |
-
<td style="text-align:center;"><?php echo $this->getEximbayAmt() ?></td>
|
| 47 |
-
<td style="text-align:center;"><?php echo $this->getEximbayTitle() ?></td>
|
| 48 |
-
</tr>
|
| 49 |
-
</tbody>
|
| 50 |
-
</table>
|
| 51 |
-
<div class="buttons-set" id="review-buttons-container">
|
| 52 |
-
<table class="buttons-table" id="review-buttons-table" style="width:100%;">
|
| 53 |
-
<tr><td style="text-align:right;"><?php echo Mage::helper('eximbay')->__('Thank you for your order, please click the button below to pay with Eximbay.') ?></td></tr>
|
| 54 |
-
<tr><td style="text-align:left;">
|
| 55 |
-
<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; disableCancelLink();"><span><span><?php echo $this->__('Pay via Eximbay') ?></span></span></button>
|
| 56 |
-
<p class="f-left"><a id="eximbay-cancel-link" href="<?php echo $this->getUrl('eximbay/processing/cancel') ?>"><?php echo $this->__('Cancel Order') ?></a></p>
|
| 57 |
-
</td>
|
| 58 |
-
</tr>
|
| 59 |
-
</table>
|
| 60 |
-
</div>
|
| 61 |
-
<?php endif; ?>
|
| 62 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
<td style="vertical-align: text-top; text-align:center;">
|
| 64 |
<img src="<?php echo $this->getEximbayLogoSrc() ?>" title="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" alt="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" />
|
| 65 |
</td>
|
| 66 |
</tr>
|
| 67 |
</table>
|
|
|
|
| 68 |
<script type="text/javascript">
|
| 69 |
-
//<![CDATA[
|
| 70 |
-
function
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
document.getElementById('eximbay-cancel-link').style.color = "grey";
|
| 74 |
}
|
| 75 |
//]]>
|
| 76 |
-
</script>
|
|
|
| 26 |
|
| 27 |
<table style="width:100%;">
|
| 28 |
<tr>
|
| 29 |
+
<?php if ($this->getEximbayDisplayType()): ?>
|
| 30 |
+
<td style="width:800px">
|
| 31 |
<iframe style="width:100%; height:600px; border:0;" src="<?php echo Mage::getUrl('eximbay/processing/placeform') ?>"></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</td>
|
| 33 |
+
<?php else: ?>
|
| 34 |
+
<td style="width:800px;height:400px;padding-left:300px;">
|
| 35 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>"/>
|
| 36 |
+
</td>
|
| 37 |
+
<?php endif; ?>
|
| 38 |
<td style="vertical-align: text-top; text-align:center;">
|
| 39 |
<img src="<?php echo $this->getEximbayLogoSrc() ?>" title="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" alt="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" />
|
| 40 |
</td>
|
| 41 |
</tr>
|
| 42 |
</table>
|
| 43 |
+
<?php if (!$this->getEximbayDisplayType()): ?>
|
| 44 |
<script type="text/javascript">
|
| 45 |
+
//<![CDATA[
|
| 46 |
+
window.onload=function()
|
| 47 |
+
{
|
| 48 |
+
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');
|
|
|
|
| 49 |
}
|
| 50 |
//]]>
|
| 51 |
+
</script>
|
| 52 |
+
<?php endif; ?>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Eximbay</name>
|
| 4 |
-
<version>2.0.
|
| 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>
|
| 12 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
| 13 |
-
<date>2014-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Krp"><dir name="Eximbay"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="ab74479c6a0c966eaa8a0e290ccfed9a"/></dir></dir></dir><file name="Form.php" hash="f6a8a89d07384accc0501a6806fb8a58"/><file name="Info.php" hash="2a74edc39a49612eca820a6826d03a93"/><file name="Jsinit.php" hash="f5e7e6864d9a66fdeb760865885eb028"/><file name="Payment.php" hash="e55e4e8c36ac4e3a8372723cc7e34fbc"/><file name="Placeform.php" hash="22e9a71ba8d56e338b273df0a31d408e"/><file name="Redirect.php" hash="ed0a1ae878f925001dda455bdcee7281"/></dir><dir name="Helper"><file name="Data.php" hash="39b50d67f2f0ce838900530ded9cb5f7"/></dir><dir name="Model"><file name="Abstract.php" hash="
|
| 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>2.0.1</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>Updated.</notes>
|
| 12 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
| 13 |
+
<date>2014-11-27</date>
|
| 14 |
+
<time>11:52:43</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Krp"><dir name="Eximbay"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="ab74479c6a0c966eaa8a0e290ccfed9a"/></dir></dir></dir><file name="Form.php" hash="f6a8a89d07384accc0501a6806fb8a58"/><file name="Info.php" hash="2a74edc39a49612eca820a6826d03a93"/><file name="Jsinit.php" hash="f5e7e6864d9a66fdeb760865885eb028"/><file name="Payment.php" hash="e55e4e8c36ac4e3a8372723cc7e34fbc"/><file name="Placeform.php" hash="22e9a71ba8d56e338b273df0a31d408e"/><file name="Redirect.php" hash="ed0a1ae878f925001dda455bdcee7281"/></dir><dir name="Helper"><file name="Data.php" hash="39b50d67f2f0ce838900530ded9cb5f7"/><file name="Ppp.php" hash="2209927ca48e88ea8312cb3babb3cac5"/></dir><dir name="Model"><file name="Abstract.php" hash="b28cbbf01f0eaa3a217fafa9df42d508"/><file name="Acc.php" hash="e01ef19e450cc81d7abea76716a68ee3"/><file name="Alp.php" hash="fc5e746a521d7e8fe609d56dd8971fb2"/><file name="Cup.php" hash="3e61b570bf9ec0f47a8282b289c5cbc2"/><file name="Ecn.php" hash="8c81daff5feccef2173f7afe399d2b4d"/><file name="Event.php" hash="b0ba28210d60ee0516260168952308e0"/><file name="Nnb.php" hash="dbfd83d3c79479decb81ecd2198a3f31"/><file name="Popup.php" hash="26b4d183cdaebcd6a66e3ccc97570be8"/><file name="Popupiframe.php" hash="fceb0e286d5c7f2d47937dc24763d276"/><file name="Ppl.php" hash="67a14f356dbc79d54b3ad8448416bca6"/><file name="Tnp.php" hash="f5a167e11ec3c37b16d87ac4284f1f95"/></dir><dir name="controllers"><file name="EximbayController.php" hash="9aef2e23676514be7da811f02ace1638"/><file name="ProcessingController.php" hash="e0a510efb0dd8603d93212dcffb45692"/></dir><dir name="etc"><file name="config.xml" hash="3160448769fb4023ac13a4653939de2b"/><file name="system.xml" hash="7f2438cbf4938dfe7e9794d827e546c1"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="install-2.0.0.php" hash="de251375de4ea828e2f827f0bfbb4ce5"/><file name="mysql4-ugrade-0.1.0-2.0.0.php" hash="8dbe742a111b82d3aa4106bb9bc7fce9"/></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="46de7d1b0a663271c7b90d3bdfc0e8e8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="8d7970f6b7f17546d5741d61455a0654"/><file name="jsinit.phtml" hash="b146ee4b5a669e2bde2cb300baeedd80"/><dir name="pdf"><file name="info.phtml" hash="145976fe44cdfef7cb0a9ec438a3c162"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="b625d54e418b6c3e4f0a717a50c95ad6"/></dir><dir name="template"><dir name="eximbay"><file name="blank.phtml" hash="ea239a21df8d55020f39349254ef5cba"/><dir name="checkout"><dir name="onepage"><dir name="payment"><file name="methods.phtml" hash="be48a6dec436726ba2bef57c04e2c18e"/></dir><dir name="review"><file name="button.phtml" hash="6a4af9bbbf6069d659a12bbd739cddd7"/></dir></dir></dir><file name="form.phtml" hash="fe17e160010d308c0df0ebc29673004d"/><file name="info.phtml" hash="4b365112722a6b4d0555580ac1c20c5e"/><file name="payment.phtml" hash="4d1e45ad3ac4f653cfb05d47a81b4610"/><file name="placeform.phtml" hash="1886ca9af1a89d258b621646ed4c2693"/><file name="redirect.phtml" hash="ff792a53e3cd9721e906edafcc30e3d5"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Krp_Eximbay.xml" hash="f163f260b5d1203cb8b9146e838d672d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Krp_Eximbay.csv" hash="4ae9e31213fc1113498d1c162b7cef4d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="eximbay_acc.jpg" hash="b64b77cd6a2a3bcea931e78c85b01e54"/><file name="eximbay_alp.jpg" hash="fdf33a103183ee24f238d26b4b546de5"/><file name="eximbay_banner.png" hash="afd1fd216aefbbfc7caaade06e5e25e4"/><file name="eximbay_cup.jpg" hash="42c17b3b9b9841a28efc1f921099ee6f"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/><file name="eximbay_logo.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_nnb.jpg" hash="31063516179a5fb158f02cb25b5f94fb"/><file name="eximbay_ppl.jpg" hash="80e621524248fe39508f91349a353bb5"/><file name="eximbay_tnp.jpg" hash="56d1053176bc6ea5b7a39ec43b9d2da2"/></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>
|
