결제연동 $_REQUEST['resultCode'] 문의 채택완료
안녕하세요. 이니시스 결제를 개별적으로 연동중입니다.
즉, 솔루션의 이니시스 연동되어 있는 모듈을 활용하여 개인결제(?) 형태로 별도 페이지 구성중입니다.
현재 아래와 같은 에러메세지가 노출됩니다. (사이트 상세URL은 "..."으로 표기했습니다.)
####인증실패####array(48) { ["od_price"]=> string(5) "26006" ["org_od_price"]=> string(5) "26006" ["od_name"]=> string(9) "관리자" ["od_zip"]=> string(0) "" ["od_send_cost"]=> string(1) "0" ["od_send_cost2"]=> string(1) "0" ["item_coupon"]=> string(1) "0" ["od_coupon"]=> string(1) "0" ["od_send_coupon"]=> string(1) "0" ["od_goods_name"]=> string(12) "구매물품" ["od_email"]=> string(16) "admin@domain.com" ["od_hp"]=> string(13) "010-1212-1234" ["od_tel"]=> string(13) "010-1212-1234" ["od_addr1"]=> string(30) "대전 동구 계족로 184-55" ["od_addr2"]=> string(5) "12-56" ["order_id"]=> string(16) "2018091420102027" ["od_temp_point"]=> string(1) "0" ["it_chk"]=> array(1) { [0]=> string(2) "on" } ["good_mny"]=> string(5) "26006" ["version"]=> string(3) "1.0" ["mid"]=> string(10) "SIRlallay1" ["oid"]=> string(16) "2018091420102027" ["goodname"]=> string(4) "test" ["price"]=> string(5) "26006" ["buyername"]=> string(9) "관리자" ["buyeremail"]=> string(16) "admin@domain.com" ["parentemail"]=> string(0) "" ["buyertel"]=> string(13) "010-1212-1234" ["recvname"]=> string(9) "관리자" ["recvtel"]=> string(13) "010-1212-1234" ["recvaddr"]=> string(36) "대전 동구 계족로 184-55 12-56" ["recvpostnum"]=> string(0) "" ["currency"]=> string(3) "WON" ["gopaymethod"]=> string(4) "Card" ["acceptmethod"]=> string(43) "HPP(2):no_receipt:vbank(20181130):below1000" ["timestamp"]=> string(0) "" ["signature"]=> string(0) "" ["returnUrl"]=> string(51) "https://lallay.com/shop/inicis/inistdpay_return.php" ["mKey"]=> string(0) "" ["charset"]=> string(5) "UTF-8" ["payViewType"]=> string(7) "overlay" ["closeUrl"]=> string(40) "https://.../shop/inicis/close.php" ["popupUrl"]=> string(40) "https://.../shop/inicis/popup.php" ["nointerest"]=> string(0) "" ["quotabase"]=> string(24) "2:3:4:5:6:7:8:9:10:11:12" ["od_bank_account"]=> string(66) "기업은행 111-222333-33-111 (예금주:(주)컴퍼니)" ["od_deposit_name"]=> string(0) "" ["od_settle_case"]=> string(12) "신용카드" }
해당오류는 문제는 /shop/inicis/inistdpay_result.php의 아래 if 구절을 못타 else로 가게되는게 원인입니다. echo로 $_REQUEST['resultCode']) 를 찍어보니 아무것도 출력하지 못합니다.
기본적으로 영카트에서 $_REQUEST['resultCode'])를 어디서 불러오는지 조언좀 부탁드립니다. PG결제모듈은 이니시스입니다.
키파일 등은 모두 넣었습니다. 기본 영카트 결제에서 이니시스 결제는 됩니다.
if (strcmp('0000', $_REQUEST['resultCode']) == 0) {
... 중략 ...
} else {
$s = '(오류코드:'.$resultMap['resultCode'].') '.$resultMap['resultMsg'];
alert($s, $page_return_url);
}
답변 1개
shop\orderformupdate.php
파일내에 아래 구문이 인클루드 됩니다.
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
즉, 결과값은 이니시스에서 shop\orderformupdate.php 로 넘겨주는 겁니다.
답변에 대한 댓글 2개
이니시스에서 결과 페이지로 넘겨주는 값입니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인