결제 - 키움결제 네이버페이 포인트주문취소 관련처리
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
------- -------- ---------------------------
|
||||
since : 2024.05.28 임수영 최초 생성
|
||||
--%>
|
||||
|
||||
<%
|
||||
String serverName = request.getServerName();
|
||||
String sysEnv = "live";
|
||||
if(serverName.contains("dev") || serverName.contains("loc")){sysEnv = "dev";};
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
@@ -350,12 +356,20 @@
|
||||
|
||||
let paycoUrl = "https://bill.payco.com/seller/receipt/GB_UZRSXP/"+ordrInnb+"/"+pgInnb+"" //페이코(as_is)
|
||||
|
||||
/* kiwoom url
|
||||
/* kiwoom url , kiwoom naverpay
|
||||
* DAOUTRX : 다우거래번호
|
||||
* STATUS : 11 = 승인전표 / 12 = 취소전표 / 16 = 부분취소 / A = 자동상태
|
||||
*/
|
||||
const kiwoomCardUrl = "https://agenttest.kiwoompay.co.kr/common/PayInfoPrintDirectCard.jsp?DAOUTRX="+pgInnb+"&STATUS=11"; //개발
|
||||
const kiwoomCardLiveUrl = "https://agent.kiwoompay.co.kr/common/PayInfoPrintDirectCard.jsp?DAOUTRX=CTS26033118224396081&STATUS=11"; //운영
|
||||
const env = "<%=sysEnv%>";
|
||||
let kiwoomCardUrl = "";
|
||||
let kiwoomNaverUrl = "";
|
||||
if(env == "dev"){ //개발
|
||||
kiwoomCardUrl = "https://agenttest.kiwoompay.co.kr/common/PayInfoPrintDirectCard.jsp?DAOUTRX="+pgInnb+"&STATUS=11";
|
||||
kiwoomNaverUrl = "https://agenttest.kiwoompay.co.kr/common/PayInfoPrintNaverPay.jsp?DAOUTRX="+pgInnb+"&STATUS=11";
|
||||
}else{
|
||||
kiwoomCardUrl = "https://agent.kiwoompay.co.kr/common/PayInfoPrintDirectCard.jsp?DAOUTRX="+pgInnb+"&STATUS=11";
|
||||
kiwoomNaverUrl = "https://agent.kiwoompay.co.kr/common/PayInfoPrintNaverPay.jsp?DAOUTRX="+pgInnb+"&STATUS=11";
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
@@ -372,7 +386,9 @@
|
||||
tossCashUrl = "https://dashboard.tosspayments.com/receipt/mids/" + mid + "/orders/" + cashOrdrInnb + "/cash-receipt?ref=email" // 현금
|
||||
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
url = kiwoomCardUrl;
|
||||
if(setleTyCd=='01'){ url = kiwoomCardUrl;}
|
||||
} else if(pgCmpnyNm == "naverpay") {
|
||||
if(setleTyCd=='01'){ url = kiwoomNaverUrl;}
|
||||
} else if (pgCmpnyNm == 'toss') {
|
||||
if (reqstDvCd == '02' || reqstDvCd == "03") { // 현금영수증
|
||||
if (setleTyCd == '03' || setleTyCd == '04' || setleTyCd == '05') { // 계좌이체, 가상계좌
|
||||
|
||||
Reference in New Issue
Block a user