include './_common.php'; /* ============================================================================== */ /* = PAGE : 결과 처리 PAGE = */ /* = -------------------------------------------------------------------------- = */ /* = Copyright (c) 2007 KCP Inc. All Rights Reserverd. = */ /* ============================================================================== */ ?> /* ============================================================================== */ /* = 01. KCP 지불 서버 정보 설정 = */ /* = -------------------------------------------------------------------------- = */ $g_conf_home_dir = G4_SHOP_PATH.'/kcp'; // ※ 쇼핑몰 모듈 설치 절대 경로 bin전까지 $g_conf_log_level = "3"; if ($default['de_card_test']) { $default['de_kcp_mid'] = 'T0000'; } if ($default['de_kcp_mid'] == 'T0000') { $g_conf_pa_url = "testpaygw.kcp.co.kr"; // ※ 테스트: testpaygw.kcp.co.kr, 리얼: paygw.kcp.co.kr $g_conf_pa_port = "8090"; // ※ 테스트: 8090, 리얼: 8090 } else { $g_conf_pa_url = "paygw.kcp.co.kr"; $g_conf_pa_port = "8090"; } $g_conf_tx_mode = 0; /* ============================================================================== */ /* ============================================================================== */ /* = 지불 결과 = */ /* = -------------------------------------------------------------------------- = */ $req_tx = $_POST[ "req_tx" ]; // 요청 종류 $bSucc = $_POST[ "bSucc" ]; // DB처리 여부 $trad_time = $_POST[ "trad_time" ]; // 원거래 시각 /* = -------------------------------------------------------------------------- = */ $ordr_idxx = $_POST[ "ordr_idxx" ]; // 주문번호 $buyr_name = $_POST[ "buyr_name" ]; // 주문자 이름 $buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호 $buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 메일 $good_name = $_POST[ "good_name" ]; // 주문상품명 $comment = $_POST[ "comment" ]; // 비고 /* = -------------------------------------------------------------------------- = */ $corp_type = $_POST[ "corp_type" ]; // 사업장 구분 $corp_tax_type = $_POST[ "corp_tax_type" ]; // 과세/면세 구분 $corp_tax_no = $_POST[ "corp_tax_no" ]; // 발행 사업자 번호 $corp_nm = $_POST[ "corp_nm" ]; // 상호 $corp_owner_nm = $_POST[ "corp_owner_nm" ]; // 대표자명 $corp_addr = $_POST[ "corp_addr" ]; // 사업장 주소 $corp_telno = $_POST[ "corp_telno" ]; // 사업장 대표 연락처 /* = -------------------------------------------------------------------------- = */ $tr_code = $_POST[ "tr_code" ]; // 발행용도 $id_info = $_POST[ "id_info" ]; // 신분확인 ID $amt_tot = $_POST[ "amt_tot" ]; // 거래금액 총 합 $amt_sup = $_POST[ "amt_sup" ]; // 공급가액 $amt_svc = $_POST[ "amt_svc" ]; // 봉사료 $amt_tax = $_POST[ "amt_tax" ]; // 부가가치세 /* = -------------------------------------------------------------------------- = */ $pay_type = $_POST[ "pay_type" ]; // 결제 서비스 구분 $pay_trade_no = $_POST[ "pay_trade_no" ]; // 결제 거래번호 /* = -------------------------------------------------------------------------- = */ $mod_type = $_POST[ "mod_type" ]; // 변경 타입 $mod_value = $_POST[ "mod_value" ]; // 변경 요청 거래번호 $mod_gubn = $_POST[ "mod_gubn" ]; // 변경 요청 거래번호 구분 $mod_mny = $_POST[ "mod_mny" ]; // 변경 요청 금액 $rem_mny = $_POST[ "rem_mny" ]; // 변경처리 이전 금액 /* = -------------------------------------------------------------------------- = */ $res_cd = $_POST[ "res_cd" ]; // 응답코드 $res_msg = $_POST[ "res_msg" ]; // 응답메시지 $cash_no = $_POST[ "cash_no" ]; // 현금영수증 거래번호 $receipt_no = $_POST[ "receipt_no" ]; // 현금영수증 승인번호 $app_time = $_POST[ "app_time" ]; // 승인시간(YYYYMMDDhhmmss) $reg_stat = $_POST[ "reg_stat" ]; // 등록 상태 코드 $reg_desc = $_POST[ "reg_desc" ]; // 등록 상태 설명 /* ============================================================================== */ $req_tx_name = ""; if( $req_tx == "pay" ) { $req_tx_name = "등록"; } else if( $req_tx == "mod" ) { $req_tx_name = "변경/조회"; } ?>
![]() |
KCP Online Payment System | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||