fix : 결제, 취소 - 키움결제 네이버페이 CPID 관련 적용

This commit is contained in:
이대환
2026-08-12 12:52:15 +09:00
parent 9347d5407c
commit 24c697bfbf
4 changed files with 14 additions and 13 deletions

View File

@@ -1570,10 +1570,10 @@ public class BOPayService{
String authKey = resultMap.get("kcpSecretKey").toString();
String cpId = resultMap.get("kcpMid").toString();
// 개발서버 네이버페이 CPID 관련 적용 취소
// if ("naverpay".equals(payVO.getModGubun())) {
// authKey = resultMap.get("bpaySecretKey").toString();
// cpId = resultMap.get("bpayMid").toString();
// }
if ("naverpay".equals(payVO.getModGubun())) {
authKey = resultMap.get("bpaySecretKey").toString();
cpId = resultMap.get("bpayMid").toString();
}
String amount = payVO.getCancelAmount(); //취소금액
String trxId = payVO.getTno(); //거래번호

View File

@@ -1120,7 +1120,7 @@ public class BORtngudrefndService {
}
// 개발서버 네이버페이 CPID 구분 적용 취소
// payVO.setModGubun(setle.getPgCmpnyNm()); //결제키 구분용
payVO.setModGubun(setle.getPgCmpnyNm()); //결제키 구분용
if ("kiwoom".equals(setle.getPgCmpnyNm())) {
payVO.setPayMethod("CARD");
} else if ("naverpay".equals(setle.getPgCmpnyNm())) {

View File

@@ -642,12 +642,12 @@
const kcpMid = '<c:out value="${data.payInfo.kcpMid}"/>';
const bpayMid = '<c:out value="${data.payInfo.bpayMid}"/>';
// 개발서버 네이버페이 CPID 구분 적용 취소
$(form).find('#siteCdMid').val(kcpMid);
// if('naverpay' === id) {
// $(form).find('#siteCdMid').val(bpayMid);
// } else {
// $(form).find('#siteCdMid').val(kcpMid);
// }
if('naverpay' === id) {
$(form).find('#siteCdMid').val(bpayMid);
} else {
$(form).find('#siteCdMid').val(kcpMid);
}
});
/* 결제예정금액 > 약관 전체동의 선택 이벤트 */

View File

@@ -21,6 +21,7 @@
<head>
<jsp:include page="/WEB-INF/views/comm/mobile/Include.jsp"/>
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
</head>
<script>
@@ -388,7 +389,7 @@
</c:if>
<p class="orderDetailProduct__info__quantity"><c:out value="${goods.ordrQy}"/>개<span
class="orderDetailProduct__info__dot">·</span><span
class="comma"><c:out value="${goods.applyDscntAmt}"/></span>원
class="comma"><c:out value="${goods.applyDscntAmt}"/></span>${curUnit}
</p>
<div class="orderDetailProduct__cancel">
<input type="hidden" class="sopmalCd" value="${goods.sopmalCd}"/>
@@ -459,7 +460,7 @@
</c:if>
<p class="orderDetailProduct__info__quantity"><c:out value="${goods.ordrQy}"/>개<span
class="orderDetailProduct__info__dot">·</span><span
class="comma"><c:out value="${goods.applyDscntAmt}"/></span>원
class="comma"><c:out value="${goods.applyDscntAmt}"/></span>${curUnit}
</p>
<div class="orderDetailProduct__cancel">
<input type="hidden" class="sopmalCd" value="${goods.sopmalCd}"/>