diff --git a/mobile/shop/samsungpay/order.script.php b/mobile/shop/samsungpay/order.script.php index c6796d326..9a433b4a6 100644 --- a/mobile/shop/samsungpay/order.script.php +++ b/mobile/shop/samsungpay/order.script.php @@ -37,7 +37,12 @@ function samsungpay_form_submit(){ samsungpayform.P_RESERVED.value = samsungpayform.P_RESERVED.value.replace("&useescrow=Y", "")+"&d_samsungpay=Y"; } - samsungpayform.P_AMT.value = samsungpayform.good_mny.value; + if( ! jQuery("form[name='sm_form']").length ){ + alert("해당 폼이 존재 하지 않는 결제오류입니다."); + return false; + } + + samsungpayform.P_AMT.value = samsungpayform.good_mny.value = document.sm_form.good_mny.value; samsungpayform.P_UNAME.value = pf.od_name.value; samsungpayform.P_MOBILE.value = pf.od_hp.value; samsungpayform.P_EMAIL.value = pf.od_email.value; diff --git a/mobile/shop/settle_inicis.inc.php b/mobile/shop/settle_inicis.inc.php index 2449bf437..6cfbb3839 100644 --- a/mobile/shop/settle_inicis.inc.php +++ b/mobile/shop/settle_inicis.inc.php @@ -1,6 +1,8 @@ SetField("type", "cancel"); // 고정 + if( $default['de_inicis_admin_key'] ){ + $inipay->SetField("mid", $mid); + $inipay->SetField("admin", $default['de_inicis_admin_key']); + } $inipay->SetField("tid", $TID); // 고정 $inipay->SetField("cancelmsg", "DB FAIL"); // 취소사유 $inipay->startAction(); diff --git a/shop/settle_inicis.inc.php b/shop/settle_inicis.inc.php index f5e4caacc..6311ab9be 100644 --- a/shop/settle_inicis.inc.php +++ b/shop/settle_inicis.inc.php @@ -18,7 +18,9 @@ $stdpay_js_url = 'https://stdpay.inicis.com/stdjs/INIStdPay.js'; } else { - $default['de_inicis_mid'] = "SIR".$default['de_inicis_mid']; + if( !defined('G5_MOBILE_INICIS_SETTLE') ){ + $default['de_inicis_mid'] = "SIR".$default['de_inicis_mid']; + } if ($default['de_escrow_use'] == 1) { // 에스크로결제