Version Notes
The stable version.
Download this release
Release Info
Developer | KRPartners Co.,Ltd |
Extension | Eximbay |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/core/Mage/Eximbay/Block/Info.php +0 -30
- app/code/core/Mage/Eximbay/Block/Payment.php +0 -33
- app/code/core/Mage/Eximbay/Block/Redirect.php +0 -28
- app/code/core/Mage/Eximbay/Model/Abstract.php +0 -225
- app/code/core/Mage/Eximbay/Model/Acc.php +0 -25
- app/code/core/Mage/Eximbay/etc/system.xml +0 -91
- app/code/core/Mage/Eximbay/etc/system.xml.bak +0 -91
- app/code/core/Mage/Eximbay/sql/eximbay_setup/mysql4-install-0.1.0.php +0 -14
- app/code/{core → local}/Mage/Eximbay/Block/Form.php +13 -8
- app/code/local/Mage/Eximbay/Block/Info.php +43 -0
- app/code/{core → local}/Mage/Eximbay/Block/Jsinit.php +12 -8
- app/code/local/Mage/Eximbay/Block/Payment.php +37 -0
- app/code/{core → local}/Mage/Eximbay/Block/Placeform.php +12 -8
- app/code/local/Mage/Eximbay/Block/Redirect.php +32 -0
- app/code/{core → local}/Mage/Eximbay/Helper/Data.php +12 -8
- app/code/{core/Mage/Eximbay/Model/Abstract.php.bak → local/Mage/Eximbay/Model/Abstract.php} +92 -58
- app/code/local/Mage/Eximbay/Model/Acc.php +29 -0
- app/code/{core → local}/Mage/Eximbay/Model/Event.php +12 -8
- app/code/{core → local}/Mage/Eximbay/controllers/EximbayController.php +12 -8
- app/code/{core → local}/Mage/Eximbay/controllers/ProcessingController.php +12 -8
- app/code/{core → local}/Mage/Eximbay/etc/config.xml +22 -7
- app/code/local/Mage/Eximbay/etc/system.xml +144 -0
- app/code/local/Mage/Eximbay/sql/eximbay_setup/mysql4-install-0.1.0.php +36 -0
- app/code/{core → local}/Mage/Eximbay/sql/eximbay_setup/mysql4-ugrade-0.1.0-0.2.0.php +15 -8
- app/design/adminhtml/default/default/layout/eximbay.xml +30 -0
- app/design/adminhtml/default/default/template/eximbay/info.phtml +29 -0
- app/design/adminhtml/default/default/template/eximbay/jsinit.phtml +38 -0
- app/design/adminhtml/default/default/template/eximbay/pdf/info.phtml +26 -0
- app/design/frontend/base/default/layout/eximbay.xml +42 -0
- app/design/frontend/base/default/template/eximbay/blank.phtml +30 -0
- app/design/frontend/base/default/template/eximbay/form.phtml +35 -0
- app/design/frontend/base/default/template/eximbay/info.phtml +28 -0
- app/design/frontend/base/default/template/eximbay/payment.phtml +35 -0
- app/design/frontend/base/default/template/eximbay/placeform.phtml +49 -0
- app/design/frontend/base/default/template/eximbay/redirect.phtml +25 -0
- app/etc/modules/Mage_Eximbay.xml +26 -3
- package.xml +9 -9
app/code/core/Mage/Eximbay/Block/Info.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
* This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.
|
6 |
-
* @category Mage
|
7 |
-
* @package Mage_Eximbay
|
8 |
-
*/
|
9 |
-
class Mage_Eximbay_Block_Info extends Mage_Payment_Block_Info
|
10 |
-
{
|
11 |
-
/** Constructor. Set template. */
|
12 |
-
protected function _construct()
|
13 |
-
{
|
14 |
-
parent::_construct();
|
15 |
-
$this->setTemplate('eximbay/info.phtml');
|
16 |
-
}
|
17 |
-
|
18 |
-
/** Returns code of payment method @return string */
|
19 |
-
public function getMethodCode()
|
20 |
-
{
|
21 |
-
return $this->getInfo()->getMethodInstance()->getCode();
|
22 |
-
}
|
23 |
-
|
24 |
-
/** Build PDF content of info block @return string */
|
25 |
-
public function toPdf()
|
26 |
-
{
|
27 |
-
$this->setTemplate('eximbay/pdf/info.phtml');
|
28 |
-
return $this->toHtml();
|
29 |
-
}
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/Block/Payment.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Mage
|
16 |
-
* @package Mage_Eximbay
|
17 |
-
*/
|
18 |
-
class Mage_Eximbay_Block_Payment extends Mage_Core_Block_Template
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* Return Payment logo src
|
22 |
-
*
|
23 |
-
* @return string
|
24 |
-
*/
|
25 |
-
public function getEximbayLogoSrc()
|
26 |
-
{
|
27 |
-
$locale = Mage::getModel('eximbay/acc')->getLocale();
|
28 |
-
$logoFilename = Mage::getDesign()
|
29 |
-
->getFilename('images' . DS . 'eximbay' . DS . 'banner_120_' . $locale . '.gif', array('_type' => 'skin'));
|
30 |
-
|
31 |
-
return $this->getSkinUrl('images/eximbay/banner_120_int.gif');
|
32 |
-
}
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/Block/Redirect.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Mage
|
16 |
-
* @package Mage_Eximbay
|
17 |
-
*/
|
18 |
-
class Mage_Eximbay_Block_Redirect extends Mage_Core_Block_Template
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* Constructor. Set template.
|
22 |
-
*/
|
23 |
-
protected function _construct()
|
24 |
-
{
|
25 |
-
parent::_construct();
|
26 |
-
$this->setTemplate('eximbay/redirect.phtml');
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/Model/Abstract.php
DELETED
@@ -1,225 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Mage
|
16 |
-
* @package Mage_Eximbay
|
17 |
-
*/
|
18 |
-
abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abstract
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* unique internal payment method identifier
|
22 |
-
*/
|
23 |
-
protected $_code = 'eximbay_abstract';
|
24 |
-
|
25 |
-
protected $_formBlockType = 'eximbay/form';
|
26 |
-
protected $_infoBlockType = 'eximbay/info';
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Availability options
|
30 |
-
*/
|
31 |
-
protected $_isGateway = true;
|
32 |
-
protected $_canAuthorize = true;
|
33 |
-
protected $_canCapture = true;
|
34 |
-
protected $_canCapturePartial = false;
|
35 |
-
protected $_canRefund = false;
|
36 |
-
protected $_canVoid = false;
|
37 |
-
protected $_canUseInternal = false;
|
38 |
-
protected $_canUseCheckout = true;
|
39 |
-
protected $_canUseForMultishipping = false;
|
40 |
-
|
41 |
-
protected $_paymentMethod = 'abstract';
|
42 |
-
protected $_defaultLocale = 'en';
|
43 |
-
protected $_supportedLocales = array('cn', 'cz', 'da', 'en', 'es', 'fi', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'sv', 'tr');
|
44 |
-
protected $_hidelogin = '1';
|
45 |
-
|
46 |
-
protected $_order;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Get order model
|
50 |
-
*
|
51 |
-
* @return Mage_Sales_Model_Order
|
52 |
-
*/
|
53 |
-
public function getOrder()
|
54 |
-
{
|
55 |
-
if (!$this->_order) {
|
56 |
-
$this->_order = $this->getInfoInstance()->getOrder();
|
57 |
-
}
|
58 |
-
return $this->_order;
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Return url for redirection after order placed
|
63 |
-
* @return string
|
64 |
-
*/
|
65 |
-
public function getOrderPlaceRedirectUrl()
|
66 |
-
{
|
67 |
-
return Mage::getUrl('eximbay/processing/payment');
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Capture payment through Moneybookers api
|
72 |
-
*
|
73 |
-
* @param Varien_Object $payment
|
74 |
-
* @param decimal $amount
|
75 |
-
* @return Phoenix_Moneybookers_Model_Abstract
|
76 |
-
*/
|
77 |
-
public function capture(Varien_Object $payment, $amount)
|
78 |
-
{
|
79 |
-
$payment->setStatus(self::STATUS_APPROVED)
|
80 |
-
->setTransactionId($this->getTransactionId())
|
81 |
-
->setIsTransactionClosed(0);
|
82 |
-
|
83 |
-
return $this;
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* Cancel payment
|
88 |
-
*
|
89 |
-
* @param Varien_Object $payment
|
90 |
-
* @return Phoenix_Moneybookers_Model_Abstract
|
91 |
-
*/
|
92 |
-
public function cancel(Varien_Object $payment)
|
93 |
-
{
|
94 |
-
$payment->setStatus(self::STATUS_DECLINED)
|
95 |
-
->setTransactionId($this->getTransactionId())
|
96 |
-
->setIsTransactionClosed(1);
|
97 |
-
|
98 |
-
return $this;
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Return url of payment method
|
103 |
-
*
|
104 |
-
* @return string
|
105 |
-
*/
|
106 |
-
public function getUrl()
|
107 |
-
{
|
108 |
-
return 'http://www.test2.eximbay.com/web/payment2.0/payment_real.do';
|
109 |
-
// return 'https://www.eximbay.com/web/payment2.0/payment_real.do';
|
110 |
-
}
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Return url of payment method
|
114 |
-
*
|
115 |
-
* @return string
|
116 |
-
*/
|
117 |
-
public function getLocale()
|
118 |
-
{
|
119 |
-
$locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
|
120 |
-
if (is_array($locale) && !empty($locale) && in_array($locale[0], $this->_supportedLocales)) {
|
121 |
-
return $locale[0];
|
122 |
-
}
|
123 |
-
return $this->getDefaultLocale();
|
124 |
-
}
|
125 |
-
|
126 |
-
/**
|
127 |
-
* prepare params array to send it to gateway page via POST
|
128 |
-
*
|
129 |
-
* @return array
|
130 |
-
*/
|
131 |
-
public function getFormFields()
|
132 |
-
{
|
133 |
-
$order_id = $this->getOrder()->getRealOrderId();
|
134 |
-
$billing = $this->getOrder()->getBillingAddress();
|
135 |
-
$shipping = $this->getOrder()->getShippingAddress();
|
136 |
-
if ($this->getOrder()->getBillingAddress()->getEmail()) {
|
137 |
-
$email = $this->getOrder()->getBillingAddress()->getEmail();
|
138 |
-
} else {
|
139 |
-
$email = $this->getOrder()->getCustomerEmail();
|
140 |
-
}
|
141 |
-
$amt = round($this->getOrder()->getGrandTotal(), 2);
|
142 |
-
$secretKey = "289F40E6640124B2628640168C3C5464"; // test secret key
|
143 |
-
$mid = "1849705C64"; // test mid
|
144 |
-
$ref = "abcd1234567890";
|
145 |
-
$linkBuf = $secretKey. "?mid=" . $mid ."&ref=" . $ref ."&cur=" ."USD" ."&amt=" .$amt;
|
146 |
-
|
147 |
-
//$fgkey = md5($linkBuf);
|
148 |
-
$fgkey = hash("sha256", $linkBuf);
|
149 |
-
|
150 |
-
$quantity = $this->getOrder()->getTotalItemCount();
|
151 |
-
$total = 0;
|
152 |
-
|
153 |
-
$params = array(
|
154 |
-
'ver' => '170',
|
155 |
-
'mid' => $mid,
|
156 |
-
'txntype' => 'SALE',
|
157 |
-
'displaytype' => 'I',
|
158 |
-
'secretkey' => $secretKey,
|
159 |
-
'ref' => $ref,
|
160 |
-
'email' => $email,
|
161 |
-
'transid' => $order_id,
|
162 |
-
'returnurl' => Mage::getUrl('eximbay/processing/success', array('transid' => $order_id)),
|
163 |
-
'fgkey' => $fgkey,
|
164 |
-
'lang' => 'KR', //$this->getLocale(),
|
165 |
-
'amt' => round($this->getOrder()->getGrandTotal(), 2),
|
166 |
-
'cur' => 'USD', //$this->getOrder()->getOrderCurrencyCode(),
|
167 |
-
'shop' => $this->getOrder()->getStore(),
|
168 |
-
'buyer' => $billing->getFirstname() . $billing->getLastname(),
|
169 |
-
'product' => $order_id,
|
170 |
-
'tel' => $billing->getTelephone(),
|
171 |
-
'payment_methods' => $this->_paymentMethod,
|
172 |
-
'hide_login' => $this->_hidelogin,
|
173 |
-
'new_window_redirect' => '1',
|
174 |
-
'rescode' => '',
|
175 |
-
'resmsg' => '',
|
176 |
-
'authcode' => '',
|
177 |
-
'visitorid' => '',
|
178 |
-
'dm_item_0_product' => $order_id,
|
179 |
-
'dm_item_0_quantity' => $quantity,
|
180 |
-
'dm_item_0_unitPrice' => round($this->getOrder()->getGrandTotal(), 2),
|
181 |
-
'dm_shipTo_city' => $shipping->getData("city"),
|
182 |
-
'dm_shipTo_country' => $shipping->getCountry(),
|
183 |
-
'dm_shipTo_firstName' => $shipping->getData("firstname"),
|
184 |
-
'dm_shipTo_lastName' => $shipping->getData("lastname"),
|
185 |
-
'dm_shipTo_phoneNumber' => $shipping->getTelephone(),
|
186 |
-
'dm_shipTo_postalCode' => $shipping->getData("postcode"),
|
187 |
-
'dm_shipTo_state' => $shipping->getRegionCode(),
|
188 |
-
'dm_shipTo_street1' => $shipping->getData("street")
|
189 |
-
);
|
190 |
-
|
191 |
-
return $params;
|
192 |
-
}
|
193 |
-
/**
|
194 |
-
* Get initialized flag status
|
195 |
-
* @return true
|
196 |
-
*/
|
197 |
-
public function isInitializeNeeded()
|
198 |
-
{
|
199 |
-
return true;
|
200 |
-
}
|
201 |
-
|
202 |
-
/**
|
203 |
-
* Instantiate state and set it to state onject
|
204 |
-
* //@param
|
205 |
-
* //@param
|
206 |
-
*/
|
207 |
-
public function initialize($paymentAction, $stateObject)
|
208 |
-
{
|
209 |
-
$state = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
|
210 |
-
$stateObject->setState($state);
|
211 |
-
$stateObject->setStatus(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
|
212 |
-
$stateObject->setIsNotified(false);
|
213 |
-
}
|
214 |
-
|
215 |
-
/**
|
216 |
-
* Get config action to process initialization
|
217 |
-
*
|
218 |
-
* @return string
|
219 |
-
*/
|
220 |
-
public function getConfigPaymentAction()
|
221 |
-
{
|
222 |
-
$paymentAction = $this->getConfigData('payment_action');
|
223 |
-
return empty($paymentAction) ? true : $paymentAction;
|
224 |
-
}
|
225 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/Model/Acc.php
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Mage
|
16 |
-
* @package Mage_Eximbay
|
17 |
-
*/
|
18 |
-
class Mage_Eximbay_Model_Acc extends Mage_Eximbay_Model_Abstract
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* unique internal payment method identifier
|
22 |
-
*/
|
23 |
-
protected $_code = 'eximbay_acc';
|
24 |
-
protected $_paymentMethod = 'ACC';
|
25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/etc/system.xml
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!-- /** *
|
3 |
-
* @title Magento -> Eximbay online payment
|
4 |
-
* @category Mage
|
5 |
-
* @package Mage_Eximbay
|
6 |
-
*/ -->
|
7 |
-
<config>
|
8 |
-
<sections>
|
9 |
-
<!-- payment tab -->
|
10 |
-
<payment>
|
11 |
-
<groups>
|
12 |
-
|
13 |
-
<!-- newmodule fieldset -->
|
14 |
-
<eximbay translate="label" module="paygate">
|
15 |
-
<!-- will have title 'Cash On Delivery' -->
|
16 |
-
<label>Eximbay</label>
|
17 |
-
<!-- position between other payment methods -->
|
18 |
-
<sort_order>670</sort_order>
|
19 |
-
<!-- do not show this configuration options in store scope -->
|
20 |
-
<show_in_default>1</show_in_default>
|
21 |
-
<show_in_website>1</show_in_website>
|
22 |
-
<show_in_store>0</show_in_store>
|
23 |
-
<fields>
|
24 |
-
<!-- is this payment method active for the website? -->
|
25 |
-
<active translate="label">
|
26 |
-
<!-- label for the field -->
|
27 |
-
<label>Enabled</label>
|
28 |
-
<!-- input type for configuration value -->
|
29 |
-
<frontend_type>select</frontend_type>
|
30 |
-
<!-- model to take the option values from -->
|
31 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
-
<!-- field position -->
|
33 |
-
<sort_order>1</sort_order>
|
34 |
-
<!-- do not show this field in store scope -->
|
35 |
-
<show_in_default>1</show_in_default>
|
36 |
-
<show_in_website>1</show_in_website>
|
37 |
-
<show_in_store>0</show_in_store>
|
38 |
-
</active>
|
39 |
-
<order_status translate="label">
|
40 |
-
<label>New order status</label>
|
41 |
-
<frontend_type>select</frontend_type>
|
42 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
43 |
-
<!--<source_model>adminhtml/system_config_source_order_status_new</source_model>-->
|
44 |
-
<!--<source_model>adminhtml/system_config_source_order_status_processing</source_model>-->
|
45 |
-
<sort_order>4</sort_order>
|
46 |
-
<show_in_default>1</show_in_default>
|
47 |
-
<show_in_website>1</show_in_website>
|
48 |
-
<show_in_store>0</show_in_store>
|
49 |
-
</order_status>
|
50 |
-
<allowspecific translate="label">
|
51 |
-
<label>Payment from applicable countries</label>
|
52 |
-
<frontend_type>allowspecific</frontend_type>
|
53 |
-
<sort_order>50</sort_order>
|
54 |
-
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
55 |
-
<show_in_default>1</show_in_default>
|
56 |
-
<show_in_website>1</show_in_website>
|
57 |
-
<show_in_store>1</show_in_store>
|
58 |
-
</allowspecific>
|
59 |
-
|
60 |
-
<!--<submit_url>
|
61 |
-
<label>Gateway URL</label>
|
62 |
-
<frontend_type>text</frontend_type>
|
63 |
-
<sort_order>58</sort_order>
|
64 |
-
<show_in_default>1</show_in_default>
|
65 |
-
<show_in_website>1</show_in_website>
|
66 |
-
<show_in_store>0</show_in_store>
|
67 |
-
</submit_url>
|
68 |
-
-->
|
69 |
-
<specificcountry translate="label">
|
70 |
-
<label>Payment from Specific countries</label>
|
71 |
-
<frontend_type>multiselect</frontend_type>
|
72 |
-
<sort_order>51</sort_order>
|
73 |
-
<source_model>adminhtml/system_config_source_country</source_model>
|
74 |
-
<show_in_default>1</show_in_default>
|
75 |
-
<show_in_website>1</show_in_website>
|
76 |
-
<show_in_store>1</show_in_store>
|
77 |
-
</specificcountry>
|
78 |
-
<title translate="label">
|
79 |
-
<label>Title</label>
|
80 |
-
<frontend_type>text</frontend_type>
|
81 |
-
<sort_order>2</sort_order>
|
82 |
-
<show_in_default>1</show_in_default>
|
83 |
-
<show_in_website>1</show_in_website>
|
84 |
-
<show_in_store>0</show_in_store>
|
85 |
-
</title>
|
86 |
-
</fields>
|
87 |
-
</eximbay>
|
88 |
-
</groups>
|
89 |
-
</payment>
|
90 |
-
</sections>
|
91 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/etc/system.xml.bak
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!-- /** *
|
3 |
-
* @title Magento -> Eximbay online payment
|
4 |
-
* @category Mage
|
5 |
-
* @package Mage_Eximbay
|
6 |
-
*/ -->
|
7 |
-
<config>
|
8 |
-
<sections>
|
9 |
-
<!-- payment tab -->
|
10 |
-
<payment>
|
11 |
-
<groups>
|
12 |
-
|
13 |
-
<!-- newmodule fieldset -->
|
14 |
-
<eximbay translate="label" module="paygate">
|
15 |
-
<!-- will have title 'Cash On Delivery' -->
|
16 |
-
<label>クレジット決済</label>
|
17 |
-
<!-- position between other payment methods -->
|
18 |
-
<sort_order>670</sort_order>
|
19 |
-
<!-- do not show this configuration options in store scope -->
|
20 |
-
<show_in_default>1</show_in_default>
|
21 |
-
<show_in_website>1</show_in_website>
|
22 |
-
<show_in_store>0</show_in_store>
|
23 |
-
<fields>
|
24 |
-
<!-- is this payment method active for the website? -->
|
25 |
-
<active translate="label">
|
26 |
-
<!-- label for the field -->
|
27 |
-
<label>Enabled</label>
|
28 |
-
<!-- input type for configuration value -->
|
29 |
-
<frontend_type>select</frontend_type>
|
30 |
-
<!-- model to take the option values from -->
|
31 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
-
<!-- field position -->
|
33 |
-
<sort_order>1</sort_order>
|
34 |
-
<!-- do not show this field in store scope -->
|
35 |
-
<show_in_default>1</show_in_default>
|
36 |
-
<show_in_website>1</show_in_website>
|
37 |
-
<show_in_store>0</show_in_store>
|
38 |
-
</active>
|
39 |
-
<order_status translate="label">
|
40 |
-
<label>New order status</label>
|
41 |
-
<frontend_type>select</frontend_type>
|
42 |
-
<source_model>adminhtml/system_config_source_order_status</source_model>
|
43 |
-
<!--<source_model>adminhtml/system_config_source_order_status_new</source_model>-->
|
44 |
-
<!--<source_model>adminhtml/system_config_source_order_status_processing</source_model>-->
|
45 |
-
<sort_order>4</sort_order>
|
46 |
-
<show_in_default>1</show_in_default>
|
47 |
-
<show_in_website>1</show_in_website>
|
48 |
-
<show_in_store>0</show_in_store>
|
49 |
-
</order_status>
|
50 |
-
<allowspecific translate="label">
|
51 |
-
<label>Payment from applicable countries</label>
|
52 |
-
<frontend_type>allowspecific</frontend_type>
|
53 |
-
<sort_order>50</sort_order>
|
54 |
-
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
55 |
-
<show_in_default>1</show_in_default>
|
56 |
-
<show_in_website>1</show_in_website>
|
57 |
-
<show_in_store>1</show_in_store>
|
58 |
-
</allowspecific>
|
59 |
-
|
60 |
-
<!--<submit_url>
|
61 |
-
<label>Gateway URL</label>
|
62 |
-
<frontend_type>text</frontend_type>
|
63 |
-
<sort_order>58</sort_order>
|
64 |
-
<show_in_default>1</show_in_default>
|
65 |
-
<show_in_website>1</show_in_website>
|
66 |
-
<show_in_store>0</show_in_store>
|
67 |
-
</submit_url>
|
68 |
-
-->
|
69 |
-
<specificcountry translate="label">
|
70 |
-
<label>Payment from Specific countries</label>
|
71 |
-
<frontend_type>multiselect</frontend_type>
|
72 |
-
<sort_order>51</sort_order>
|
73 |
-
<source_model>adminhtml/system_config_source_country</source_model>
|
74 |
-
<show_in_default>1</show_in_default>
|
75 |
-
<show_in_website>1</show_in_website>
|
76 |
-
<show_in_store>1</show_in_store>
|
77 |
-
</specificcountry>
|
78 |
-
<title translate="label">
|
79 |
-
<label>Title</label>
|
80 |
-
<frontend_type>text</frontend_type>
|
81 |
-
<sort_order>2</sort_order>
|
82 |
-
<show_in_default>1</show_in_default>
|
83 |
-
<show_in_website>1</show_in_website>
|
84 |
-
<show_in_store>0</show_in_store>
|
85 |
-
</title>
|
86 |
-
</fields>
|
87 |
-
</eximbay>
|
88 |
-
</groups>
|
89 |
-
</payment>
|
90 |
-
</sections>
|
91 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Eximbay/sql/eximbay_setup/mysql4-install-0.1.0.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
<?php
|
3 |
-
// here are the table creation for this module e.g.:
|
4 |
-
$this->startSetup();
|
5 |
-
$this->run("HERE YOUR SQL");
|
6 |
-
$this->endSetup(); ?>
|
7 |
-
*/
|
8 |
-
|
9 |
-
<?php
|
10 |
-
|
11 |
-
$code = 'eximbay';
|
12 |
-
$installer = $this;
|
13 |
-
|
14 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/{core → local}/Mage/Eximbay/Block/Form.php
RENAMED
@@ -1,20 +1,25 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
|
|
18 |
class Mage_Eximbay_Block_Form extends Mage_Payment_Block_Form
|
19 |
{
|
20 |
/**
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 Mage_Eximbay_Block_Form extends Mage_Payment_Block_Form
|
24 |
{
|
25 |
/**
|
app/code/local/Mage/Eximbay/Block/Info.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
class Mage_Eximbay_Block_Info extends Mage_Payment_Block_Info
|
23 |
+
{
|
24 |
+
/** Constructor. Set template. */
|
25 |
+
protected function _construct()
|
26 |
+
{
|
27 |
+
parent::_construct();
|
28 |
+
$this->setTemplate('eximbay/info.phtml');
|
29 |
+
}
|
30 |
+
|
31 |
+
/** Returns code of payment method @return string */
|
32 |
+
public function getMethodCode()
|
33 |
+
{
|
34 |
+
return $this->getInfo()->getMethodInstance()->getCode();
|
35 |
+
}
|
36 |
+
|
37 |
+
/** Build PDF content of info block @return string */
|
38 |
+
public function toPdf()
|
39 |
+
{
|
40 |
+
$this->setTemplate('eximbay/pdf/info.phtml');
|
41 |
+
return $this->toHtml();
|
42 |
+
}
|
43 |
+
}
|
app/code/{core → local}/Mage/Eximbay/Block/Jsinit.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
class Mage_Eximbay_Block_Jsinit extends Mage_Adminhtml_Block_Template
|
19 |
{
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
class Mage_Eximbay_Block_Jsinit extends Mage_Adminhtml_Block_Template
|
23 |
{
|
app/code/local/Mage/Eximbay/Block/Payment.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
class Mage_Eximbay_Block_Payment extends Mage_Core_Block_Template
|
23 |
+
{
|
24 |
+
/**
|
25 |
+
* Return Payment logo src
|
26 |
+
*
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
+
public function getEximbayLogoSrc()
|
30 |
+
{
|
31 |
+
$locale = Mage::getModel('eximbay/acc')->getLocale();
|
32 |
+
$logoFilename = Mage::getDesign()
|
33 |
+
->getFilename('images' . DS . 'eximbay' . DS . 'banner_120_' . $locale . '.gif', array('_type' => 'skin'));
|
34 |
+
|
35 |
+
return $this->getSkinUrl('images/eximbay/banner_120_int.gif');
|
36 |
+
}
|
37 |
+
}
|
app/code/{core → local}/Mage/Eximbay/Block/Placeform.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
class Mage_Eximbay_Block_Placeform extends Mage_Core_Block_Template
|
19 |
{
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
class Mage_Eximbay_Block_Placeform extends Mage_Core_Block_Template
|
23 |
{
|
app/code/local/Mage/Eximbay/Block/Redirect.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
class Mage_Eximbay_Block_Redirect extends Mage_Core_Block_Template
|
23 |
+
{
|
24 |
+
/**
|
25 |
+
* Constructor. Set template.
|
26 |
+
*/
|
27 |
+
protected function _construct()
|
28 |
+
{
|
29 |
+
parent::_construct();
|
30 |
+
$this->setTemplate('eximbay/redirect.phtml');
|
31 |
+
}
|
32 |
+
}
|
app/code/{core → local}/Mage/Eximbay/Helper/Data.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
class Mage_Eximbay_Helper_Data extends Mage_Payment_Helper_Data
|
19 |
{
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
class Mage_Eximbay_Helper_Data extends Mage_Payment_Helper_Data
|
23 |
{
|
app/code/{core/Mage/Eximbay/Model/Abstract.php.bak → local/Mage/Eximbay/Model/Abstract.php}
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abstract
|
19 |
{
|
@@ -40,7 +44,8 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
|
|
40 |
|
41 |
protected $_paymentMethod = 'abstract';
|
42 |
protected $_defaultLocale = 'en';
|
43 |
-
protected $_supportedLocales = array('cn', 'cz', 'da', 'en', 'es', 'fi', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'sv', 'tr');
|
|
|
44 |
protected $_hidelogin = '1';
|
45 |
|
46 |
protected $_order;
|
@@ -105,12 +110,16 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
|
|
105 |
*/
|
106 |
public function getUrl()
|
107 |
{
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
|
112 |
/**
|
113 |
-
* Return
|
114 |
*
|
115 |
* @return string
|
116 |
*/
|
@@ -118,11 +127,35 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
|
|
118 |
{
|
119 |
$locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
|
120 |
if (is_array($locale) && !empty($locale) && in_array($locale[0], $this->_supportedLocales)) {
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
return $this->getDefaultLocale();
|
124 |
}
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
/**
|
127 |
* prepare params array to send it to gateway page via POST
|
128 |
*
|
@@ -139,54 +172,40 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
|
|
139 |
$email = $this->getOrder()->getCustomerEmail();
|
140 |
}
|
141 |
$amt = round($this->getOrder()->getGrandTotal(), 2);
|
142 |
-
|
143 |
-
$
|
144 |
-
$
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
//$fgkey = md5($linkBuf);
|
148 |
$fgkey = hash("sha256", $linkBuf);
|
149 |
|
150 |
-
$quantity = $this->getOrder()->getTotalItemCount();
|
151 |
$total = 0;
|
152 |
|
153 |
-
|
154 |
-
//$billingaddress = $quote->getBillingAddress();
|
155 |
-
//$shippingaddress = $quote->getShippingAddress();
|
156 |
-
//billing
|
157 |
-
/* echo $billing->getData("street") . " ";
|
158 |
-
echo $billing->getData("postcode") . " ";
|
159 |
-
echo $billing->getData("city") . " ";
|
160 |
-
echo $billing->getRegionCode();
|
161 |
-
echo $billing->getCountry();
|
162 |
-
//shipping
|
163 |
-
echo $shipping->getName();
|
164 |
-
echo $shipping->getData("company");
|
165 |
-
echo $shipping->getData("street");
|
166 |
-
echo $shipping->getData("postcode");
|
167 |
-
echo $shipping->getData("city");
|
168 |
-
echo $shipping->getRegionCode();
|
169 |
-
echo $shipping->getRegion();
|
170 |
-
echo $shipping->getCountry();
|
171 |
-
echo $shipping->getCountryModel()->getName();*/
|
172 |
-
|
173 |
-
$params = array(
|
174 |
'ver' => '170',
|
175 |
'mid' => $mid,
|
176 |
-
'txntype'
|
177 |
-
'displaytype'
|
178 |
'secretkey' => $secretKey,
|
179 |
'ref' => $ref,
|
180 |
'email' => $email,
|
181 |
'transid' => $order_id,
|
182 |
'returnurl' => Mage::getUrl('eximbay/processing/success', array('transid' => $order_id)),
|
183 |
'fgkey' => $fgkey,
|
184 |
-
'lang' =>
|
185 |
-
'amt' =>
|
186 |
-
'cur' =>
|
187 |
-
'shop' =>
|
188 |
-
'buyer' => $billing->getFirstname() . $billing->getLastname(),
|
189 |
-
'product' => $order_id,
|
190 |
'tel' => $billing->getTelephone(),
|
191 |
'payment_methods' => $this->_paymentMethod,
|
192 |
'hide_login' => $this->_hidelogin,
|
@@ -194,19 +213,34 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
|
|
194 |
'rescode' => '',
|
195 |
'resmsg' => '',
|
196 |
'authcode' => '',
|
197 |
-
'visitorid' => '',
|
198 |
-
'
|
199 |
-
'
|
200 |
-
'
|
201 |
-
'
|
202 |
-
'
|
203 |
-
'
|
204 |
-
'dm_shipTo_lastName' => $shipping->getData("lastname"),
|
205 |
-
'dm_shipTo_phoneNumber' => $shipping->getTelephone(),
|
206 |
-
'dm_shipTo_postalCode' => $shipping->getData("postcode"),
|
207 |
'dm_shipTo_state' => $shipping->getRegionCode(),
|
208 |
-
'dm_shipTo_street1' => $shipping->
|
209 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
return $params;
|
212 |
}
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abstract
|
23 |
{
|
44 |
|
45 |
protected $_paymentMethod = 'abstract';
|
46 |
protected $_defaultLocale = 'en';
|
47 |
+
//protected $_supportedLocales = array('cn', 'cz', 'da', 'en', 'es', 'fi', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'sv', 'tr');
|
48 |
+
protected $_supportedLocales = array('zh', 'en', 'ja', 'ko');
|
49 |
protected $_hidelogin = '1';
|
50 |
|
51 |
protected $_order;
|
110 |
*/
|
111 |
public function getUrl()
|
112 |
{
|
113 |
+
$test_mode = Mage::getStoreConfig('payment/eximbay/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 |
+
}
|
119 |
}
|
120 |
|
121 |
/**
|
122 |
+
* Return locale of the payment method
|
123 |
*
|
124 |
* @return string
|
125 |
*/
|
127 |
{
|
128 |
$locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
|
129 |
if (is_array($locale) && !empty($locale) && in_array($locale[0], $this->_supportedLocales)) {
|
130 |
+
if($locale[0] == 'ko'){
|
131 |
+
return 'kr';
|
132 |
+
}
|
133 |
+
else if($locale[0] == 'zh'){
|
134 |
+
return 'cn';
|
135 |
+
}
|
136 |
+
else if($locale[0] == 'ja'){
|
137 |
+
return 'jp';
|
138 |
+
}
|
139 |
+
else if($locale[0] == 'sv'){
|
140 |
+
return 'se';
|
141 |
+
}
|
142 |
+
else{
|
143 |
+
return $locale[0];
|
144 |
+
}
|
145 |
}
|
146 |
return $this->getDefaultLocale();
|
147 |
}
|
148 |
|
149 |
+
/**
|
150 |
+
* Return default locale
|
151 |
+
*
|
152 |
+
* @return string
|
153 |
+
*/
|
154 |
+
public function getDefaultLocale()
|
155 |
+
{
|
156 |
+
return $this->_defaultLocale;
|
157 |
+
}
|
158 |
+
|
159 |
/**
|
160 |
* prepare params array to send it to gateway page via POST
|
161 |
*
|
172 |
$email = $this->getOrder()->getCustomerEmail();
|
173 |
}
|
174 |
$amt = round($this->getOrder()->getGrandTotal(), 2);
|
175 |
+
$enc_secretKey = Mage::getStoreConfig('payment/eximbay/secret_key');
|
176 |
+
$enc_mid = Mage::getStoreConfig('payment/eximbay/mid');
|
177 |
+
$secretKey = Mage::helper('core')->decrypt($enc_secretKey);
|
178 |
+
$mid = Mage::helper('core')->decrypt($enc_mid);
|
179 |
+
$ref = $order_id;
|
180 |
+
//$cur = Mage::getStoreConfig('payment/eximbay/currency');
|
181 |
+
$cur = $this->getOrder()->getOrderCurrencyCode();
|
182 |
+
if($cur == 'KRW' || $cur == 'JPY' || $cur == 'VND')
|
183 |
+
{
|
184 |
+
$amt = round($this->getOrder()->getGrandTotal(), 0, PHP_ROUND_HALF_UP);
|
185 |
+
}
|
186 |
+
$linkBuf = $secretKey. "?mid=" . $mid ."&ref=" . $ref ."&cur=" .$cur ."&amt=" .$amt;
|
187 |
|
188 |
//$fgkey = md5($linkBuf);
|
189 |
$fgkey = hash("sha256", $linkBuf);
|
190 |
|
|
|
191 |
$total = 0;
|
192 |
|
193 |
+
$params = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
'ver' => '170',
|
195 |
'mid' => $mid,
|
196 |
+
'txntype' => 'SALE',
|
197 |
+
'displaytype' => 'I',
|
198 |
'secretkey' => $secretKey,
|
199 |
'ref' => $ref,
|
200 |
'email' => $email,
|
201 |
'transid' => $order_id,
|
202 |
'returnurl' => Mage::getUrl('eximbay/processing/success', array('transid' => $order_id)),
|
203 |
'fgkey' => $fgkey,
|
204 |
+
'lang' => $this->getLocale(),
|
205 |
+
'amt' => $amt,
|
206 |
+
'cur' => $cur,
|
207 |
+
'shop' => Mage::app()->getStore()->getName(),//Mage::app()->getWebsite()->getName(),//Mage::app()->getStore()->getGroup()->getName(),//Mage::getStoreConfig('payment/eximbay/title'),
|
208 |
+
'buyer' => $billing->getFirstname() . $billing->getLastname(),
|
|
|
209 |
'tel' => $billing->getTelephone(),
|
210 |
'payment_methods' => $this->_paymentMethod,
|
211 |
'hide_login' => $this->_hidelogin,
|
213 |
'rescode' => '',
|
214 |
'resmsg' => '',
|
215 |
'authcode' => '',
|
216 |
+
'visitorid' => '',
|
217 |
+
'dm_shipTo_city' => $shipping->getCity(),
|
218 |
+
'dm_shipTo_country' => $shipping->getCountry_id(),
|
219 |
+
'dm_shipTo_firstName' => $shipping->getFirstname(),
|
220 |
+
'dm_shipTo_lastName' => $shipping->getLastname(),
|
221 |
+
'dm_shipTo_phoneNumber' => $shipping->getTelephone(),
|
222 |
+
'dm_shipTo_postalCode' => $shipping->getPostcode(),
|
|
|
|
|
|
|
223 |
'dm_shipTo_state' => $shipping->getRegionCode(),
|
224 |
+
'dm_shipTo_street1' => $shipping->getStreetFull(),
|
225 |
);
|
226 |
+
|
227 |
+
//get item units
|
228 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
229 |
+
$items = $order->getAllVisibleItems();
|
230 |
+
$itemcount=count($items);
|
231 |
+
$item_loop = 0;
|
232 |
+
if ( $itemcount > 0 ) {
|
233 |
+
foreach ($items as $itemId => $item)
|
234 |
+
{
|
235 |
+
$params['dm_item_'.$item_loop.'_product'] = $item->getName();
|
236 |
+
$params['dm_item_'.$item_loop.'_unitPrice'] = $item->getPrice();
|
237 |
+
$params['dm_item_'.$item_loop.'_quantity'] = $item->getQtyToInvoice();
|
238 |
+
|
239 |
+
$params['product'] .= $item->getName() . ' ';
|
240 |
+
|
241 |
+
$item_loop++;
|
242 |
+
}
|
243 |
+
}
|
244 |
|
245 |
return $params;
|
246 |
}
|
app/code/local/Mage/Eximbay/Model/Acc.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
class Mage_Eximbay_Model_Acc extends Mage_Eximbay_Model_Abstract
|
23 |
+
{
|
24 |
+
/**
|
25 |
+
* unique internal payment method identifier
|
26 |
+
*/
|
27 |
+
protected $_code = 'eximbay_acc';
|
28 |
+
protected $_paymentMethod = 'ACC';
|
29 |
+
}
|
app/code/{core → local}/Mage/Eximbay/Model/Event.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
|
19 |
/**
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
/**
|
app/code/{core → local}/Mage/Eximbay/controllers/EximbayController.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
class Mage_Eximbay_EximbayController extends Mage_Adminhtml_Controller_Action
|
19 |
{
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
class Mage_Eximbay_EximbayController extends Mage_Adminhtml_Controller_Action
|
23 |
{
|
app/code/{core → local}/Mage/Eximbay/controllers/ProcessingController.php
RENAMED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Mage
|
16 |
* @package Mage_Eximbay
|
|
|
|
|
17 |
*/
|
18 |
class Mage_Eximbay_ProcessingController extends Mage_Core_Controller_Front_Action
|
19 |
{
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
class Mage_Eximbay_ProcessingController extends Mage_Core_Controller_Front_Action
|
23 |
{
|
app/code/{core → local}/Mage/Eximbay/etc/config.xml
RENAMED
@@ -1,10 +1,25 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
-->
|
9 |
<config>
|
10 |
<global>
|
@@ -135,7 +150,7 @@
|
|
135 |
<model>eximbay/acc</model>
|
136 |
<title>Eximbay</title>
|
137 |
<allowspecific>0</allowspecific>
|
138 |
-
</eximbay_acc>
|
139 |
</payment>
|
140 |
<eximbay>
|
141 |
<settings>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Eximbay, Online Payment Module
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
15 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
16 |
+
* needs please refer to https://www.eximbay.com for more information.
|
17 |
+
*
|
18 |
+
* @category Mage
|
19 |
+
* @package Mage_Eximbay
|
20 |
+
* @copyright Copyright (c) 2013 KRPartners Co.,Ltd (https://www.eximbay.com)
|
21 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
22 |
+
*/
|
23 |
-->
|
24 |
<config>
|
25 |
<global>
|
150 |
<model>eximbay/acc</model>
|
151 |
<title>Eximbay</title>
|
152 |
<allowspecific>0</allowspecific>
|
153 |
+
</eximbay_acc>
|
154 |
</payment>
|
155 |
<eximbay>
|
156 |
<settings>
|
app/code/local/Mage/Eximbay/etc/system.xml
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Eximbay, Online Payment Module
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
15 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
16 |
+
* needs please refer to https://www.eximbay.com for more information.
|
17 |
+
*
|
18 |
+
* @category Mage
|
19 |
+
* @package Mage_Eximbay
|
20 |
+
* @copyright Copyright (c) 2013 KRPartners Co.,Ltd (https://www.eximbay.com)
|
21 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<config>
|
25 |
+
<sections>
|
26 |
+
<!-- payment tab -->
|
27 |
+
<payment>
|
28 |
+
<groups>
|
29 |
+
|
30 |
+
<!-- newmodule fieldset -->
|
31 |
+
<eximbay translate="label" module="eximbay">
|
32 |
+
<!-- will have title 'Cash On Delivery' -->
|
33 |
+
<label>Eximbay Secure Payment</label>
|
34 |
+
<!-- position between other payment methods -->
|
35 |
+
<sort_order>50</sort_order>
|
36 |
+
<!-- do not show this configuration options in store scope -->
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>0</show_in_store>
|
40 |
+
<fields>
|
41 |
+
<!-- is this payment method active for the website? -->
|
42 |
+
<active translate="label">
|
43 |
+
<!-- label for the field -->
|
44 |
+
<label>Enabled</label>
|
45 |
+
<!-- input type for configuration value -->
|
46 |
+
<frontend_type>select</frontend_type>
|
47 |
+
<!-- model to take the option values from -->
|
48 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
49 |
+
<!-- field position -->
|
50 |
+
<sort_order>1</sort_order>
|
51 |
+
<!-- do not show this field in store scope -->
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>0</show_in_store>
|
55 |
+
</active>
|
56 |
+
<!--<title translate="label">
|
57 |
+
<label>Title</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>2</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>0</show_in_store>
|
63 |
+
</title> -->
|
64 |
+
<mid translate="label">
|
65 |
+
<label>Merchant ID</label>
|
66 |
+
<frontend_type>obscure</frontend_type>
|
67 |
+
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
68 |
+
<sort_order>3</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>1</show_in_website>
|
71 |
+
<show_in_store>0</show_in_store>
|
72 |
+
</mid>
|
73 |
+
<secret_key translate="label">
|
74 |
+
<label>Secret Key</label>
|
75 |
+
<frontend_type>obscure</frontend_type>
|
76 |
+
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
77 |
+
<sort_order>4</sort_order>
|
78 |
+
<show_in_default>1</show_in_default>
|
79 |
+
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>0</show_in_store>
|
81 |
+
</secret_key>
|
82 |
+
<!--<order_status translate="label">
|
83 |
+
<label>New order status</label>
|
84 |
+
<frontend_type>select</frontend_type>
|
85 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>-->
|
86 |
+
<!--<source_model>adminhtml/system_config_source_order_status_new</source_model>-->
|
87 |
+
<!--<source_model>adminhtml/system_config_source_order_status_processing</source_model>-->
|
88 |
+
<!--<sort_order>5</sort_order>
|
89 |
+
<show_in_default>1</show_in_default>
|
90 |
+
<show_in_website>1</show_in_website>
|
91 |
+
<show_in_store>0</show_in_store>
|
92 |
+
</order_status>-->
|
93 |
+
<test translate="label">
|
94 |
+
<label>Test Mode</label>
|
95 |
+
<frontend_type>select</frontend_type>
|
96 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
97 |
+
<sort_order>6</sort_order>
|
98 |
+
<show_in_default>1</show_in_default>
|
99 |
+
<show_in_website>1</show_in_website>
|
100 |
+
<show_in_store>0</show_in_store>
|
101 |
+
</test>
|
102 |
+
<!--<currency translate="label">
|
103 |
+
<label>Accepted Currency</label>
|
104 |
+
<frontend_type>select</frontend_type>
|
105 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
106 |
+
<sort_order>7</sort_order>
|
107 |
+
<show_in_default>1</show_in_default>
|
108 |
+
<show_in_website>1</show_in_website>
|
109 |
+
<show_in_store>0</show_in_store>
|
110 |
+
</currency>-->
|
111 |
+
<!--<cctypes translate="label">
|
112 |
+
<label>Credit Card Types</label>
|
113 |
+
<frontend_type>multiselect</frontend_type>
|
114 |
+
<source_model>paygate/authorizenet_source_cctype</source_model>
|
115 |
+
<sort_order>8</sort_order>
|
116 |
+
<show_in_default>1</show_in_default>
|
117 |
+
<show_in_website>1</show_in_website>
|
118 |
+
<show_in_store>0</show_in_store>
|
119 |
+
</cctypes>-->
|
120 |
+
<!--<allowspecific translate="label">
|
121 |
+
<label>Payment from applicable countries</label>
|
122 |
+
<frontend_type>allowspecific</frontend_type>
|
123 |
+
<sort_order>9</sort_order>
|
124 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
</allowspecific>
|
129 |
+
<specificcountry translate="label">
|
130 |
+
<label>Payment from Specific countries</label>
|
131 |
+
<frontend_type>multiselect</frontend_type>
|
132 |
+
<sort_order>10</sort_order>
|
133 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
134 |
+
<show_in_default>1</show_in_default>
|
135 |
+
<show_in_website>1</show_in_website>
|
136 |
+
<show_in_store>0</show_in_store>
|
137 |
+
</specificcountry>
|
138 |
+
-->
|
139 |
+
</fields>
|
140 |
+
</eximbay>
|
141 |
+
</groups>
|
142 |
+
</payment>
|
143 |
+
</sections>
|
144 |
+
</config>
|
app/code/local/Mage/Eximbay/sql/eximbay_setup/mysql4-install-0.1.0.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
// here are the table creation for this module e.g.:
|
24 |
+
/*$this->startSetup();
|
25 |
+
$this->run("HERE YOUR SQL");
|
26 |
+
$this->endSetup();
|
27 |
+
*/
|
28 |
+
?>
|
29 |
+
|
30 |
+
|
31 |
+
<?php
|
32 |
+
|
33 |
+
$code = 'eximbay';
|
34 |
+
$installer = $this;
|
35 |
+
|
36 |
+
?>
|
app/code/{core → local}/Mage/Eximbay/sql/eximbay_setup/mysql4-ugrade-0.1.0-0.2.0.php
RENAMED
@@ -1,16 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
|
|
4 |
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
*
|
7 |
-
*
|
8 |
-
* http://opensource.org/licenses/
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
|
|
|
|
|
|
|
|
12 |
* @category Mage
|
13 |
* @package Mage_Eximbay
|
|
|
|
|
14 |
*/
|
15 |
|
16 |
/* @var $installer Mage_Core_Model_Resource_Setup */
|
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 Mage
|
18 |
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
/* @var $installer Mage_Core_Model_Resource_Setup */
|
app/design/adminhtml/default/default/layout/eximbay.xml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Eximbay, Online Payment Module
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
15 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
16 |
+
* needs please refer to https://www.eximbay.com for more information.
|
17 |
+
*
|
18 |
+
* @category Mage
|
19 |
+
* @package Mage_Eximbay
|
20 |
+
* @copyright Copyright (c) 2013 KRPartners Co.,Ltd (https://www.eximbay.com)
|
21 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<layout>
|
25 |
+
<adminhtml_system_config_edit>
|
26 |
+
<reference name="content">
|
27 |
+
<block type="eximbay/jsinit" name="eximbay_jsinit" template="eximbay/jsinit.phtml"></block>
|
28 |
+
</reference>
|
29 |
+
</adminhtml_system_config_edit>
|
30 |
+
</layout>
|
app/design/adminhtml/default/default/template/eximbay/info.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br />
|
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')->__('Eximbay Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
|
28 |
+
<?php endif; ?>
|
29 |
+
eximbay
|
app/design/adminhtml/default/default/template/eximbay/jsinit.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<script type="text/javascript">
|
25 |
+
//<![CDATA[
|
26 |
+
function initEximbay() {
|
27 |
+
if (!document.getElementById("eximbay_settings_activationstatus")) {
|
28 |
+
// Don't perform for website and store view
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
document.getElementById("eximbay_settings_activationstatus").style.display = "none";
|
32 |
+
$('eximbay_settings_activationstatus').up().insert('<button type="button" id="eximbay_multifuncbutton" onclick="eximbay.button()" style="display: none; margin-top: 1em;"><span id="eximbay_multifuncbutton_label" style="display:block; margin-top:1em;"></span></button>');
|
33 |
+
$('eximbay_settings_activationstatus').up().insert('<span id="eximbay_inf_div" style="display:block; margin-top:1em;"></span>');
|
34 |
+
$('eximbay_settings_activationstatus').up().insert('<input id="eximbay_settings_merchant_id_hidden" type="hidden"/>');
|
35 |
+
eximbay = new Eximbay('<?php echo $this->getSkinUrl('images/eximbay/banner.jpg'); ?>', '<?php echo $this->getUrl('*/eximbay/activateemail'); ?>', '<?php echo $this->getUrl('*/eximbay/checksecret'); ?>', '<?php echo $this->getUrl('*/eximbay/checkemail');?>');
|
36 |
+
}
|
37 |
+
//]]>
|
38 |
+
</script>
|
app/design/adminhtml/default/default/template/eximbay/pdf/info.phtml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<?php echo $this->getMethod()->getTitle() ?>
|
24 |
+
{{pdf_row_separator}}
|
25 |
+
<?php echo Mage::helper('eximbay')->__('eximbay Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?>
|
26 |
+
{{pdf_row_separator}}
|
app/design/frontend/base/default/layout/eximbay.xml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Eximbay, Online Payment Module
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
15 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
16 |
+
* needs please refer to https://www.eximbay.com for more information.
|
17 |
+
*
|
18 |
+
* @category Mage
|
19 |
+
* @package Mage_Eximbay
|
20 |
+
* @copyright Copyright (c) 2013 KRPartners Co.,Ltd (https://www.eximbay.com)
|
21 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<layout version="0.1.0">
|
25 |
+
<eximbay_processing_payment>
|
26 |
+
<reference name="root">
|
27 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
28 |
+
</reference>
|
29 |
+
<reference name="content">
|
30 |
+
<block type="eximbay/payment" name="eximbay_payment" template="eximbay/payment.phtml" />
|
31 |
+
</reference>
|
32 |
+
</eximbay_processing_payment>
|
33 |
+
|
34 |
+
<eximbay_processing_placeform>
|
35 |
+
<reference name="root">
|
36 |
+
<action method="setTemplate"><template>eximbay/blank.phtml</template></action>
|
37 |
+
</reference>
|
38 |
+
<reference name="content">
|
39 |
+
<block type="eximbay/placeform" name="eximbay_placeform" template="eximbay/placeform.phtml" />
|
40 |
+
</reference>
|
41 |
+
</eximbay_processing_placeform>
|
42 |
+
</layout>
|
app/design/frontend/base/default/template/eximbay/blank.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
24 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
25 |
+
<head>
|
26 |
+
</head>
|
27 |
+
<body>
|
28 |
+
<?php echo $this->getChildHtml('content') ?>
|
29 |
+
</body>
|
30 |
+
</html>
|
app/design/frontend/base/default/template/eximbay/form.phtml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<?php $_code = $this->getMethodCode(); ?>
|
24 |
+
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
|
25 |
+
<li>
|
26 |
+
<?php echo Mage::helper('eximbay')->__('You will be redirected to our secure payment page when you place an order.') ?>
|
27 |
+
</li>
|
28 |
+
<?php if ($_img = $this->getPaymentImageSrc($_code)): ?>
|
29 |
+
<li>
|
30 |
+
<div style="padding:10px 15px 15px;">
|
31 |
+
<img src="<?php echo $_img ?>" alt="" /><br />
|
32 |
+
</div>
|
33 |
+
</li>
|
34 |
+
<?php endif; ?>
|
35 |
+
</ul>
|
app/design/frontend/base/default/template/eximbay/info.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<?php echo $this->htmlEscape($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->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
|
28 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/eximbay/payment.phtml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<div class="page-head">
|
24 |
+
<h3><?php echo Mage::helper('eximbay')->__('Please pay your order now') ?></h3>
|
25 |
+
</div>
|
26 |
+
<table style="width:100%;">
|
27 |
+
<tr>
|
28 |
+
<td style="width:75%">
|
29 |
+
<iframe style="width:100%; height:600px;" src="<?php echo Mage::getUrl('eximbay/processing/placeform') ?>"></iframe>
|
30 |
+
</td>
|
31 |
+
<td style="text-align:center;">
|
32 |
+
<img src="<?php echo $this->getEximbayLogoSrc() ?>" title="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" alt="<?php echo Mage::helper('eximbay')->__('Powered by Eximbay') ?>" />
|
33 |
+
</td>
|
34 |
+
</tr>
|
35 |
+
</table>
|
app/design/frontend/base/default/template/eximbay/placeform.phtml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<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): ?>
|
28 |
+
<input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>"/>
|
29 |
+
<?php endforeach; ?>
|
30 |
+
<?php endif; ?>
|
31 |
+
</form>
|
32 |
+
|
33 |
+
<script type="text/javascript">
|
34 |
+
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.4d-secure.com:15000/" : "http://www.4d-secure.com/");
|
35 |
+
document.write(unescape("%3Cscript src='" + pkBaseURL + "mwa_siteno.js' type='text/javascript'%3E%3C/script%3E"));
|
36 |
+
</script>
|
37 |
+
<script type="text/javascript">init_module();</script>
|
38 |
+
<script type="text/javascript">if(set_site_number(111)) set_site_number(111);</script>
|
39 |
+
|
40 |
+
<script type="text/javascript">
|
41 |
+
|
42 |
+
function myfunction() {
|
43 |
+
var paymentform = document.getElementById('eximbay_place_form');
|
44 |
+
document.eximbay.visitorid.value = get_visitorid();
|
45 |
+
paymentform.submit();
|
46 |
+
}
|
47 |
+
window.onload = myfunction;
|
48 |
+
|
49 |
+
</script>
|
app/design/frontend/base/default/template/eximbay/redirect.phtml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Mage
|
18 |
+
* @package Mage_Eximbay
|
19 |
+
* @copyright Copyright (c) 2013 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 |
+
<html><body>
|
24 |
+
<script type="text/javascript">parent.location.href="<?php echo $this->getRedirectUrl() ?>";</script>
|
25 |
+
</body></html>
|
app/etc/modules/Mage_Eximbay.xml
CHANGED
@@ -1,17 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<config>
|
2 |
<modules>
|
3 |
<!-- declare Mage_NewModule module -->
|
4 |
<Mage_Eximbay>
|
5 |
<!-- this is an active module -->
|
6 |
<active>true</active>
|
7 |
-
<!-- this module will be located in app/code/
|
8 |
-
<codePool>
|
9 |
<!-- specify dependencies for correct module loading order -->
|
10 |
<depends>
|
11 |
<Mage_Payment />
|
12 |
</depends>
|
13 |
<!-- declare module's version information for database updates -->
|
14 |
-
|
15 |
</Mage_Eximbay>
|
16 |
</modules>
|
17 |
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Eximbay, Online Payment Module
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the GNU General Public License (GPL 3.0)
|
9 |
+
* that is available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/GPL-3.0 or http://www.gnu.org/copyleft/gpl.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade Eximbay module to newer
|
15 |
+
* versions in the future. If you wish to customize Eximbay module for your
|
16 |
+
* needs please refer to https://www.eximbay.com for more information.
|
17 |
+
*
|
18 |
+
* @category Mage
|
19 |
+
* @package Mage_Eximbay
|
20 |
+
* @copyright Copyright (c) 2013 KRPartners Co.,Ltd (https://www.eximbay.com)
|
21 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License (GPL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
<config>
|
25 |
<modules>
|
26 |
<!-- declare Mage_NewModule module -->
|
27 |
<Mage_Eximbay>
|
28 |
<!-- this is an active module -->
|
29 |
<active>true</active>
|
30 |
+
<!-- this module will be located in app/code/local code pool -->
|
31 |
+
<codePool>local</codePool>
|
32 |
<!-- specify dependencies for correct module loading order -->
|
33 |
<depends>
|
34 |
<Mage_Payment />
|
35 |
</depends>
|
36 |
<!-- declare module's version information for database updates -->
|
37 |
+
<version>0.1.0</version>
|
38 |
</Mage_Eximbay>
|
39 |
</modules>
|
40 |
</config>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eximbay</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Eximbay
|
10 |
-
<description>Eximbay
|
11 |
-
<notes>version
|
12 |
<authors><author><name>Uuganbayar Choijiljav</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
13 |
-
<date>2013-
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eximbay</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/GPL-3.0">GNU General Public License (GPL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Official Eximbay Payment Extension</summary>
|
10 |
+
<description>This Module integrates Eximbay Gateway (www.eximbay.com) with your Magento store. The Eximbay allows you to collect credit card payments. It accepts following credit cards (VISA, MasterCard, JCB, and American Express).</description>
|
11 |
+
<notes>The stable version. </notes>
|
12 |
<authors><author><name>Uuganbayar Choijiljav</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
13 |
+
<date>2013-11-18</date>
|
14 |
+
<time>02:32:54</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Mage"><dir name="Eximbay"><dir name="Block"><file name="Form.php" hash="35efc06faf8ffcc8521bae67554a667c"/><file name="Info.php" hash="d54164acde35a307cba6c2a93efa545d"/><file name="Jsinit.php" hash="8485fc4e1405c247c66bc2c3a998945a"/><file name="Payment.php" hash="a6562c1ddfe6af8deab4955b5717555d"/><file name="Placeform.php" hash="847d84d6cd2a4109fe86167122b48238"/><file name="Redirect.php" hash="5fc99df4853e337c429eec463452d73f"/></dir><dir name="Helper"><file name="Data.php" hash="152b123f6ff4de1ecb49f07c4ddfb85d"/></dir><dir name="Model"><file name="Abstract.php" hash="3a2d8d66ae0f31318db4d0269334853d"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="0583b8edbdef2533f70c45ae03c34343"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="7c364f13d4c744fec2a5c3442969a9aa"/></dir><dir name="etc"><file name="config.xml" hash="f491319783513429337e584054c61813"/><file name="system.xml" hash="a8a4ea5e68b1848d503fbd51c49048c2"/></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="7119f884b9ffc992dd03e69648c00337"/><file name="info.phtml" hash="e06bb65b3d5e5c57e15be49b2c69c5b9"/><file name="payment.phtml" hash="ea31e59c91642e37b79a1d4a29eac83e"/><file name="placeform.phtml" hash="ba16a18c16295d7fbc1aa16a9db09a53"/><file name="redirect.phtml" hash="5bb15bfb2aed1212200bbb4910bbd2e5"/></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></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|