Version Notes
Added 'Redirect' option.
Download this release
Release Info
| Developer | KRPartners Co.,Ltd |
| Extension | Eximbay |
| Version | 3.0.0 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.8 to 3.0.0
- app/code/community/Krp/Eximbay/Model/Abstract.php +47 -92
- app/code/community/Krp/Eximbay/Model/Event.php +4 -28
- app/code/community/Krp/Eximbay/Model/Popup.php +1 -1
- app/code/community/Krp/Eximbay/Model/Popupiframe.php +2 -2
- app/code/community/Krp/Eximbay/Model/Popupiframeredirect.php +42 -0
- app/code/community/Krp/Eximbay/Model/{Version.php → Popupredirect.php} +3 -4
- app/code/community/Krp/Eximbay/etc/config.xml +1 -1
- app/code/community/Krp/Eximbay/etc/system.xml +32 -131
- app/design/adminhtml/default/default/template/eximbay/info.phtml +1 -1
- app/design/frontend/base/default/template/eximbay/info.phtml +0 -2
- app/design/frontend/base/default/template/eximbay/payment.phtml +16 -7
- app/design/frontend/base/default/template/eximbay/redirect.phtml +5 -3
- app/locale/en_US/Krp_Eximbay.csv +2 -1
- package.xml +5 -5
app/code/community/Krp/Eximbay/Model/Abstract.php
CHANGED
|
@@ -314,23 +314,11 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
| 314 |
*/
|
| 315 |
public function getUrl()
|
| 316 |
{
|
| 317 |
-
if($this->
|
| 318 |
-
|
| 319 |
-
if($this->isMobile())
|
| 320 |
-
return 'https://www.test.eximbay.com/web/mpayment/payment_real.do';
|
| 321 |
-
return 'https://www.test.eximbay.com/web/payment2.0/payment_real.do';
|
| 322 |
-
}else{
|
| 323 |
-
if($this->isMobile())
|
| 324 |
-
return 'https://www.eximbay.com/web/mpayment/payment_real.do';
|
| 325 |
-
return 'https://www.eximbay.com/web/payment2.0/payment_real.do';
|
| 326 |
-
}
|
| 327 |
}else{
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
}else{
|
| 331 |
-
return 'https://secureapi.eximbay.com/Gateway/BasicProcessor.krp';
|
| 332 |
-
}
|
| 333 |
-
}
|
| 334 |
}
|
| 335 |
|
| 336 |
/**
|
|
@@ -403,23 +391,9 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
| 403 |
public function getDisplayType()
|
| 404 |
{
|
| 405 |
$diplay_mode = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/dtype');
|
| 406 |
-
|
| 407 |
-
return 'I';
|
| 408 |
-
}else{
|
| 409 |
-
return 'P';
|
| 410 |
-
}
|
| 411 |
}
|
| 412 |
|
| 413 |
-
/**
|
| 414 |
-
* Return API version
|
| 415 |
-
*
|
| 416 |
-
* @return string
|
| 417 |
-
*/
|
| 418 |
-
public function getAPIVersion()
|
| 419 |
-
{
|
| 420 |
-
$version = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/ver');
|
| 421 |
-
return $version;
|
| 422 |
-
}
|
| 423 |
|
| 424 |
/**
|
| 425 |
* checks if Korean Local Payment is chosen.
|
|
@@ -462,7 +436,6 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
| 462 |
$secretKey = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/secret_key');
|
| 463 |
$mid = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/mid');
|
| 464 |
$ref = $order_id;
|
| 465 |
-
//$cur = Mage::getStoreConfig('payment/eximbay_acc/currency');
|
| 466 |
$displayType = $this->getDisplayType();
|
| 467 |
$cur = $this->getOrder()->getOrderCurrencyCode();
|
| 468 |
if($cur == 'KRW' || $cur == 'JPY' || $cur == 'VND')
|
|
@@ -471,101 +444,83 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
| 471 |
}
|
| 472 |
$linkBuf = $secretKey. "?mid=" . $mid ."&ref=" . $ref ."&cur=" .$cur ."&amt=" .$amt;
|
| 473 |
|
| 474 |
-
//$fgkey = md5($linkBuf);
|
| 475 |
$fgkey = hash("sha256", $linkBuf);
|
| 476 |
|
| 477 |
-
$
|
| 478 |
-
$ostype = '';
|
| 479 |
$issuercountry = '';
|
| 480 |
-
if($this->
|
| 481 |
-
$
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
}
|
| 486 |
-
if($this->isKoreanLocalPayment()){
|
| 487 |
-
$issuercountry = 'KR';
|
| 488 |
-
}
|
| 489 |
}
|
|
|
|
| 490 |
|
| 491 |
$params = array(
|
| 492 |
-
'ver' =>
|
| 493 |
'mid' => $mid,
|
| 494 |
-
'txntype' =>
|
| 495 |
'displaytype' => $displayType,
|
| 496 |
'charset' => 'UTF-8',
|
| 497 |
'ref' => $ref,
|
| 498 |
'email' => $email,
|
| 499 |
-
'returnurl' => Mage::getUrl('eximbay/processing/success'),
|
| 500 |
'statusurl' => Mage::getUrl('eximbay/processing/status'),
|
| 501 |
'fgkey' => $fgkey,
|
| 502 |
'lang' => $this->getLocale(),
|
| 503 |
'amt' => $amt,
|
| 504 |
'cur' => $cur,
|
| 505 |
-
'shop' => Mage::app()->getStore()->getName()
|
| 506 |
'buyer' => $billing->getFirstname() . ' ' . $billing->getLastname(),
|
| 507 |
'tel' => $billing->getTelephone(),
|
| 508 |
-
'param1' => '',
|
| 509 |
-
'param2' => '',
|
| 510 |
-
'param3' => '',
|
| 511 |
-
'title1' => '',
|
| 512 |
-
'title2' => '',
|
| 513 |
-
'title3' => '',
|
| 514 |
-
'title4' => '',
|
| 515 |
-
'visitorid' => '',
|
| 516 |
-
'partnercode'
|
| 517 |
'autoclose' => 'Y',
|
| 518 |
'directToReturn' => 'N',
|
| 519 |
'ostype' => $ostype,
|
| 520 |
'issuercountry' => $issuercountry,
|
| 521 |
-
'paymethod'
|
| 522 |
-
'
|
| 523 |
-
'
|
| 524 |
-
'
|
| 525 |
-
'
|
| 526 |
-
'
|
| 527 |
-
'
|
| 528 |
-
'
|
| 529 |
-
'
|
| 530 |
-
'
|
| 531 |
-
'
|
| 532 |
-
'
|
| 533 |
-
'
|
| 534 |
-
'
|
| 535 |
-
'
|
| 536 |
-
'
|
| 537 |
-
'
|
| 538 |
-
'
|
| 539 |
-
'
|
| 540 |
);
|
| 541 |
|
| 542 |
//get item units
|
| 543 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 544 |
$items = $order->getAllVisibleItems();
|
| 545 |
-
$itemname = '';
|
| 546 |
$itemcount=count($items);
|
| 547 |
$item_loop = 0;
|
| 548 |
if ( $itemcount > 0 ) {
|
| 549 |
foreach ($items as $itemId => $item)
|
| 550 |
{
|
| 551 |
-
$params['
|
| 552 |
-
$params['
|
| 553 |
-
$params['
|
| 554 |
-
|
| 555 |
-
//if($item_loop > 0)
|
| 556 |
-
// $params['product'] .= ' ';
|
| 557 |
-
//$params['product'] .= $item->getName();
|
| 558 |
|
| 559 |
-
if($item_loop == 0)
|
| 560 |
-
$params['product'] = $item->getName();
|
| 561 |
-
|
| 562 |
$item_loop++;
|
| 563 |
}
|
| 564 |
-
|
| 565 |
-
if($itemcount > 1){
|
| 566 |
-
$itemcnt = $itemcount - 1;
|
| 567 |
-
$params['product'] .= " ... and " . $itemcnt . " more";
|
| 568 |
-
}
|
| 569 |
}
|
| 570 |
|
| 571 |
Mage::log($params, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 314 |
*/
|
| 315 |
public function getUrl()
|
| 316 |
{
|
| 317 |
+
if($this->isTestMode()){
|
| 318 |
+
return 'https://secureapi.test.eximbay.com/Gateway/BasicProcessor.krp';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 319 |
}else{
|
| 320 |
+
return 'https://secureapi.eximbay.com/Gateway/BasicProcessor.krp';
|
| 321 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
}
|
| 323 |
|
| 324 |
/**
|
| 391 |
public function getDisplayType()
|
| 392 |
{
|
| 393 |
$diplay_mode = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/dtype');
|
| 394 |
+
return $diplay_mode;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 395 |
}
|
| 396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
|
| 398 |
/**
|
| 399 |
* checks if Korean Local Payment is chosen.
|
| 436 |
$secretKey = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/secret_key');
|
| 437 |
$mid = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/mid');
|
| 438 |
$ref = $order_id;
|
|
|
|
| 439 |
$displayType = $this->getDisplayType();
|
| 440 |
$cur = $this->getOrder()->getOrderCurrencyCode();
|
| 441 |
if($cur == 'KRW' || $cur == 'JPY' || $cur == 'VND')
|
| 444 |
}
|
| 445 |
$linkBuf = $secretKey. "?mid=" . $mid ."&ref=" . $ref ."&cur=" .$cur ."&amt=" .$amt;
|
| 446 |
|
|
|
|
| 447 |
$fgkey = hash("sha256", $linkBuf);
|
| 448 |
|
| 449 |
+
$ostype = 'P';
|
|
|
|
| 450 |
$issuercountry = '';
|
| 451 |
+
if($this->isMobile()){
|
| 452 |
+
$ostype = 'M';
|
| 453 |
+
}
|
| 454 |
+
if($this->isKoreanLocalPayment()){
|
| 455 |
+
$issuercountry = 'KR';
|
|
|
|
|
|
|
|
|
|
|
|
|
| 456 |
}
|
| 457 |
+
|
| 458 |
|
| 459 |
$params = array(
|
| 460 |
+
'ver' => '210',
|
| 461 |
'mid' => $mid,
|
| 462 |
+
'txntype' => 'PAYMENT',
|
| 463 |
'displaytype' => $displayType,
|
| 464 |
'charset' => 'UTF-8',
|
| 465 |
'ref' => $ref,
|
| 466 |
'email' => $email,
|
| 467 |
+
'returnurl' => Mage::getUrl('eximbay/processing/success'),
|
| 468 |
'statusurl' => Mage::getUrl('eximbay/processing/status'),
|
| 469 |
'fgkey' => $fgkey,
|
| 470 |
'lang' => $this->getLocale(),
|
| 471 |
'amt' => $amt,
|
| 472 |
'cur' => $cur,
|
| 473 |
+
'shop' => Mage::app()->getStore()->getName(),
|
| 474 |
'buyer' => $billing->getFirstname() . ' ' . $billing->getLastname(),
|
| 475 |
'tel' => $billing->getTelephone(),
|
| 476 |
+
//'param1' => '',
|
| 477 |
+
//'param2' => '',
|
| 478 |
+
//'param3' => '',
|
| 479 |
+
//'title1' => '',
|
| 480 |
+
//'title2' => '',
|
| 481 |
+
//'title3' => '',
|
| 482 |
+
//'title4' => '',
|
| 483 |
+
//'visitorid' => '',
|
| 484 |
+
//'partnercode' => '',
|
| 485 |
'autoclose' => 'Y',
|
| 486 |
'directToReturn' => 'N',
|
| 487 |
'ostype' => $ostype,
|
| 488 |
'issuercountry' => $issuercountry,
|
| 489 |
+
'paymethod' => $this->_paymentMethod,
|
| 490 |
+
'billTo_city' => $billing->getCity(),
|
| 491 |
+
'billTo_country' => $billing->getCountry_id(),
|
| 492 |
+
'billTo_firstName' => $billing->getFirstname(),
|
| 493 |
+
'billTo_lastName' => $billing->getLastname(),
|
| 494 |
+
'billTo_phoneNumber' => $billing->getTelephone(),
|
| 495 |
+
'billTo_postalCode' => $billing->getPostcode(),
|
| 496 |
+
'billTo_state' => $billing->getRegionCode(),
|
| 497 |
+
'billTo_street1' => $billing->getStreet(1),
|
| 498 |
+
'billTo_street2' => $billing->getStreet(2),
|
| 499 |
+
'shipTo_city' => $shipping->getCity(),
|
| 500 |
+
'shipTo_country' => $shipping->getCountry_id(),
|
| 501 |
+
'shipTo_firstName' => $shipping->getFirstname(),
|
| 502 |
+
'shipTo_lastName' => $shipping->getLastname(),
|
| 503 |
+
'shipTo_phoneNumber' => $shipping->getTelephone(),
|
| 504 |
+
'shipTo_postalCode' => $shipping->getPostcode(),
|
| 505 |
+
'shipTo_state' => $shipping->getRegionCode(),
|
| 506 |
+
'shipTo_street1' => $shipping->getStreet(1),
|
| 507 |
+
'shipTo_street2' => $shipping->getStreet(2),
|
| 508 |
);
|
| 509 |
|
| 510 |
//get item units
|
| 511 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 512 |
$items = $order->getAllVisibleItems();
|
|
|
|
| 513 |
$itemcount=count($items);
|
| 514 |
$item_loop = 0;
|
| 515 |
if ( $itemcount > 0 ) {
|
| 516 |
foreach ($items as $itemId => $item)
|
| 517 |
{
|
| 518 |
+
$params['item_'.$item_loop.'_product'] = $item->getName();
|
| 519 |
+
$params['item_'.$item_loop.'_unitPrice'] = number_format($item->getPrice(), 2, '.', '');
|
| 520 |
+
$params['item_'.$item_loop.'_quantity'] = $item->getQtyToInvoice();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 521 |
|
|
|
|
|
|
|
|
|
|
| 522 |
$item_loop++;
|
| 523 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
}
|
| 525 |
|
| 526 |
Mage::log($params, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
app/code/community/Krp/Eximbay/Model/Event.php
CHANGED
|
@@ -82,7 +82,7 @@ class Krp_Eximbay_Model_Event
|
|
| 82 |
$params = $this->_validateEventData();
|
| 83 |
$msg = '';
|
| 84 |
if($params['rescode'] == '0000') { //ok
|
| 85 |
-
$msg = Mage::helper('eximbay')->__('The amount
|
| 86 |
$this->_processSale($msg);
|
| 87 |
$msg = Mage::helper('eximbay')->__('rescode=0000&resmsg=success');
|
| 88 |
}else{ //fail
|
|
@@ -192,14 +192,6 @@ class Krp_Eximbay_Model_Event
|
|
| 192 |
$transactionSave = Mage::getModel('core/resource_transaction')->addObject($invoice)->addObject($invoice->getOrder());
|
| 193 |
$transactionSave->save();
|
| 194 |
|
| 195 |
-
|
| 196 |
-
/*if (!$this->_order->canInvoice()) {
|
| 197 |
-
return;
|
| 198 |
-
}
|
| 199 |
-
$invoice = $this->_order->prepareInvoice();
|
| 200 |
-
$invoice->register()->capture();
|
| 201 |
-
$this->_order->addRelatedObject($invoice);*/
|
| 202 |
-
|
| 203 |
} catch (Mage_Core_Exception $e) {
|
| 204 |
return $e->getMessage();
|
| 205 |
} catch(Exception $e) {
|
|
@@ -225,7 +217,7 @@ class Krp_Eximbay_Model_Event
|
|
| 225 |
}
|
| 226 |
|
| 227 |
// check order ID
|
| 228 |
-
if (empty($params['ref'])) {
|
| 229 |
Mage::log('Exception - Missing or invalid order ID.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 230 |
Mage::throwException('Missing or invalid order ID.');
|
| 231 |
}
|
|
@@ -251,8 +243,8 @@ class Krp_Eximbay_Model_Event
|
|
| 251 |
|
| 252 |
// check transaction signature
|
| 253 |
if (empty($params['fgkey'])) {
|
| 254 |
-
Mage::log('Exception -
|
| 255 |
-
Mage::throwException('
|
| 256 |
}
|
| 257 |
|
| 258 |
if($params['rescode'] == '0000'){
|
|
@@ -270,7 +262,6 @@ class Krp_Eximbay_Model_Event
|
|
| 270 |
}
|
| 271 |
|
| 272 |
$linkBuf = $secretKey. "?mid=" .$params['mid'] ."&ref=" .$params['ref'] ."&cur=" .$params['cur'] ."&amt=" .$params['amt'] ."&rescode=" .$params['rescode'] .$suffix;
|
| 273 |
-
//$newFgkey = md5($linkBuf);
|
| 274 |
$newFgkey = hash("sha256", $linkBuf);
|
| 275 |
|
| 276 |
Mage::log($linkBuf.'/'.$newFgkey, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
|
@@ -281,21 +272,6 @@ class Krp_Eximbay_Model_Event
|
|
| 281 |
}
|
| 282 |
}
|
| 283 |
|
| 284 |
-
// check transaction amount if currency matches
|
| 285 |
-
/*if ($this->_order->getOrderCurrencyCode() == $params['cur']) {
|
| 286 |
-
if($this->_order->getOrderCurrencyCode() == 'KRW' || $this->_order->getOrderCurrencyCode() == 'JPY' || $this->_order->getOrderCurrencyCode() == 'VND')
|
| 287 |
-
{
|
| 288 |
-
if(round($this->_order->getGrandTotal(), 0, PHP_ROUND_HALF_UP) != $params['amt']){
|
| 289 |
-
Mage::log('Exception - Transaction amount does not match.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 290 |
-
Mage::throwException('Transaction amount does not match.');
|
| 291 |
-
}
|
| 292 |
-
}else{
|
| 293 |
-
if(round($this->_order->getGrandTotal(), 2) != $params['amt']) {
|
| 294 |
-
Mage::log('Exception - Transaction amount does not match.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 295 |
-
Mage::throwException('Transaction amount does not match.');
|
| 296 |
-
}
|
| 297 |
-
}
|
| 298 |
-
}*/
|
| 299 |
}
|
| 300 |
return $params;
|
| 301 |
}
|
| 82 |
$params = $this->_validateEventData();
|
| 83 |
$msg = '';
|
| 84 |
if($params['rescode'] == '0000') { //ok
|
| 85 |
+
$msg = Mage::helper('eximbay')->__('The amount was authorized and captured by EXIMBAY.');
|
| 86 |
$this->_processSale($msg);
|
| 87 |
$msg = Mage::helper('eximbay')->__('rescode=0000&resmsg=success');
|
| 88 |
}else{ //fail
|
| 192 |
$transactionSave = Mage::getModel('core/resource_transaction')->addObject($invoice)->addObject($invoice->getOrder());
|
| 193 |
$transactionSave->save();
|
| 194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
} catch (Mage_Core_Exception $e) {
|
| 196 |
return $e->getMessage();
|
| 197 |
} catch(Exception $e) {
|
| 217 |
}
|
| 218 |
|
| 219 |
// check order ID
|
| 220 |
+
if (empty($params['ref'])) {
|
| 221 |
Mage::log('Exception - Missing or invalid order ID.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 222 |
Mage::throwException('Missing or invalid order ID.');
|
| 223 |
}
|
| 243 |
|
| 244 |
// check transaction signature
|
| 245 |
if (empty($params['fgkey'])) {
|
| 246 |
+
Mage::log('Exception - Missing or invalid transaction signature.', null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 247 |
+
Mage::throwException('Missing or invalid transaction signature.');
|
| 248 |
}
|
| 249 |
|
| 250 |
if($params['rescode'] == '0000'){
|
| 262 |
}
|
| 263 |
|
| 264 |
$linkBuf = $secretKey. "?mid=" .$params['mid'] ."&ref=" .$params['ref'] ."&cur=" .$params['cur'] ."&amt=" .$params['amt'] ."&rescode=" .$params['rescode'] .$suffix;
|
|
|
|
| 265 |
$newFgkey = hash("sha256", $linkBuf);
|
| 266 |
|
| 267 |
Mage::log($linkBuf.'/'.$newFgkey, null, 'eximbay'.Mage::getModel('core/date')->date('Y-m-d').'.log');
|
| 272 |
}
|
| 273 |
}
|
| 274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 275 |
}
|
| 276 |
return $params;
|
| 277 |
}
|
app/code/community/Krp/Eximbay/Model/Popup.php
CHANGED
|
@@ -31,7 +31,7 @@ class Krp_Eximbay_Model_Popup
|
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
-
array('value' =>
|
| 35 |
);
|
| 36 |
}
|
| 37 |
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
+
array('value' => 'P', 'label'=>Mage::helper('eximbay')->__('Popup')),
|
| 35 |
);
|
| 36 |
}
|
| 37 |
|
app/code/community/Krp/Eximbay/Model/Popupiframe.php
CHANGED
|
@@ -31,8 +31,8 @@ class Krp_Eximbay_Model_Popupiframe
|
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
-
array('value' =>
|
| 35 |
-
|
| 36 |
);
|
| 37 |
}
|
| 38 |
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
+
array('value' => 'P', 'label'=>Mage::helper('eximbay')->__('Popup')),
|
| 35 |
+
array('value' => 'I', 'label'=>Mage::helper('eximbay')->__('IFrame')),
|
| 36 |
);
|
| 37 |
}
|
| 38 |
|
app/code/community/Krp/Eximbay/Model/Popupiframeredirect.php
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
class Krp_Eximbay_Model_Popupiframeredirect
|
| 24 |
+
{
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* Options getter
|
| 28 |
+
*
|
| 29 |
+
* @return array
|
| 30 |
+
*/
|
| 31 |
+
public function toOptionArray()
|
| 32 |
+
{
|
| 33 |
+
return array(
|
| 34 |
+
array('value' => 'P', 'label'=>Mage::helper('eximbay')->__('Popup')),
|
| 35 |
+
array('value' => 'I', 'label'=>Mage::helper('eximbay')->__('IFrame')),
|
| 36 |
+
array('value' => 'R', 'label'=>Mage::helper('eximbay')->__('Redirect')),
|
| 37 |
+
);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
?>
|
app/code/community/Krp/Eximbay/Model/{Version.php → Popupredirect.php}
RENAMED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
| 21 |
*/
|
| 22 |
|
| 23 |
-
class
|
| 24 |
{
|
| 25 |
|
| 26 |
/**
|
|
@@ -31,9 +31,8 @@ class Krp_Eximbay_Model_Version
|
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
array('value' => 200, 'label'=>Mage::helper('eximbay')->__('200')),
|
| 37 |
);
|
| 38 |
}
|
| 39 |
|
| 20 |
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
| 21 |
*/
|
| 22 |
|
| 23 |
+
class Krp_Eximbay_Model_Popupredirect
|
| 24 |
{
|
| 25 |
|
| 26 |
/**
|
| 31 |
public function toOptionArray()
|
| 32 |
{
|
| 33 |
return array(
|
| 34 |
+
array('value' => 'P', 'label'=>Mage::helper('eximbay')->__('Popup')),
|
| 35 |
+
array('value' => 'R', 'label'=>Mage::helper('eximbay')->__('Redirect')),
|
|
|
|
| 36 |
);
|
| 37 |
}
|
| 38 |
|
app/code/community/Krp/Eximbay/etc/config.xml
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Krp_Eximbay>
|
| 27 |
-
<version>
|
| 28 |
</Krp_Eximbay>
|
| 29 |
</modules>
|
| 30 |
<global>
|
| 24 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Krp_Eximbay>
|
| 27 |
+
<version>3.0.0</version>
|
| 28 |
</Krp_Eximbay>
|
| 29 |
</modules>
|
| 30 |
<global>
|
app/code/community/Krp/Eximbay/etc/system.xml
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
<payment>
|
| 27 |
<groups>
|
| 28 |
<eximbay_acc translate="label" module="eximbay">
|
| 29 |
-
<label>Credit Cards/ Visa, Mastercard, JCB,
|
| 30 |
<frontend_type>text</frontend_type>
|
| 31 |
<sort_order>50</sort_order>
|
| 32 |
<show_in_default>1</show_in_default>
|
|
@@ -98,17 +98,6 @@
|
|
| 98 |
<show_in_website>1</show_in_website>
|
| 99 |
<show_in_store>0</show_in_store>
|
| 100 |
</test>
|
| 101 |
-
<ver translate="label">
|
| 102 |
-
<label>API Version</label>
|
| 103 |
-
<comment>Insert an Eximbay API version</comment>
|
| 104 |
-
<frontend_type>select</frontend_type>
|
| 105 |
-
<config_path>payment/eximbay_acc/ver</config_path>
|
| 106 |
-
<source_model>eximbay/version</source_model>
|
| 107 |
-
<sort_order>7</sort_order>
|
| 108 |
-
<show_in_default>0</show_in_default>
|
| 109 |
-
<show_in_website>0</show_in_website>
|
| 110 |
-
<show_in_store>0</show_in_store>
|
| 111 |
-
</ver>
|
| 112 |
<localpayment translate="label">
|
| 113 |
<label>Korean Local Payment</label>
|
| 114 |
<comment>If you prefer Korean Local Card Payment over Global Payment, choose 'Yes'.</comment>
|
|
@@ -122,10 +111,10 @@
|
|
| 122 |
</localpayment>
|
| 123 |
<dtype translate="label">
|
| 124 |
<label>Payment Page Type</label>
|
| 125 |
-
<comment>Choose your payment page type, IFrame or
|
| 126 |
<frontend_type>select</frontend_type>
|
| 127 |
<config_path>payment/eximbay_acc/dtype</config_path>
|
| 128 |
-
<source_model>eximbay/
|
| 129 |
<sort_order>9</sort_order>
|
| 130 |
<show_in_default>1</show_in_default>
|
| 131 |
<show_in_website>1</show_in_website>
|
|
@@ -224,26 +213,15 @@
|
|
| 224 |
<show_in_website>1</show_in_website>
|
| 225 |
<show_in_store>0</show_in_store>
|
| 226 |
</test>
|
| 227 |
-
<ver translate="label">
|
| 228 |
-
<label>API Version</label>
|
| 229 |
-
<comment>Insert an Eximbay API version</comment>
|
| 230 |
-
<frontend_type>select</frontend_type>
|
| 231 |
-
<config_path>payment/eximbay_ppl/ver</config_path>
|
| 232 |
-
<source_model>eximbay/version</source_model>
|
| 233 |
-
<sort_order>7</sort_order>
|
| 234 |
-
<show_in_default>0</show_in_default>
|
| 235 |
-
<show_in_website>0</show_in_website>
|
| 236 |
-
<show_in_store>0</show_in_store>
|
| 237 |
-
</ver>
|
| 238 |
<dtype translate="label">
|
| 239 |
<label>Payment Page Type</label>
|
| 240 |
-
<comment>Choose your payment page type,
|
| 241 |
<frontend_type>select</frontend_type>
|
| 242 |
<config_path>payment/eximbay_ppl/dtype</config_path>
|
| 243 |
-
<source_model>eximbay/
|
| 244 |
<sort_order>8</sort_order>
|
| 245 |
-
<show_in_default>
|
| 246 |
-
<show_in_website>
|
| 247 |
<show_in_store>0</show_in_store>
|
| 248 |
</dtype>
|
| 249 |
<allowspecific translate="label">
|
|
@@ -339,26 +317,15 @@
|
|
| 339 |
<show_in_website>1</show_in_website>
|
| 340 |
<show_in_store>0</show_in_store>
|
| 341 |
</test>
|
| 342 |
-
<ver translate="label">
|
| 343 |
-
<label>API Version</label>
|
| 344 |
-
<comment>Insert an Eximbay API version</comment>
|
| 345 |
-
<frontend_type>select</frontend_type>
|
| 346 |
-
<config_path>payment/eximbay_cup/ver</config_path>
|
| 347 |
-
<source_model>eximbay/version</source_model>
|
| 348 |
-
<sort_order>7</sort_order>
|
| 349 |
-
<show_in_default>0</show_in_default>
|
| 350 |
-
<show_in_website>0</show_in_website>
|
| 351 |
-
<show_in_store>0</show_in_store>
|
| 352 |
-
</ver>
|
| 353 |
<dtype translate="label">
|
| 354 |
<label>Payment Page Type</label>
|
| 355 |
-
<comment>Choose your payment page type,
|
| 356 |
<frontend_type>select</frontend_type>
|
| 357 |
<config_path>payment/eximbay_cup/dtype</config_path>
|
| 358 |
-
<source_model>eximbay/
|
| 359 |
<sort_order>8</sort_order>
|
| 360 |
-
<show_in_default>
|
| 361 |
-
<show_in_website>
|
| 362 |
<show_in_store>0</show_in_store>
|
| 363 |
</dtype>
|
| 364 |
<allowspecific translate="label">
|
|
@@ -454,26 +421,15 @@
|
|
| 454 |
<show_in_website>1</show_in_website>
|
| 455 |
<show_in_store>0</show_in_store>
|
| 456 |
</test>
|
| 457 |
-
<ver translate="label">
|
| 458 |
-
<label>API Version</label>
|
| 459 |
-
<comment>Insert an Eximbay API version</comment>
|
| 460 |
-
<frontend_type>select</frontend_type>
|
| 461 |
-
<config_path>payment/eximbay_alp/ver</config_path>
|
| 462 |
-
<source_model>eximbay/version</source_model>
|
| 463 |
-
<sort_order>7</sort_order>
|
| 464 |
-
<show_in_default>0</show_in_default>
|
| 465 |
-
<show_in_website>0</show_in_website>
|
| 466 |
-
<show_in_store>0</show_in_store>
|
| 467 |
-
</ver>
|
| 468 |
<dtype translate="label">
|
| 469 |
<label>Payment Page Type</label>
|
| 470 |
-
<comment>Choose your payment page type,
|
| 471 |
<frontend_type>select</frontend_type>
|
| 472 |
<config_path>payment/eximbay_alp/dtype</config_path>
|
| 473 |
-
<source_model>eximbay/
|
| 474 |
<sort_order>8</sort_order>
|
| 475 |
-
<show_in_default>
|
| 476 |
-
<show_in_website>
|
| 477 |
<show_in_store>0</show_in_store>
|
| 478 |
</dtype>
|
| 479 |
<allowspecific translate="label">
|
|
@@ -569,26 +525,15 @@
|
|
| 569 |
<show_in_website>1</show_in_website>
|
| 570 |
<show_in_store>0</show_in_store>
|
| 571 |
</test>
|
| 572 |
-
<ver translate="label">
|
| 573 |
-
<label>API Version</label>
|
| 574 |
-
<comment>Insert an Eximbay API version</comment>
|
| 575 |
-
<frontend_type>select</frontend_type>
|
| 576 |
-
<config_path>payment/eximbay_tnp/ver</config_path>
|
| 577 |
-
<source_model>eximbay/version</source_model>
|
| 578 |
-
<sort_order>7</sort_order>
|
| 579 |
-
<show_in_default>0</show_in_default>
|
| 580 |
-
<show_in_website>0</show_in_website>
|
| 581 |
-
<show_in_store>0</show_in_store>
|
| 582 |
-
</ver>
|
| 583 |
<dtype translate="label">
|
| 584 |
<label>Payment Page Type</label>
|
| 585 |
-
<comment>Choose your payment page type,
|
| 586 |
<frontend_type>select</frontend_type>
|
| 587 |
<config_path>payment/eximbay_tnp/dtype</config_path>
|
| 588 |
-
<source_model>eximbay/
|
| 589 |
<sort_order>8</sort_order>
|
| 590 |
-
<show_in_default>
|
| 591 |
-
<show_in_website>
|
| 592 |
<show_in_store>0</show_in_store>
|
| 593 |
</dtype>
|
| 594 |
<allowspecific translate="label">
|
|
@@ -684,26 +629,15 @@
|
|
| 684 |
<show_in_website>1</show_in_website>
|
| 685 |
<show_in_store>0</show_in_store>
|
| 686 |
</test>
|
| 687 |
-
<ver translate="label">
|
| 688 |
-
<label>API Version</label>
|
| 689 |
-
<comment>Insert an Eximbay API version</comment>
|
| 690 |
-
<frontend_type>select</frontend_type>
|
| 691 |
-
<config_path>payment/eximbay_wct/ver</config_path>
|
| 692 |
-
<source_model>eximbay/version</source_model>
|
| 693 |
-
<sort_order>7</sort_order>
|
| 694 |
-
<show_in_default>0</show_in_default>
|
| 695 |
-
<show_in_website>0</show_in_website>
|
| 696 |
-
<show_in_store>0</show_in_store>
|
| 697 |
-
</ver>
|
| 698 |
<dtype translate="label">
|
| 699 |
<label>Payment Page Type</label>
|
| 700 |
-
<comment>Choose your payment page type,
|
| 701 |
<frontend_type>select</frontend_type>
|
| 702 |
<config_path>payment/eximbay_wct/dtype</config_path>
|
| 703 |
-
<source_model>eximbay/
|
| 704 |
<sort_order>8</sort_order>
|
| 705 |
-
<show_in_default>
|
| 706 |
-
<show_in_website>
|
| 707 |
<show_in_store>0</show_in_store>
|
| 708 |
</dtype>
|
| 709 |
<allowspecific translate="label">
|
|
@@ -799,26 +733,15 @@
|
|
| 799 |
<show_in_website>1</show_in_website>
|
| 800 |
<show_in_store>0</show_in_store>
|
| 801 |
</test>
|
| 802 |
-
<ver translate="label">
|
| 803 |
-
<label>API Version</label>
|
| 804 |
-
<comment>Insert an Eximbay API version</comment>
|
| 805 |
-
<frontend_type>select</frontend_type>
|
| 806 |
-
<config_path>payment/eximbay_nnb/ver</config_path>
|
| 807 |
-
<source_model>eximbay/version</source_model>
|
| 808 |
-
<sort_order>7</sort_order>
|
| 809 |
-
<show_in_default>0</show_in_default>
|
| 810 |
-
<show_in_website>0</show_in_website>
|
| 811 |
-
<show_in_store>0</show_in_store>
|
| 812 |
-
</ver>
|
| 813 |
<dtype translate="label">
|
| 814 |
<label>Payment Page Type</label>
|
| 815 |
-
<comment>Choose your payment page type,
|
| 816 |
<frontend_type>select</frontend_type>
|
| 817 |
<config_path>payment/eximbay_nnb/dtype</config_path>
|
| 818 |
-
<source_model>eximbay/
|
| 819 |
<sort_order>8</sort_order>
|
| 820 |
-
<show_in_default>
|
| 821 |
-
<show_in_website>
|
| 822 |
<show_in_store>0</show_in_store>
|
| 823 |
</dtype>
|
| 824 |
<allowspecific translate="label">
|
|
@@ -842,7 +765,7 @@
|
|
| 842 |
</fields>
|
| 843 |
</eximbay_nnb>
|
| 844 |
<eximbay_ecn translate="label" module="eximbay">
|
| 845 |
-
<label>
|
| 846 |
<frontend_type>text</frontend_type>
|
| 847 |
<sort_order>57</sort_order>
|
| 848 |
<show_in_default>1</show_in_default>
|
|
@@ -914,23 +837,12 @@
|
|
| 914 |
<show_in_website>1</show_in_website>
|
| 915 |
<show_in_store>0</show_in_store>
|
| 916 |
</test>
|
| 917 |
-
<ver translate="label">
|
| 918 |
-
<label>API Version</label>
|
| 919 |
-
<comment>Insert an Eximbay API version</comment>
|
| 920 |
-
<frontend_type>select</frontend_type>
|
| 921 |
-
<config_path>payment/eximbay_ecn/ver</config_path>
|
| 922 |
-
<source_model>eximbay/version</source_model>
|
| 923 |
-
<sort_order>7</sort_order>
|
| 924 |
-
<show_in_default>0</show_in_default>
|
| 925 |
-
<show_in_website>0</show_in_website>
|
| 926 |
-
<show_in_store>0</show_in_store>
|
| 927 |
-
</ver>
|
| 928 |
<dtype translate="label">
|
| 929 |
<label>Payment Page Type</label>
|
| 930 |
-
<comment>Choose your payment page type, IFrame or
|
| 931 |
<frontend_type>select</frontend_type>
|
| 932 |
<config_path>payment/eximbay_ecn/dtype</config_path>
|
| 933 |
-
<source_model>eximbay/
|
| 934 |
<sort_order>8</sort_order>
|
| 935 |
<show_in_default>1</show_in_default>
|
| 936 |
<show_in_website>1</show_in_website>
|
|
@@ -1029,23 +941,12 @@
|
|
| 1029 |
<show_in_website>1</show_in_website>
|
| 1030 |
<show_in_store>0</show_in_store>
|
| 1031 |
</test>
|
| 1032 |
-
<ver translate="label">
|
| 1033 |
-
<label>API Version</label>
|
| 1034 |
-
<comment>Insert an Eximbay API version</comment>
|
| 1035 |
-
<frontend_type>select</frontend_type>
|
| 1036 |
-
<config_path>payment/eximbay_all/ver</config_path>
|
| 1037 |
-
<source_model>eximbay/version</source_model>
|
| 1038 |
-
<sort_order>7</sort_order>
|
| 1039 |
-
<show_in_default>0</show_in_default>
|
| 1040 |
-
<show_in_website>0</show_in_website>
|
| 1041 |
-
<show_in_store>0</show_in_store>
|
| 1042 |
-
</ver>
|
| 1043 |
<dtype translate="label">
|
| 1044 |
<label>Payment Page Type</label>
|
| 1045 |
-
<comment>Choose your payment page type,
|
| 1046 |
<frontend_type>select</frontend_type>
|
| 1047 |
<config_path>payment/eximbay_all/dtype</config_path>
|
| 1048 |
-
<source_model>eximbay/
|
| 1049 |
<sort_order>8</sort_order>
|
| 1050 |
<show_in_default>1</show_in_default>
|
| 1051 |
<show_in_website>1</show_in_website>
|
| 26 |
<payment>
|
| 27 |
<groups>
|
| 28 |
<eximbay_acc translate="label" module="eximbay">
|
| 29 |
+
<label>Credit Cards/ Visa, Mastercard, JCB, AMEX ... (Powered by Eximbay)</label>
|
| 30 |
<frontend_type>text</frontend_type>
|
| 31 |
<sort_order>50</sort_order>
|
| 32 |
<show_in_default>1</show_in_default>
|
| 98 |
<show_in_website>1</show_in_website>
|
| 99 |
<show_in_store>0</show_in_store>
|
| 100 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
<localpayment translate="label">
|
| 102 |
<label>Korean Local Payment</label>
|
| 103 |
<comment>If you prefer Korean Local Card Payment over Global Payment, choose 'Yes'.</comment>
|
| 111 |
</localpayment>
|
| 112 |
<dtype translate="label">
|
| 113 |
<label>Payment Page Type</label>
|
| 114 |
+
<comment>Choose your payment page type, Popup, IFrame or Redirect.</comment>
|
| 115 |
<frontend_type>select</frontend_type>
|
| 116 |
<config_path>payment/eximbay_acc/dtype</config_path>
|
| 117 |
+
<source_model>eximbay/popupiframeredirect</source_model>
|
| 118 |
<sort_order>9</sort_order>
|
| 119 |
<show_in_default>1</show_in_default>
|
| 120 |
<show_in_website>1</show_in_website>
|
| 213 |
<show_in_website>1</show_in_website>
|
| 214 |
<show_in_store>0</show_in_store>
|
| 215 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
<dtype translate="label">
|
| 217 |
<label>Payment Page Type</label>
|
| 218 |
+
<comment>Choose your payment page type, Popup or Redirect.</comment>
|
| 219 |
<frontend_type>select</frontend_type>
|
| 220 |
<config_path>payment/eximbay_ppl/dtype</config_path>
|
| 221 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 222 |
<sort_order>8</sort_order>
|
| 223 |
+
<show_in_default>1</show_in_default>
|
| 224 |
+
<show_in_website>1</show_in_website>
|
| 225 |
<show_in_store>0</show_in_store>
|
| 226 |
</dtype>
|
| 227 |
<allowspecific translate="label">
|
| 317 |
<show_in_website>1</show_in_website>
|
| 318 |
<show_in_store>0</show_in_store>
|
| 319 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
<dtype translate="label">
|
| 321 |
<label>Payment Page Type</label>
|
| 322 |
+
<comment>Choose your payment page type, Popup or Redirect.</comment>
|
| 323 |
<frontend_type>select</frontend_type>
|
| 324 |
<config_path>payment/eximbay_cup/dtype</config_path>
|
| 325 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 326 |
<sort_order>8</sort_order>
|
| 327 |
+
<show_in_default>1</show_in_default>
|
| 328 |
+
<show_in_website>1</show_in_website>
|
| 329 |
<show_in_store>0</show_in_store>
|
| 330 |
</dtype>
|
| 331 |
<allowspecific translate="label">
|
| 421 |
<show_in_website>1</show_in_website>
|
| 422 |
<show_in_store>0</show_in_store>
|
| 423 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 424 |
<dtype translate="label">
|
| 425 |
<label>Payment Page Type</label>
|
| 426 |
+
<comment>Choose your payment page type, Popup or Redirec.</comment>
|
| 427 |
<frontend_type>select</frontend_type>
|
| 428 |
<config_path>payment/eximbay_alp/dtype</config_path>
|
| 429 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 430 |
<sort_order>8</sort_order>
|
| 431 |
+
<show_in_default>1</show_in_default>
|
| 432 |
+
<show_in_website>1</show_in_website>
|
| 433 |
<show_in_store>0</show_in_store>
|
| 434 |
</dtype>
|
| 435 |
<allowspecific translate="label">
|
| 525 |
<show_in_website>1</show_in_website>
|
| 526 |
<show_in_store>0</show_in_store>
|
| 527 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 528 |
<dtype translate="label">
|
| 529 |
<label>Payment Page Type</label>
|
| 530 |
+
<comment>Choose your payment page type, Popup or Redirect.</comment>
|
| 531 |
<frontend_type>select</frontend_type>
|
| 532 |
<config_path>payment/eximbay_tnp/dtype</config_path>
|
| 533 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 534 |
<sort_order>8</sort_order>
|
| 535 |
+
<show_in_default>1</show_in_default>
|
| 536 |
+
<show_in_website>1</show_in_website>
|
| 537 |
<show_in_store>0</show_in_store>
|
| 538 |
</dtype>
|
| 539 |
<allowspecific translate="label">
|
| 629 |
<show_in_website>1</show_in_website>
|
| 630 |
<show_in_store>0</show_in_store>
|
| 631 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 632 |
<dtype translate="label">
|
| 633 |
<label>Payment Page Type</label>
|
| 634 |
+
<comment>Choose your payment page type, Popup or Redirect.</comment>
|
| 635 |
<frontend_type>select</frontend_type>
|
| 636 |
<config_path>payment/eximbay_wct/dtype</config_path>
|
| 637 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 638 |
<sort_order>8</sort_order>
|
| 639 |
+
<show_in_default>1</show_in_default>
|
| 640 |
+
<show_in_website>1</show_in_website>
|
| 641 |
<show_in_store>0</show_in_store>
|
| 642 |
</dtype>
|
| 643 |
<allowspecific translate="label">
|
| 733 |
<show_in_website>1</show_in_website>
|
| 734 |
<show_in_store>0</show_in_store>
|
| 735 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 736 |
<dtype translate="label">
|
| 737 |
<label>Payment Page Type</label>
|
| 738 |
+
<comment>Choose your payment page type, Popup or Redirect.</comment>
|
| 739 |
<frontend_type>select</frontend_type>
|
| 740 |
<config_path>payment/eximbay_nnb/dtype</config_path>
|
| 741 |
+
<source_model>eximbay/popupredirect</source_model>
|
| 742 |
<sort_order>8</sort_order>
|
| 743 |
+
<show_in_default>1</show_in_default>
|
| 744 |
+
<show_in_website>1</show_in_website>
|
| 745 |
<show_in_store>0</show_in_store>
|
| 746 |
</dtype>
|
| 747 |
<allowspecific translate="label">
|
| 765 |
</fields>
|
| 766 |
</eximbay_nnb>
|
| 767 |
<eximbay_ecn translate="label" module="eximbay">
|
| 768 |
+
<label>Convenience Store/Online Banking Payment - Japan (Powered by Eximbay)</label>
|
| 769 |
<frontend_type>text</frontend_type>
|
| 770 |
<sort_order>57</sort_order>
|
| 771 |
<show_in_default>1</show_in_default>
|
| 837 |
<show_in_website>1</show_in_website>
|
| 838 |
<show_in_store>0</show_in_store>
|
| 839 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 840 |
<dtype translate="label">
|
| 841 |
<label>Payment Page Type</label>
|
| 842 |
+
<comment>Choose your payment page type, Popup, IFrame or Redirect.</comment>
|
| 843 |
<frontend_type>select</frontend_type>
|
| 844 |
<config_path>payment/eximbay_ecn/dtype</config_path>
|
| 845 |
+
<source_model>eximbay/popupiframeredirect</source_model>
|
| 846 |
<sort_order>8</sort_order>
|
| 847 |
<show_in_default>1</show_in_default>
|
| 848 |
<show_in_website>1</show_in_website>
|
| 941 |
<show_in_website>1</show_in_website>
|
| 942 |
<show_in_store>0</show_in_store>
|
| 943 |
</test>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 944 |
<dtype translate="label">
|
| 945 |
<label>Payment Page Type</label>
|
| 946 |
+
<comment>Choose your payment page type, Popup.</comment>
|
| 947 |
<frontend_type>select</frontend_type>
|
| 948 |
<config_path>payment/eximbay_all/dtype</config_path>
|
| 949 |
+
<source_model>eximbay/popup</source_model>
|
| 950 |
<sort_order>8</sort_order>
|
| 951 |
<show_in_default>1</show_in_default>
|
| 952 |
<show_in_website>1</show_in_website>
|
app/design/adminhtml/default/default/template/eximbay/info.phtml
CHANGED
|
@@ -24,5 +24,5 @@
|
|
| 24 |
<?php if ($this->getInfo()->getLastTransId() == ''): ?>
|
| 25 |
<?php echo Mage::helper('eximbay')->__('Payment has not been processed yet.') ?><br />
|
| 26 |
<?php else: ?>
|
| 27 |
-
<?php echo Mage::helper('eximbay')->__('
|
| 28 |
<?php endif; ?>
|
| 24 |
<?php if ($this->getInfo()->getLastTransId() == ''): ?>
|
| 25 |
<?php echo Mage::helper('eximbay')->__('Payment has not been processed yet.') ?><br />
|
| 26 |
<?php else: ?>
|
| 27 |
+
<?php echo Mage::helper('eximbay')->__('Payment was processed.') ?><br />
|
| 28 |
<?php endif; ?>
|
app/design/frontend/base/default/template/eximbay/info.phtml
CHANGED
|
@@ -23,6 +23,4 @@
|
|
| 23 |
<?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?><br />
|
| 24 |
<?php if ($this->getInfo()->getLastTransId() == ''): ?>
|
| 25 |
<em><?php echo Mage::helper('eximbay')->__('You will be redirected to our secure payment page when you place an order.') ?></em>
|
| 26 |
-
<?php else: ?>
|
| 27 |
-
<?php echo Mage::helper('eximbay')->__('Eximbay Transaction ID: %s', $this->escapeHtml($this->getInfo()->getLastTransId())) ?><br />
|
| 28 |
<?php endif; ?>
|
| 23 |
<?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?><br />
|
| 24 |
<?php if ($this->getInfo()->getLastTransId() == ''): ?>
|
| 25 |
<em><?php echo Mage::helper('eximbay')->__('You will be redirected to our secure payment page when you place an order.') ?></em>
|
|
|
|
|
|
|
| 26 |
<?php endif; ?>
|
app/design/frontend/base/default/template/eximbay/payment.phtml
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
|
| 27 |
<table style="width:100%; border:1;">
|
| 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>
|
|
@@ -40,17 +40,26 @@
|
|
| 40 |
</td>
|
| 41 |
</tr>
|
| 42 |
</table>
|
| 43 |
-
|
| 44 |
<script type="text/javascript">
|
| 45 |
//<![CDATA[
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
var popup = window.open('<?php echo Mage::getUrl('eximbay/processing/placeform') ?>','payment2','scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=425,height=550,top=200,left=300');
|
| 49 |
//check if popup is blocked
|
| 50 |
if(!popup || popup.closed || typeof popup.closed=='undefined'){
|
| 51 |
alert("<?php echo Mage::helper('eximbay')->__('Turn off pop-up blocker and try again please.') ?>");
|
| 52 |
}
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
//]]>
|
| 55 |
-
</script>
|
| 56 |
-
<?php endif; ?>
|
| 26 |
|
| 27 |
<table style="width:100%; border:1;">
|
| 28 |
<tr>
|
| 29 |
+
<?php if ($this->getEximbayDisplayType() == 'I'): ?>
|
| 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>
|
| 40 |
</td>
|
| 41 |
</tr>
|
| 42 |
</table>
|
| 43 |
+
|
| 44 |
<script type="text/javascript">
|
| 45 |
//<![CDATA[
|
| 46 |
+
<?php if ($this->getEximbayDisplayType() == 'P'): ?>
|
| 47 |
+
window.onload = openPopup;
|
| 48 |
+
<?php elseif ($this->getEximbayDisplayType() == 'R'): ?>
|
| 49 |
+
window.onload = doRedirect;
|
| 50 |
+
<?php endif; ?>
|
| 51 |
+
|
| 52 |
+
function openPopup() {
|
| 53 |
var popup = window.open('<?php echo Mage::getUrl('eximbay/processing/placeform') ?>','payment2','scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=425,height=550,top=200,left=300');
|
| 54 |
//check if popup is blocked
|
| 55 |
if(!popup || popup.closed || typeof popup.closed=='undefined'){
|
| 56 |
alert("<?php echo Mage::helper('eximbay')->__('Turn off pop-up blocker and try again please.') ?>");
|
| 57 |
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
function doRedirect() {
|
| 61 |
+
window.location.href="<?php echo Mage::getUrl('eximbay/processing/placeform') ?>";
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
//]]>
|
| 65 |
+
</script>
|
|
|
app/design/frontend/base/default/template/eximbay/redirect.phtml
CHANGED
|
@@ -24,11 +24,13 @@
|
|
| 24 |
<head>
|
| 25 |
<script type="text/javascript">
|
| 26 |
//<![CDATA[
|
| 27 |
-
<?php if ($this->getEximbayDisplayType()): ?>
|
| 28 |
-
parent.location.href="<?php echo $this->getRedirectUrl() ?>";
|
| 29 |
-
<?php
|
| 30 |
window.opener.location.href="<?php echo $this->getRedirectUrl() ?>";
|
| 31 |
window.self.close();
|
|
|
|
|
|
|
| 32 |
<?php endif; ?>
|
| 33 |
//]]>
|
| 34 |
</script>
|
| 24 |
<head>
|
| 25 |
<script type="text/javascript">
|
| 26 |
//<![CDATA[
|
| 27 |
+
<?php if ($this->getEximbayDisplayType() == 'I'): ?>
|
| 28 |
+
parent.location.href="<?php echo $this->getRedirectUrl() ?>";
|
| 29 |
+
<?php elseif ($this->getEximbayDisplayType() == 'P'): ?>
|
| 30 |
window.opener.location.href="<?php echo $this->getRedirectUrl() ?>";
|
| 31 |
window.self.close();
|
| 32 |
+
<?php elseif ($this->getEximbayDisplayType() == 'R'): ?>
|
| 33 |
+
window.location.href="<?php echo $this->getRedirectUrl() ?>";
|
| 34 |
<?php endif; ?>
|
| 35 |
//]]>
|
| 36 |
</script>
|
app/locale/en_US/Krp_Eximbay.csv
CHANGED
|
@@ -7,11 +7,12 @@ Payment failed.,Payment failed.
|
|
| 7 |
Payment from Applicable Countries,Payment from Applicable Countries
|
| 8 |
Payment from Specific Countries,Payment from Specific Countries
|
| 9 |
Payment has not been processed yet.,Payment has not been processed yet.
|
|
|
|
| 10 |
Payment was canceled.,Payment was canceled.
|
| 11 |
Please pay your order now,Please pay your order now
|
| 12 |
Powered by Eximbay,Powered by Eximbay
|
| 13 |
Sort Order,Sort Order
|
| 14 |
-
The amount
|
| 15 |
The customer was redirected to Eximbay.,The customer was redirected to Eximbay.
|
| 16 |
The order has been canceled.,The order has been canceled.
|
| 17 |
Title,Title
|
| 7 |
Payment from Applicable Countries,Payment from Applicable Countries
|
| 8 |
Payment from Specific Countries,Payment from Specific Countries
|
| 9 |
Payment has not been processed yet.,Payment has not been processed yet.
|
| 10 |
+
Payment was processed.,Payment was processed.
|
| 11 |
Payment was canceled.,Payment was canceled.
|
| 12 |
Please pay your order now,Please pay your order now
|
| 13 |
Powered by Eximbay,Powered by Eximbay
|
| 14 |
Sort Order,Sort Order
|
| 15 |
+
The amount was authorized and captured by Eximbay.,The amount was authorized and captured by Eximbay.
|
| 16 |
The customer was redirected to Eximbay.,The customer was redirected to Eximbay.
|
| 17 |
The order has been canceled.,The order has been canceled.
|
| 18 |
Title,Title
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Eximbay</name>
|
| 4 |
-
<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>
|
| 12 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
| 13 |
-
<date>2016-
|
| 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="907991b8d3763968006af490eb803a32"/></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="
|
| 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>3.0.0</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 'Redirect' option.</notes>
|
| 12 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
| 13 |
+
<date>2016-02-12</date>
|
| 14 |
+
<time>01:59:00</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="907991b8d3763968006af490eb803a32"/></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="7b6a742446c36147dfb8bab7cc1ea074"/><file name="Acc.php" hash="e01ef19e450cc81d7abea76716a68ee3"/><file name="All.php" hash="4a1fe99522a07b0594f62a5fc93d7279"/><file name="Alp.php" hash="fc5e746a521d7e8fe609d56dd8971fb2"/><file name="Cup.php" hash="3e61b570bf9ec0f47a8282b289c5cbc2"/><file name="Ecn.php" hash="8c81daff5feccef2173f7afe399d2b4d"/><file name="Event.php" hash="5e2701f90d04ae3b7e8f92b81b588b05"/><file name="Nnb.php" hash="dbfd83d3c79479decb81ecd2198a3f31"/><file name="Popup.php" hash="4f441b822a2bb7304769e62b1ceee43b"/><file name="Popupiframe.php" hash="3a496680c47d534077723b53c9aa1edf"/><file name="Popupiframeredirect.php" hash="fae35c4f31cf3dbf2f9410be14b8e741"/><file name="Popupredirect.php" hash="f45f1543803b31e7cdd2744578e17c31"/><file name="Ppl.php" hash="67a14f356dbc79d54b3ad8448416bca6"/><file name="Tnp.php" hash="f5a167e11ec3c37b16d87ac4284f1f95"/><file name="Wct.php" hash="b9b24b4bcccba0d98150622621493f39"/></dir><dir name="controllers"><file name="EximbayController.php" hash="9aef2e23676514be7da811f02ace1638"/><file name="ProcessingController.php" hash="fd0105556407a7ccb85c530b6bfc9ccb"/></dir><dir name="etc"><file name="config.xml" hash="4f7fb29f85cd062e97a1d49e3f7a2a81"/><file name="system.xml" hash="215750962be4082457625dd72c7d375b"/></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="0bb32e588ee4864bce2d3d362f984089"/><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="54999a880758c5b6808782e1d8e8a54a"/></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="64b1110042f90c6c8a23a91d146d5c82"/><file name="payment.phtml" hash="e58c4df8ca3182bad64af78bccb5b1d4"/><file name="placeform.phtml" hash="38e1f0c3f2753020994996fcf06b6c53"/><file name="redirect.phtml" hash="0e909f398c4cafef5e15ab99c7b9ce5d"/></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="b11c50acebc02d4f518a309402dd9559"/></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="6caf2218511d1658e00224bfce70bb7e"/><file name="eximbay_acc_02.jpg" hash="b64b77cd6a2a3bcea931e78c85b01e54"/><file name="eximbay_all.png" hash="267e51c8853d83772e8950d55ba8c35e"/><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"/><file name="eximbay_wct.jpg" hash="ebb3613df8d89b8c7a398c91fb2c6e88"/></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>
|
