Version Notes
Added Korean Local Card Payment option.
Download this release
Release Info
Developer | KRPartners Co.,Ltd |
Extension | Eximbay |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
app/code/community/Krp/Eximbay/Model/Abstract.php
CHANGED
@@ -251,6 +251,17 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
251 |
return $version;
|
252 |
}
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
/**
|
255 |
* Return working mode (test or production)
|
256 |
*
|
@@ -295,12 +306,16 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
295 |
|
296 |
$txntype = 'SALE';
|
297 |
$ostype = '';
|
|
|
298 |
if($this->getAPIVersion() == '200'){
|
299 |
$txntype = 'PAYMENT';
|
300 |
$ostype = 'P';
|
301 |
if($this->isMobile()){
|
302 |
$ostype = 'M';
|
303 |
}
|
|
|
|
|
|
|
304 |
}
|
305 |
|
306 |
$params = array(
|
@@ -332,6 +347,7 @@ abstract class Krp_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abst
|
|
332 |
'autoclose' => 'Y',
|
333 |
'directToReturn' => 'N',
|
334 |
'ostype' => $ostype,
|
|
|
335 |
'paymethod' => $this->_paymentMethod,
|
336 |
'dm_billTo_city' => $billing->getCity(),
|
337 |
'dm_billTo_country' => $billing->getCountry_id(),
|
251 |
return $version;
|
252 |
}
|
253 |
|
254 |
+
/**
|
255 |
+
* checks if Korean Local Payment is chosen.
|
256 |
+
*
|
257 |
+
* @return string
|
258 |
+
*/
|
259 |
+
public function isKoreanLocalPayment()
|
260 |
+
{
|
261 |
+
$localpayment = Mage::getStoreConfig('payment/'.$this->getPaymentMethodCode().'/localpayment');
|
262 |
+
return $localpayment;
|
263 |
+
}
|
264 |
+
|
265 |
/**
|
266 |
* Return working mode (test or production)
|
267 |
*
|
306 |
|
307 |
$txntype = 'SALE';
|
308 |
$ostype = '';
|
309 |
+
$issuercountry = '';
|
310 |
if($this->getAPIVersion() == '200'){
|
311 |
$txntype = 'PAYMENT';
|
312 |
$ostype = 'P';
|
313 |
if($this->isMobile()){
|
314 |
$ostype = 'M';
|
315 |
}
|
316 |
+
if($this->isKoreanLocalPayment()){
|
317 |
+
$issuercountry = 'KR';
|
318 |
+
}
|
319 |
}
|
320 |
|
321 |
$params = array(
|
347 |
'autoclose' => 'Y',
|
348 |
'directToReturn' => 'N',
|
349 |
'ostype' => $ostype,
|
350 |
+
'issuercountry' => $issuercountry,
|
351 |
'paymethod' => $this->_paymentMethod,
|
352 |
'dm_billTo_city' => $billing->getCity(),
|
353 |
'dm_billTo_country' => $billing->getCountry_id(),
|
app/code/community/Krp/Eximbay/Model/Event.php
CHANGED
@@ -271,7 +271,7 @@ class Krp_Eximbay_Model_Event
|
|
271 |
}
|
272 |
|
273 |
// check transaction amount if currency matches
|
274 |
-
if ($this->_order->getOrderCurrencyCode() == $params['cur']) {
|
275 |
if($this->_order->getOrderCurrencyCode() == 'KRW' || $this->_order->getOrderCurrencyCode() == 'JPY' || $this->_order->getOrderCurrencyCode() == 'VND')
|
276 |
{
|
277 |
if(round($this->_order->getGrandTotal(), 0, PHP_ROUND_HALF_UP) != $params['amt']){
|
@@ -284,7 +284,7 @@ class Krp_Eximbay_Model_Event
|
|
284 |
Mage::throwException('Transaction amount does not match.');
|
285 |
}
|
286 |
}
|
287 |
-
}
|
288 |
}
|
289 |
return $params;
|
290 |
}
|
271 |
}
|
272 |
|
273 |
// check transaction amount if currency matches
|
274 |
+
/*if ($this->_order->getOrderCurrencyCode() == $params['cur']) {
|
275 |
if($this->_order->getOrderCurrencyCode() == 'KRW' || $this->_order->getOrderCurrencyCode() == 'JPY' || $this->_order->getOrderCurrencyCode() == 'VND')
|
276 |
{
|
277 |
if(round($this->_order->getGrandTotal(), 0, PHP_ROUND_HALF_UP) != $params['amt']){
|
284 |
Mage::throwException('Transaction amount does not match.');
|
285 |
}
|
286 |
}
|
287 |
+
}*/
|
288 |
}
|
289 |
return $params;
|
290 |
}
|
app/code/community/Krp/Eximbay/etc/system.xml
CHANGED
@@ -109,13 +109,24 @@
|
|
109 |
<show_in_website>1</show_in_website>
|
110 |
<show_in_store>0</show_in_store>
|
111 |
</ver>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
<dtype translate="label">
|
113 |
<label>Payment Page Type</label>
|
114 |
<comment>Choose your payment page type, IFrame or Popup.</comment>
|
115 |
<frontend_type>select</frontend_type>
|
116 |
<config_path>payment/eximbay_acc/dtype</config_path>
|
117 |
<source_model>eximbay/popupiframe</source_model>
|
118 |
-
<sort_order>
|
119 |
<show_in_default>1</show_in_default>
|
120 |
<show_in_website>1</show_in_website>
|
121 |
<show_in_store>0</show_in_store>
|
@@ -124,7 +135,7 @@
|
|
124 |
<label>Accepted Currency</label>
|
125 |
<frontend_type>select</frontend_type>
|
126 |
<source_model>adminhtml/system_config_source_currency</source_model>
|
127 |
-
<sort_order>
|
128 |
<show_in_default>1</show_in_default>
|
129 |
<show_in_website>1</show_in_website>
|
130 |
<show_in_store>1</show_in_store>
|
@@ -133,7 +144,7 @@
|
|
133 |
<label>Credit Card Types</label>
|
134 |
<frontend_type>multiselect</frontend_type>
|
135 |
<source_model>paygate/authorizenet_source_cctype</source_model>
|
136 |
-
<sort_order>
|
137 |
<show_in_default>1</show_in_default>
|
138 |
<show_in_website>1</show_in_website>
|
139 |
<show_in_store>1</show_in_store>
|
109 |
<show_in_website>1</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'. This option is only applicable if API version is 200.</comment>
|
115 |
+
<frontend_type>select</frontend_type>
|
116 |
+
<config_path>payment/eximbay_acc/localpayment</config_path>
|
117 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
118 |
+
<sort_order>8</sort_order>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>0</show_in_store>
|
122 |
+
</localpayment>
|
123 |
<dtype translate="label">
|
124 |
<label>Payment Page Type</label>
|
125 |
<comment>Choose your payment page type, IFrame or Popup.</comment>
|
126 |
<frontend_type>select</frontend_type>
|
127 |
<config_path>payment/eximbay_acc/dtype</config_path>
|
128 |
<source_model>eximbay/popupiframe</source_model>
|
129 |
+
<sort_order>9</sort_order>
|
130 |
<show_in_default>1</show_in_default>
|
131 |
<show_in_website>1</show_in_website>
|
132 |
<show_in_store>0</show_in_store>
|
135 |
<label>Accepted Currency</label>
|
136 |
<frontend_type>select</frontend_type>
|
137 |
<source_model>adminhtml/system_config_source_currency</source_model>
|
138 |
+
<sort_order>10</sort_order>
|
139 |
<show_in_default>1</show_in_default>
|
140 |
<show_in_website>1</show_in_website>
|
141 |
<show_in_store>1</show_in_store>
|
144 |
<label>Credit Card Types</label>
|
145 |
<frontend_type>multiselect</frontend_type>
|
146 |
<source_model>paygate/authorizenet_source_cctype</source_model>
|
147 |
+
<sort_order>11</sort_order>
|
148 |
<show_in_default>1</show_in_default>
|
149 |
<show_in_website>1</show_in_website>
|
150 |
<show_in_store>1</show_in_store>
|
package.xml
CHANGED
@@ -1,21 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eximbay</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Official Eximbay Payment Extension</summary>
|
10 |
<description>This payment module offers a variety of popular payment methods for online merchants.</description>
|
11 |
-
<notes>Added
|
12 |
-
-API version
|
13 |
-
-Allow Payment from applicable countries
|
14 |
-
-Allow Payment from Specific countries</notes>
|
15 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
16 |
-
<date>
|
17 |
-
<time>08:
|
18 |
-
<contents><target name="magecommunity"><dir name="Krp"><dir name="Eximbay"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="ab74479c6a0c966eaa8a0e290ccfed9a"/></dir></dir></dir><file name="Form.php" hash="f6a8a89d07384accc0501a6806fb8a58"/><file name="Info.php" hash="2a74edc39a49612eca820a6826d03a93"/><file name="Jsinit.php" hash="f5e7e6864d9a66fdeb760865885eb028"/><file name="Payment.php" hash="e55e4e8c36ac4e3a8372723cc7e34fbc"/><file name="Placeform.php" hash="22e9a71ba8d56e338b273df0a31d408e"/><file name="Redirect.php" hash="ed0a1ae878f925001dda455bdcee7281"/></dir><dir name="Helper"><file name="Data.php" hash="39b50d67f2f0ce838900530ded9cb5f7"/><file name="Ppp.php" hash="2209927ca48e88ea8312cb3babb3cac5"/></dir><dir name="Model"><file name="Abstract.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eximbay</name>
|
4 |
+
<version>2.0.5</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 Korean Local Card Payment option.</notes>
|
|
|
|
|
|
|
12 |
<authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
|
13 |
+
<date>2015-05-20</date>
|
14 |
+
<time>08:30:38</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Krp"><dir name="Eximbay"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="ab74479c6a0c966eaa8a0e290ccfed9a"/></dir></dir></dir><file name="Form.php" hash="f6a8a89d07384accc0501a6806fb8a58"/><file name="Info.php" hash="2a74edc39a49612eca820a6826d03a93"/><file name="Jsinit.php" hash="f5e7e6864d9a66fdeb760865885eb028"/><file name="Payment.php" hash="e55e4e8c36ac4e3a8372723cc7e34fbc"/><file name="Placeform.php" hash="22e9a71ba8d56e338b273df0a31d408e"/><file name="Redirect.php" hash="ed0a1ae878f925001dda455bdcee7281"/></dir><dir name="Helper"><file name="Data.php" hash="39b50d67f2f0ce838900530ded9cb5f7"/><file name="Ppp.php" hash="2209927ca48e88ea8312cb3babb3cac5"/></dir><dir name="Model"><file name="Abstract.php" hash="224419419de0f7899b4e3fc5be069454"/><file name="Acc.php" hash="e01ef19e450cc81d7abea76716a68ee3"/><file name="Alp.php" hash="fc5e746a521d7e8fe609d56dd8971fb2"/><file name="Cup.php" hash="3e61b570bf9ec0f47a8282b289c5cbc2"/><file name="Ecn.php" hash="8c81daff5feccef2173f7afe399d2b4d"/><file name="Event.php" hash="0550948a1b047a5b49f93e5c226e0847"/><file name="Nnb.php" hash="dbfd83d3c79479decb81ecd2198a3f31"/><file name="Popup.php" hash="26b4d183cdaebcd6a66e3ccc97570be8"/><file name="Popupiframe.php" hash="fceb0e286d5c7f2d47937dc24763d276"/><file name="Ppl.php" hash="67a14f356dbc79d54b3ad8448416bca6"/><file name="Tnp.php" hash="f5a167e11ec3c37b16d87ac4284f1f95"/><file name="Version.php" hash="f1eb43a27e0e9108d254c22bd7c480a1"/></dir><dir name="controllers"><file name="EximbayController.php" hash="9aef2e23676514be7da811f02ace1638"/><file name="ProcessingController.php" hash="3102f3ae868ea00a72cc1ca7190c2a26"/></dir><dir name="etc"><file name="config.xml" hash="3160448769fb4023ac13a4653939de2b"/><file name="system.xml" hash="a14ed20bd8e9433784eeb5cf0f821b1a"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="install-2.0.0.php" hash="de251375de4ea828e2f827f0bfbb4ce5"/><file name="mysql4-ugrade-0.1.0-2.0.0.php" hash="8dbe742a111b82d3aa4106bb9bc7fce9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="46de7d1b0a663271c7b90d3bdfc0e8e8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="8d7970f6b7f17546d5741d61455a0654"/><file name="jsinit.phtml" hash="b146ee4b5a669e2bde2cb300baeedd80"/><dir name="pdf"><file name="info.phtml" hash="145976fe44cdfef7cb0a9ec438a3c162"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="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="4b365112722a6b4d0555580ac1c20c5e"/><file name="payment.phtml" hash="68ec43efefd780b6912dd95ddebc4992"/><file name="placeform.phtml" hash="1886ca9af1a89d258b621646ed4c2693"/><file name="redirect.phtml" hash="ff792a53e3cd9721e906edafcc30e3d5"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Krp_Eximbay.xml" hash="f163f260b5d1203cb8b9146e838d672d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Krp_Eximbay.csv" hash="4ae9e31213fc1113498d1c162b7cef4d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="eximbay_acc.jpg" hash="b64b77cd6a2a3bcea931e78c85b01e54"/><file name="eximbay_alp.jpg" hash="fdf33a103183ee24f238d26b4b546de5"/><file name="eximbay_banner.png" hash="afd1fd216aefbbfc7caaade06e5e25e4"/><file name="eximbay_cup.jpg" hash="42c17b3b9b9841a28efc1f921099ee6f"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/><file name="eximbay_logo.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_nnb.jpg" hash="31063516179a5fb158f02cb25b5f94fb"/><file name="eximbay_ppl.jpg" hash="80e621524248fe39508f91349a353bb5"/><file name="eximbay_tnp.jpg" hash="56d1053176bc6ea5b7a39ec43b9d2da2"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|