diff --git a/mobile/shop/nicepay/nicepay_result.php b/mobile/shop/nicepay/nicepay_result.php index ea9071fe0..624a2a19b 100644 --- a/mobile/shop/nicepay/nicepay_result.php +++ b/mobile/shop/nicepay/nicepay_result.php @@ -4,8 +4,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 // 나이스페이 공통 설정 require_once(G5_MSHOP_PATH.'/settle_nicepay.inc.php'); -if (function_exists('add_log')) add_log($_POST); - /* **************************************************************************************** * diff --git a/mobile/shop/nicepay/return_url_result.php b/mobile/shop/nicepay/return_url_result.php index b07e19b31..9b0b031af 100644 --- a/mobile/shop/nicepay/return_url_result.php +++ b/mobile/shop/nicepay/return_url_result.php @@ -2,8 +2,6 @@ include_once('./_common.php'); include_once(G5_MSHOP_PATH.'/settle_nicepay.inc.php'); -if (function_exists('add_log')) add_log($_POST); - $authResultCode = isset($_POST['AuthResultCode']) ? clean_xss_tags($_POST['AuthResultCode']) : ''; // authentication result code 0000:success $authResultMsg = isset($_POST['AuthResultMsg']) ? clean_xss_tags($_POST['AuthResultMsg']) : ''; // authentication result message $mid = isset($_POST['MID']) ? clean_xss_tags($_POST['MID']) : ''; // merchant id diff --git a/mobile/shop/orderformupdate.php b/mobile/shop/orderformupdate.php index 78e636353..8e003b2ae 100644 --- a/mobile/shop/orderformupdate.php +++ b/mobile/shop/orderformupdate.php @@ -698,6 +698,10 @@ if(! $result || ! (isset($exists_order['od_id']) && $od_id && $exists_order['od_ case 'inicis': include G5_SHOP_PATH.'/inicis/inipay_cancel.php'; break; + case 'nicepay': + $cancelAmt = (int)$pg_price; + include G5_SHOP_PATH.'/nicepay/cancel_process.php'; + break; case 'KAKAOPAY': $_REQUEST['TID'] = $tno; $_REQUEST['Amt'] = $amount; @@ -756,6 +760,10 @@ if(!$result) { case 'inicis': include G5_SHOP_PATH.'/inicis/inipay_cancel.php'; break; + case 'nicepay': + $cancelAmt = (int)$pg_price; + include G5_SHOP_PATH.'/nicepay/cancel_process.php'; + break; case 'KAKAOPAY': $_REQUEST['TID'] = $tno; $_REQUEST['Amt'] = $amount; diff --git a/shop/nicepay/cancel_process.php b/shop/nicepay/cancel_process.php index ddd5b85c5..34cb29b4f 100644 --- a/shop/nicepay/cancel_process.php +++ b/shop/nicepay/cancel_process.php @@ -36,8 +36,6 @@ try{ 'CharSet' => 'utf-8' ); - if (function_exists('add_log')) add_log($data); - /* **************************************************************************************** * @@ -46,9 +44,6 @@ try{ $response = nicepay_reqPost($data, "https://pg-api.nicepay.co.kr/webapi/cancel_process.jsp"); //Cancel API call $result = json_decode($response, true); - - if (function_exists('add_log')) add_log(array('1'=>1)); - if (function_exists('add_log')) add_log($result, true, 'cc'); }catch(Exception $e){ $e->getMessage(); diff --git a/shop/nicepay/createsigndata.php b/shop/nicepay/createsigndata.php index 227159ca5..72e466732 100644 --- a/shop/nicepay/createsigndata.php +++ b/shop/nicepay/createsigndata.php @@ -12,8 +12,6 @@ if (! ($default['de_pg_service'] == 'nicepay' && $orderNumber)){ die(json_encode(array('error'=>'올바른 방법으로 이용해 주십시오.'))); } -if (function_exists('add_log')) add_log($_POST, false, 'ajax'); - $price = preg_replace('#[^0-9]#', '', $_POST['price']); if (strlen($price) < 1) { diff --git a/shop/nicepay/escrow.register.php b/shop/nicepay/escrow.register.php index eac90b908..30592d49e 100644 --- a/shop/nicepay/escrow.register.php +++ b/shop/nicepay/escrow.register.php @@ -5,6 +5,11 @@ if($od['od_pg'] != 'nicepay') return; include_once(G5_SHOP_PATH.'/settle_nicepay.inc.php'); +if (!$escrow_numb) { + // 송장번호가 없으면 등록이 안된다. + return; +} + $mid = $default['de_nicepay_mid']; $tid = $escrow_tno; // 거래 번호 $reqType = '03'; // 요청타입 (배송등록 03) @@ -45,8 +50,6 @@ $response = nicepay_reqPost($data, $escrowRequestURL); $nice_result = json_decode($response, true); -if (function_exists('add_log')) add_log($nice_result, true, 'es'); - // 성공이면 if (isset($nice_result['ResultCode']) && $nice_result['ResultCode'] === 'C000') { @@ -71,7 +74,4 @@ if (isset($nice_result['ResultCode']) && $nice_result['ResultCode'] === 'C000') $resultCode = $nice_result['ResultCode']; // 결과코드 ("00"이면 지불 성공) $resultMsg = $nice_result['ResultMsg']; // 결과내용 (지불결과에 대한 설명) $dlv_date = $nice_result['ProcessDate']; -$dlv_time = $nice_result['ProcessTime']; - -echo "에스크로배송"; -exit; \ No newline at end of file +$dlv_time = $nice_result['ProcessTime']; \ No newline at end of file diff --git a/shop/nicepay/nicepay_result.php b/shop/nicepay/nicepay_result.php index 69fcf34b8..73e6166af 100644 --- a/shop/nicepay/nicepay_result.php +++ b/shop/nicepay/nicepay_result.php @@ -4,8 +4,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 // 나이스페이 공통 설정 require_once(G5_SHOP_PATH.'/settle_nicepay.inc.php'); -if (function_exists('add_log')) add_log($_POST); - /* **************************************************************************************** * @@ -113,8 +111,6 @@ if($authResultCode === "0000"){ } $respArr = json_decode($response, true); - - if (function_exists('add_log')) add_log($respArr); $ResultCode = nicepay_res('ResultCode', $respArr); $ResultMsg = nicepay_res('ResultMsg', $respArr); diff --git a/shop/nicepay/taxsave_result.php b/shop/nicepay/taxsave_result.php index 3ff768230..3d4ccb04f 100644 --- a/shop/nicepay/taxsave_result.php +++ b/shop/nicepay/taxsave_result.php @@ -84,8 +84,6 @@ $response = nicepay_reqPost($data, "https://pg-api.nicepay.co.kr/webapi/cash_rec $result = json_decode($response, true); -if (function_exists('add_log')) add_log($result, true, 'rr'); - // 성공이면 if (isset($result['ResultCode']) && $result['ResultCode'] === '7001') { diff --git a/shop/orderformupdate.php b/shop/orderformupdate.php index 46a5619b9..bcd35f646 100644 --- a/shop/orderformupdate.php +++ b/shop/orderformupdate.php @@ -652,6 +652,10 @@ if(! $result || ! (isset($exists_order['od_id']) && $od_id && $exists_order['od_ case 'inicis': include G5_SHOP_PATH.'/inicis/inipay_cancel.php'; break; + case 'nicepay': + $cancelAmt = (int)$pg_price; + include G5_SHOP_PATH.'/nicepay/cancel_process.php'; + break; case 'KAKAOPAY': $_REQUEST['TID'] = $tno; $_REQUEST['Amt'] = $amount; @@ -707,6 +711,10 @@ if(!$result) { case 'inicis': include G5_SHOP_PATH.'/inicis/inipay_cancel.php'; break; + case 'nicepay': + $cancelAmt = (int)$pg_price; + include G5_SHOP_PATH.'/nicepay/cancel_process.php'; + break; case 'KAKAOPAY': $_REQUEST['TID'] = $tno; $_REQUEST['Amt'] = $amount; diff --git a/shop/settle_nicepay_common.php b/shop/settle_nicepay_common.php index e4b18b38b..72b543583 100644 --- a/shop/settle_nicepay_common.php +++ b/shop/settle_nicepay_common.php @@ -1,8 +1,6 @@