diff --git a/mobile/shop/kcp/order_approval_form.php b/mobile/shop/kcp/order_approval_form.php
index e807ae404..07ecbbbe3 100644
--- a/mobile/shop/kcp/order_approval_form.php
+++ b/mobile/shop/kcp/order_approval_form.php
@@ -62,6 +62,8 @@
$comm_vat_mny = $_POST[ "comm_vat_mny" ]; // 부가세
$comm_free_mny = $_POST["comm_free_mny" ]; // 비과세금액
+ $payco_direct = $_POST["payco_direct" ]; // PAYCO 결제창 호출
+
/*
* 기타 파라메터 추가 부분 - Start -
*/
@@ -99,6 +101,10 @@
$pay_method = 'VCNT';
$ActionResult = 'vcnt';
break;
+ case '간편결제':
+ $pay_method = 'CARD';
+ $ActionResult = 'card';
+ break;
default:
$pay_method = '';
$ActionResult = '';
@@ -242,6 +248,8 @@ if($enc_data != '' && $enc_info != '' && $tran_cd != '') {
+
+
diff --git a/mobile/shop/kcp/orderform.1.php b/mobile/shop/kcp/orderform.1.php
index 12c582f9f..312629b3e 100644
--- a/mobile/shop/kcp/orderform.1.php
+++ b/mobile/shop/kcp/orderform.1.php
@@ -18,6 +18,7 @@ if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'
+
diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php
index c81eaf69b..cd13e5e18 100644
--- a/mobile/shop/orderform.php
+++ b/mobile/shop/orderform.php
@@ -1187,6 +1187,8 @@ function pay_approval()
f.rcvr_add1.value = pf.od_b_addr1.value;
f.rcvr_add2.value = pf.od_b_addr2.value;
f.settle_method.value = settle_method;
+ if(settle_method == "간편결제")
+ f.payco_direct.value = "Y";
var pay_method = "";
var easy_pay = "";
diff --git a/mobile/shop/settle_kcp.inc.php b/mobile/shop/settle_kcp.inc.php
index 148eb229e..c70cbfad0 100644
--- a/mobile/shop/settle_kcp.inc.php
+++ b/mobile/shop/settle_kcp.inc.php
@@ -37,6 +37,12 @@ else {
$g_conf_site_cd = $default['de_kcp_mid'];
$g_conf_site_key = $default['de_kcp_site_key'];
+// 테스트 결제 때 PAYCO site_cd, site_key 재설정
+if($default['de_card_test'] && isset($_POST['od_settle_case']) && $_POST['od_settle_case'] == '간편결제') {
+ $g_conf_site_cd = 'S6729';
+ $g_conf_site_key = '';
+}
+
if(!(preg_match("/^T000/", $g_conf_site_cd) || $default['de_card_test'])) {
if (!preg_match("/^SR/", $g_conf_site_cd)) {
alert("SR 로 시작하지 않는 KCP SITE CODE 는 지원하지 않습니다.");
diff --git a/shop/kcp/orderform.2.php b/shop/kcp/orderform.2.php
index 49c74787f..46c121255 100644
--- a/shop/kcp/orderform.2.php
+++ b/shop/kcp/orderform.2.php
@@ -36,6 +36,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+
+
diff --git a/shop/orderform.php b/shop/orderform.php
index 47954641a..3d5e24e5b 100644
--- a/shop/orderform.php
+++ b/shop/orderform.php
@@ -1329,19 +1329,24 @@ function forderform_check(f)
switch(settle_method)
{
case "계좌이체":
- f.pay_method.value = "010000000000";
+ f.pay_method.value = "010000000000";
break;
case "가상계좌":
- f.pay_method.value = "001000000000";
+ f.pay_method.value = "001000000000";
break;
case "휴대폰":
- f.pay_method.value = "000010000000";
+ f.pay_method.value = "000010000000";
break;
case "신용카드":
- f.pay_method.value = "100000000000";
+ f.pay_method.value = "100000000000";
+ break;
+ case "간편결제":
+ f.site_cd.value = "S6729";
+ f.pay_method.value = "100000000000";
+ f.payco_direct.value = "Y";
break;
default:
- f.pay_method.value = "무통장";
+ f.pay_method.value = "무통장";
break;
}
diff --git a/shop/settle_kcp.inc.php b/shop/settle_kcp.inc.php
index 883bc972a..1473bcf6b 100644
--- a/shop/settle_kcp.inc.php
+++ b/shop/settle_kcp.inc.php
@@ -32,6 +32,12 @@ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
$g_conf_site_cd = $default['de_kcp_mid'];
$g_conf_site_key = $default['de_kcp_site_key'];
+// 테스트 결제 때 PAYCO site_cd, site_key 재설정
+if($default['de_card_test'] && isset($_POST['od_settle_case']) && $_POST['od_settle_case'] == '간편결제') {
+ $g_conf_site_cd = 'S6729';
+ $g_conf_site_key = '';
+}
+
if (preg_match("/^T000/", $g_conf_site_cd) || $default['de_card_test']) {
$g_conf_gw_url = "testpaygw.kcp.co.kr"; // real url : paygw.kcp.co.kr , test url : testpaygw.kcp.co.kr
}