결제 - 키움결제 매출전표에 키움 링크 추가
This commit is contained in:
@@ -333,7 +333,7 @@
|
||||
* order_no : order_idxx 값
|
||||
* trade_money : amount 값
|
||||
* cash_no : cash_no 값
|
||||
* pgInnb : PG 거래번호
|
||||
* pgInnb : PG 거래번호
|
||||
*/
|
||||
const kcpCashUrl = "http://admin8.kcp.co.kr/assist/bill.BillActionNew.do?cmd=cash_bill&cash_no="+cshRciptDelngNb+"&order_no="+cashOrdrInnb+"&trade_mony="+amt; // 현금영수증
|
||||
const kcpCardUrl = "https://admin8.kcp.co.kr/assist/bill.BillActionNew.do?cmd=card_bill&tno="+pgInnb+"&order_no="+ordrInnb+"&trade_mony="+amt;// 신용카드
|
||||
@@ -350,6 +350,13 @@
|
||||
|
||||
let paycoUrl = "https://bill.payco.com/seller/receipt/GB_UZRSXP/"+ordrInnb+"/"+pgInnb+"" //페이코(as_is)
|
||||
|
||||
/* kiwoom url
|
||||
* 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"; //운영
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/mngr/ordr/selngpruf/selectSopmalSetleSetup",
|
||||
@@ -364,7 +371,9 @@
|
||||
// toss url
|
||||
tossCashUrl = "https://dashboard.tosspayments.com/receipt/mids/" + mid + "/orders/" + cashOrdrInnb + "/cash-receipt?ref=email" // 현금
|
||||
|
||||
if (pgCmpnyNm == 'toss') {
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
url = kiwoomCardUrl;
|
||||
} else if (pgCmpnyNm == 'toss') {
|
||||
if (reqstDvCd == '02' || reqstDvCd == "03") { // 현금영수증
|
||||
if (setleTyCd == '03' || setleTyCd == '04' || setleTyCd == '05') { // 계좌이체, 가상계좌
|
||||
url = tossAcntUrl;
|
||||
|
||||
@@ -1015,13 +1015,22 @@
|
||||
const tossCardUrl = "https://dashboard.tosspayments.com/receipt/redirection?transactionId="+pgInnb+"&ref=PX"; //카드 / 간편결제(01)
|
||||
const tossAcntUrl = "https://dashboard.tosspayments.com/receipt/payment-detail/bank-transfer?transactionId="+pgInnb+"&ref=PX"; //계좌이체(03), 가상계좌(04,05)
|
||||
|
||||
if(pgCmpnyNm == "kcp") {
|
||||
/* kiwoom url
|
||||
* 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"; //운영
|
||||
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
if(setleTyCd=='01'){ url = kiwoomCardUrl;}
|
||||
} else if(pgCmpnyNm == "kcp") {
|
||||
|
||||
if(setleTyCd=='01'){ url = kcpCardUrl;}
|
||||
if(setleTyCd=='03'){ url = kcpAcntUrl;}
|
||||
if(setleTyCd=='04' || setleTyCd=='05'){ url = kcpVcntUrl;}
|
||||
|
||||
}else { //toss, tosspay, gcpay, kakaopay, naverpay 추가
|
||||
} else { //toss, tosspay, gcpay, kakaopay, naverpay 추가
|
||||
if(setleTyCd=='01'){ url = tossCardUrl;}
|
||||
if(setleTyCd=='03' || setleTyCd=='04' || setleTyCd=='05'){ url = tossAcntUrl;}
|
||||
}
|
||||
|
||||
@@ -1009,7 +1009,16 @@
|
||||
const tossCardUrl = "https://dashboard.tosspayments.com/receipt/redirection?transactionId="+pgInnb+"&ref=PX"; //카드 / 간편결제(01)
|
||||
const tossAcntUrl = "https://dashboard.tosspayments.com/receipt/payment-detail/bank-transfer?transactionId="+pgInnb+"&ref=PX"; //계좌이체(03), 가상계좌(04,05)
|
||||
|
||||
if(pgCmpnyNm == "kcp") {
|
||||
/* kiwoom url
|
||||
* 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"; //운영
|
||||
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
if(setleTyCd=='01'){ url = kiwoomCardUrl;}
|
||||
} else if(pgCmpnyNm == "kcp") {
|
||||
|
||||
if(setleTyCd=='01'){ url = kcpCardUrl;}
|
||||
if(setleTyCd=='03'){ url = kcpAcntUrl;}
|
||||
|
||||
@@ -567,7 +567,16 @@
|
||||
const tossCardUrl = "https://dashboard.tosspayments.com/receipt/redirection?transactionId="+pgInnb+"&ref=PX"; //카드 / 간편결제(01)
|
||||
const tossAcntUrl = "https://dashboard.tosspayments.com/receipt/payment-detail/bank-transfer?transactionId="+pgInnb+"&ref=PX"; //계좌이체(03), 가상계좌(04,05)
|
||||
|
||||
if(pgCmpnyNm == "kcp") {
|
||||
/* kiwoom url
|
||||
* 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"; //운영
|
||||
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
if(setleTyCd=='01'){ url = kiwoomCardUrl;}
|
||||
} else if(pgCmpnyNm == "kcp") {
|
||||
|
||||
if(setleTyCd=='01'){ url = kcpCardUrl;}
|
||||
if(setleTyCd=='03'){ url = kcpAcntUrl;}
|
||||
|
||||
@@ -550,7 +550,16 @@
|
||||
const tossCardUrl = "https://dashboard.tosspayments.com/receipt/redirection?transactionId="+pgInnb+"&ref=PX"; //카드 / 간편결제(01)
|
||||
const tossAcntUrl = "https://dashboard.tosspayments.com/receipt/payment-detail/bank-transfer?transactionId="+pgInnb+"&ref=PX"; //계좌이체(03), 가상계좌(04,05)
|
||||
|
||||
if(pgCmpnyNm == "kcp") {
|
||||
/* kiwoom url
|
||||
* 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"; //운영
|
||||
|
||||
if(pgCmpnyNm == "kiwoom") {
|
||||
if(setleTyCd=='01'){ url = kiwoomCardUrl;}
|
||||
} else if(pgCmpnyNm == "kcp") {
|
||||
|
||||
if(setleTyCd=='01'){ url = kcpCardUrl;}
|
||||
if(setleTyCd=='03'){ url = kcpAcntUrl;}
|
||||
|
||||
Reference in New Issue
Block a user