Example #1
0
        <colgroup>
            <col class="grid_4">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row">결과코드</th>
            <td><?php 
echo $inipay->GetResult('ResultCode');
?>
</td>
        </tr>
        <tr>
            <th scope="row">결과 메세지</th>
            <td><?php 
echo iconv_utf8($inipay->GetResult('ResultMsg'));
?>
</td>
        </tr>
        <tr>
            <th scope="row">현금영수증 거래번호</th>
            <td><?php 
echo $inipay->GetResult('TID');
?>
</td>
        </tr>
        <tr>
            <th scope="row">현금영수증 승인번호</th>
            <td><?php 
echo $inipay->GetResult('ApplNum');
?>
Example #2
0
      ****************/
     $inipay->startAction();
     /****************************************************************
      * 5. 취소 결과                                           	*
      *                                                        	*
      * 결과코드 : $inipay->getResult('ResultCode') ("00"이면 취소 성공)  	*
      * 결과내용 : $inipay->getResult('ResultMsg') (취소결과에 대한 설명) 	*
      * 취소날짜 : $inipay->getResult('CancelDate') (YYYYMMDD)          	*
      * 취소시각 : $inipay->getResult('CancelTime') (HHMMSS)            	*
      * 현금영수증 취소 승인번호 : $inipay->getResult('CSHR_CancelNum')    *
      * (현금영수증 발급 취소시에만 리턴됨)                          *
      ****************************************************************/
     $res_cd = $inipay->getResult('ResultCode');
     $res_msg = $inipay->getResult('ResultMsg');
     if ($res_cd != '00') {
         alert(iconv_utf8($res_msg) . ' 코드 : ' . $res_cd);
     }
     break;
 default:
     require_once './settle_kcp.inc.php';
     $_POST['tno'] = $od['od_tno'];
     $_POST['req_tx'] = 'mod';
     $_POST['mod_type'] = 'STSC';
     if ($od['od_escrow']) {
         $_POST['req_tx'] = 'mod_escrow';
         $_POST['mod_type'] = 'STE2';
         if ($od['od_settle_case'] == '가상계좌') {
             $_POST['mod_type'] = 'STE5';
         }
     }
     $_POST['mod_desc'] = iconv("utf-8", "euc-kr", '주문자 본인 취소-' . $cancel_memo);
Example #3
0
****************************************************************************************************************/
if ($inipay->GetResult("ResultCode") == "00") {
    //최종결제요청 결과 성공 DB처리
    $tno = $inipay->GetResult('TID');
    $amount = $inipay->GetResult('TotPrice');
    $app_time = $inipay->GetResult('ApplDate') . $inipay->GetResult('ApplTime');
    $pay_method = $inipay->GetResult('PayMethod');
    $pay_type = $PAY_METHOD[$pay_method];
    $depositor = iconv_utf8($inipay->GetResult('VACT_InputName'));
    $commid = '';
    $mobile_no = $inipay->GetResult('HPP_Num');
    $app_no = $inipay->GetResult('ApplNum');
    $card_name = $CARD_CODE[$inipay->GetResult('CARD_Code')];
    if ($default['de_escrow_use'] == 1) {
        $escw_yn = 'Y';
    }
    switch ($pay_type) {
        case '계좌이체':
            $bank_name = $BANK_CODE[$inipay->GetResult('ACCT_BankCode')];
            break;
        case '가상계좌':
            $bankname = $BANK_CODE[$inipay->GetResult('VACT_BankCode')];
            $account = $inipay->GetResult('VACT_Num') . ' ' . iconv_utf8($inipay->GetResult('VACT_Name'));
            $app_no = $inipay->GetResult('VACT_Num');
            break;
        default:
            break;
    }
} else {
    alert(iconv_utf8($inipay->GetResult("ResultMsg")) . ' 코드 : ' . $inipay->GetResult("ResultCode"));
}
 $j = 1;
 switch ($ext) {
     case '.csv':
         $name = $csv[$i][0];
         $str_encode = @mb_detect_encoding($name, $encode);
         if ($str_encode == "EUC-KR") {
             $name = iconv_utf8($name);
         }
         $name = addslashes($name);
         $hp = addslashes($csv[$i][1]);
         break;
     case '.xls':
         $name = addslashes($data->sheets[0]['cells'][$i][$j++]);
         $str_encode = @mb_detect_encoding($name, $encode);
         if ($str_encode == "EUC-KR") {
             $name = iconv_utf8($name);
         }
         $hp = addslashes(get_hp($data->sheets[0]['cells'][$i][$j++]));
         break;
 }
 if (!(strlen($name) && $hp)) {
     $failure++;
 } else {
     if (in_array($hp, $arr_hp)) {
         $inner_overlap++;
     } else {
         array_push($arr_hp, $hp);
         $res = sql_fetch("select * from {$g5['sms5_book_table']} where bk_hp='{$hp}'");
         if ($res) {
             $overlap++;
         } else {
Example #5
0
                 $cust_ip = $_SERVER['REMOTE_ADDR'];
                 $bSucc_mod_type = "STSC";
                 $c_PayPlus->mf_set_modx_data("tno", $tno);
                 // KCP 원거래 거래번호
                 $c_PayPlus->mf_set_modx_data("mod_type", $bSucc_mod_type);
                 // 원거래 변경 요청 종류
                 $c_PayPlus->mf_set_modx_data("mod_ip", $cust_ip);
                 // 변경 요청자 IP
                 $c_PayPlus->mf_set_modx_data("mod_desc", $cancel_msg);
                 // 변경 사유
                 $c_PayPlus->mf_do_tx($tno, $g_conf_home_dir, $g_conf_site_cd, $g_conf_site_key, $tran_cd, "", $g_conf_gw_url, $g_conf_gw_port, "payplus_cli_slib", $ordr_idxx, $cust_ip, "3", 0, 0, $g_conf_key_dir, $g_conf_log_dir);
                 $res_cd = $c_PayPlus->m_res_cd;
                 $res_msg = $c_PayPlus->m_res_msg;
                 if ($res_cd != '0000') {
                     $pg_res_cd = $res_cd;
                     $pg_res_msg = iconv_utf8($res_msg);
                 }
                 // locale 설정 초기화
                 setlocale(LC_CTYPE, '');
                 break;
         }
         // PG 취소요청 성공했으면
         if ($pg_res_cd == '') {
             $pg_cancel_log = ' PG 신용카드 승인취소 처리';
             $sql = " update {$g5['g5_shop_order_table']}\n                                set od_refund_price = '{$od['od_receipt_price']}'\n                                where od_id = '{$od_id}' ";
             sql_query($sql);
         }
     }
 }
 // 관리자 주문취소 로그
 $mod_history .= G5_TIME_YMDHIS . ' ' . $member['mb_id'] . ' 주문' . $_POST['ct_status'] . ' 처리' . $pg_cancel_log . "\n";
Example #6
0
    </tr>
    </thead>
    <tbody>
    <?php 
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $brow = get_brow($row['vi_agent']);
    $os = get_os($row['vi_agent']);
    $link = '';
    $link2 = '';
    $referer = '';
    $title = '';
    if ($row['vi_referer']) {
        $referer = get_text(cut_str($row['vi_referer'], 255, ''));
        $referer = urldecode($referer);
        if (!is_utf8($referer)) {
            $referer = iconv_utf8($referer);
        }
        $title = str_replace(array('<', '>', '&'), array("&lt;", "&gt;", "&amp;"), $referer);
        $link = '<a href="' . $row['vi_referer'] . '" target="_blank">';
        $link = str_replace('&', "&amp;", $link);
        $link2 = '</a>';
    }
    if ($is_admin == 'super') {
        $ip = $row['vi_ip'];
    } else {
        $ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['vi_ip']);
    }
    if ($brow == '기타') {
        $brow = '<span title="' . get_text($row['vi_agent']) . '">' . $brow . '</span>';
    }
    if ($os == '기타') {
Example #7
0
                }
            }
        }
        if ($result) {
            echo "OK";
            return;
        } else {
            echo "FAIL";
            return;
        }
    }
    $PageCall_time = date("H:i:s");
    $value = array("PageCall time" => $PageCall_time, "P_TID" => $P_TID, "P_MID" => $P_MID, "P_AUTH_DT" => $P_AUTH_DT, "P_STATUS" => $P_STATUS, "P_TYPE" => $P_TYPE, "P_OID" => $P_OID, "P_FN_CD1" => $P_FN_CD1, "P_FN_CD2" => $P_FN_CD2, "P_FN_NM" => $P_FN_NM, "P_AMT" => $P_AMT, "P_UNAME" => $P_UNAME, "P_RMESG1" => $P_RMESG1, "P_RMESG2" => $P_RMESG2, "P_NOTI" => $P_NOTI, "P_AUTH_NO" => $P_AUTH_NO, "P_SRC_CODE" => $P_SRC_CODE);
    // 결과 incis log 테이블 기록
    if ($P_TYPE == 'BANK' || $P_SRC_CODE == 'A') {
        $sql = " insert into {$g5['g5_shop_inicis_log_table']}\n                    set oid       = '{$P_OID}',\n                        P_TID     = '{$P_TID}',\n                        P_MID     = '{$P_MID}',\n                        P_AUTH_DT = '{$P_AUTH_DT}',\n                        P_STATUS  = '{$P_STATUS}',\n                        P_TYPE    = '{$P_TYPE}',\n                        P_OID     = '{$P_OID}',\n                        P_FN_NM   = '" . iconv_utf8($P_FN_NM) . "',\n                        P_AUTH_NO = '{$P_AUTH_NO}',\n                        P_AMT     = '{$P_AMT}',\n                        P_RMESG1  = '" . iconv_utf8($P_RMESG1) . "' ";
        @sql_query($sql);
    }
    // 결제처리에 관한 로그 기록
    //writeLog($value);
    /***********************************************************************************
        ' 위에서 상점 데이터베이스에 등록 성공유무에 따라서 성공시에는 "OK"를 이니시스로 실패시는 "FAIL" 을
        ' 리턴하셔야합니다. 아래 조건에 데이터베이스 성공시 받는 FLAG 변수를 넣으세요
        ' (주의) OK를 리턴하지 않으시면 이니시스 지불 서버는 "OK"를 수신할때까지 계속 재전송을 시도합니다
        ' 기타 다른 형태의 echo "" 는 하지 않으시기 바랍니다
       '***********************************************************************************/
    echo 'OK';
}
function writeLog($msg)
{
    $file = G5_SHOP_PATH . "/inicis/log/noti_input_" . date("Ymd") . ".log";
Example #8
0
include_once G5_PATH . '/head.sub.php';
$exclude = array('res_cd', 'P_HASH', 'P_TYPE', 'P_AUTH_DT', 'P_AUTH_NO', 'P_HPP_CORP', 'P_APPL_NUM', 'P_VACT_NUM', 'P_VACT_NAME', 'P_VACT_BANK', 'P_CARD_ISSUER', 'P_UNAME');
echo '<form name="forderform" method="post" action="' . $order_action_url . '" autocomplete="off">' . PHP_EOL;
echo make_order_field($data, $exclude);
echo '<input type="hidden" name="res_cd"        value="' . $PAY['P_STATUS'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_HASH"        value="' . $hash . '">' . PHP_EOL;
echo '<input type="hidden" name="P_TYPE"        value="' . $PAY['P_TYPE'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_AUTH_DT"     value="' . $PAY['P_AUTH_DT'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_AUTH_NO"     value="' . $PAY['P_AUTH_NO'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_HPP_CORP"    value="' . $PAY['P_HPP_CORP'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_APPL_NUM"    value="' . $PAY['P_APPL_NUM'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_VACT_NUM"    value="' . $PAY['P_VACT_NUM'] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_VACT_NAME"   value="' . iconv_utf8($PAY['P_VACT_NAME']) . '">' . PHP_EOL;
echo '<input type="hidden" name="P_VACT_BANK"   value="' . $BANK_CODE[$PAY['P_VACT_BANK_CODE']] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_CARD_ISSUER" value="' . $CARD_CODE[$PAY['P_CARD_ISSUER_CODE']] . '">' . PHP_EOL;
echo '<input type="hidden" name="P_UNAME"       value="' . iconv_utf8($PAY['P_UNAME']) . '">' . PHP_EOL;
echo '</form>' . PHP_EOL;
?>

<div id="show_progress">
    <span style="display:block; text-align:center;margin-top:120px"><img src="<?php 
echo G5_MOBILE_URL;
?>
/shop/img/loading.gif" alt=""></span>
    <span style="display:block; text-align:center;margin-top:10px; font-size:14px">주문완료 중입니다. 잠시만 기다려 주십시오.</span>
</div>

<script type="text/javascript">
function setPAYResult() {
    setTimeout( function() {
        document.forderform.submit();