개인결제 이니시스 모듈 오류 수정
This commit is contained in:
@ -3,7 +3,10 @@ include_once('./_common.php');
|
|||||||
include_once(G5_LIB_PATH.'/json.lib.php');
|
include_once(G5_LIB_PATH.'/json.lib.php');
|
||||||
include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');
|
include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');
|
||||||
|
|
||||||
$orderNumber = get_session('ss_order_id');
|
if($default['de_pg_service'] != 'inicis')
|
||||||
|
die(json_encode(array('error'=>'올바른 방법으로 이용해 주십시오.')));
|
||||||
|
|
||||||
|
$orderNumber = get_session('ss_order_inicis_id');
|
||||||
$price = preg_replace('#[^0-9]#', '', $_POST['price']);
|
$price = preg_replace('#[^0-9]#', '', $_POST['price']);
|
||||||
|
|
||||||
if(strlen($price) < 1)
|
if(strlen($price) < 1)
|
||||||
|
|||||||
@ -26,6 +26,8 @@ if (get_cart_count($tmp_cart_id) == 0)
|
|||||||
$od_id = get_uniqid();
|
$od_id = get_uniqid();
|
||||||
set_session('ss_order_id', $od_id);
|
set_session('ss_order_id', $od_id);
|
||||||
$s_cart_id = $tmp_cart_id;
|
$s_cart_id = $tmp_cart_id;
|
||||||
|
if($default['de_pg_service'] == 'inicis')
|
||||||
|
set_session('ss_order_inicis_id', $od_id);
|
||||||
|
|
||||||
$g5['title'] = '주문서 작성';
|
$g5['title'] = '주문서 작성';
|
||||||
|
|
||||||
|
|||||||
@ -15,23 +15,6 @@ if($pp['pp_tno'])
|
|||||||
|
|
||||||
$g5['title'] = $pp['pp_name'].'님 개인결제';
|
$g5['title'] = $pp['pp_name'].'님 개인결제';
|
||||||
|
|
||||||
// 전자결제를 사용할 때만 실행
|
|
||||||
if(!$is_mobile_pay) {
|
|
||||||
if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use']) {
|
|
||||||
switch($default['de_pg_service']) {
|
|
||||||
case 'lg':
|
|
||||||
$g5['body_script'] = '';
|
|
||||||
break;
|
|
||||||
case 'inicis':
|
|
||||||
$g5['body_script'] = ' onload="javascript:enable_click()"';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$g5['body_script'] = ' onload="CheckPayplusInstall();"';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(G5_IS_MOBILE)
|
if(G5_IS_MOBILE)
|
||||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
else
|
else
|
||||||
@ -56,6 +39,9 @@ $od_id = $pp_id;
|
|||||||
$tot_price = $pp['pp_price'];
|
$tot_price = $pp['pp_price'];
|
||||||
$goods = $pp['pp_name'].'님 개인결제';
|
$goods = $pp['pp_name'].'님 개인결제';
|
||||||
|
|
||||||
|
if($default['de_pg_service'] == 'inicis')
|
||||||
|
set_session('ss_order_inicis_id', $od_id);
|
||||||
|
|
||||||
// 기기별 결제폼 include
|
// 기기별 결제폼 include
|
||||||
if($is_mobile_pay) {
|
if($is_mobile_pay) {
|
||||||
$order_action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php';
|
$order_action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php';
|
||||||
|
|||||||
@ -258,17 +258,37 @@ function forderform_check(f)
|
|||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if($default['de_pg_service'] == 'inicis') { ?>
|
<?php if($default['de_pg_service'] == 'inicis') { ?>
|
||||||
|
f.price.value = f.good_mny.value;
|
||||||
f.buyername.value = f.pp_name.value;
|
f.buyername.value = f.pp_name.value;
|
||||||
f.buyeremail.value = f.pp_email.value;
|
f.buyeremail.value = f.pp_email.value;
|
||||||
f.buyertel.value = f.pp_hp.value;
|
f.buyertel.value = f.pp_hp.value;
|
||||||
|
|
||||||
if(f.gopaymethod.value != "무통장") {
|
if(f.gopaymethod.value != "무통장") {
|
||||||
if(!set_encrypt_data(f))
|
// 주문정보 임시저장
|
||||||
|
var order_data = $(f).serialize();
|
||||||
|
var save_result = "";
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
data: order_data,
|
||||||
|
url: g5_url+"/shop/ajax.orderdatasave.php",
|
||||||
|
cache: false,
|
||||||
|
async: false,
|
||||||
|
success: function(data) {
|
||||||
|
save_result = data;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if(save_result) {
|
||||||
|
alert(save_result);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!make_signature(f))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return pay(f);
|
paybtn(f);
|
||||||
} else {
|
} else {
|
||||||
return true;
|
f.submit();
|
||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user