결제 - 키움결제취소 네이버키 적용
This commit is contained in:
@@ -1564,9 +1564,16 @@ public class BOPayService{
|
|||||||
//관련 키값 DB 조회
|
//관련 키값 DB 조회
|
||||||
DataMap resultMap = selectPayLink(payVO.getSopmalCd());
|
DataMap resultMap = selectPayLink(payVO.getSopmalCd());
|
||||||
|
|
||||||
|
log.debug("cancelKiwoomPay step2 resultMap :::> {}", resultMap);
|
||||||
|
|
||||||
//요청코드
|
//요청코드
|
||||||
String authKey = resultMap.get("kcpSecretKey").toString();
|
String authKey = resultMap.get("kcpSecretKey").toString();
|
||||||
String cpId = resultMap.get("kcpMid").toString();
|
String cpId = resultMap.get("kcpMid").toString();
|
||||||
|
if ("naverpay".equals(payVO.getModGubun())) {
|
||||||
|
authKey = resultMap.get("bpaySecretKey").toString();
|
||||||
|
cpId = resultMap.get("bpayMid").toString();
|
||||||
|
}
|
||||||
|
|
||||||
String amount = payVO.getCancelAmount(); //취소금액
|
String amount = payVO.getCancelAmount(); //취소금액
|
||||||
String trxId = payVO.getTno(); //거래번호
|
String trxId = payVO.getTno(); //거래번호
|
||||||
String cancelReason = payVO.getCancelReason(); //취소사유
|
String cancelReason = payVO.getCancelReason(); //취소사유
|
||||||
@@ -1574,10 +1581,6 @@ public class BOPayService{
|
|||||||
String cancelReq = "Y"; //취소URL 요청여부
|
String cancelReq = "Y"; //취소URL 요청여부
|
||||||
//String TAXFREEAMT = nullCheck(request.getParameter("TAXFREEAMT")); //비과세 취소금액
|
//String TAXFREEAMT = nullCheck(request.getParameter("TAXFREEAMT")); //비과세 취소금액
|
||||||
|
|
||||||
/*if(payVO.getSetleTyCd().equals("01")) {
|
|
||||||
payMethod = "CARD";
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//1차 요청코드
|
//1차 요청코드
|
||||||
JSONObject obj = new JSONObject();
|
JSONObject obj = new JSONObject();
|
||||||
obj.put("cancelReason", cancelReason); //취소사유
|
obj.put("cancelReason", cancelReason); //취소사유
|
||||||
|
|||||||
@@ -1119,6 +1119,7 @@ public class BORtngudrefndService {
|
|||||||
payVO.setMemorSetleAt("Y");
|
payVO.setMemorSetleAt("Y");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
payVO.setModGubun(setle.getPgCmpnyNm()); //결제키 구분용
|
||||||
if ("kiwoom".equals(setle.getPgCmpnyNm())) {
|
if ("kiwoom".equals(setle.getPgCmpnyNm())) {
|
||||||
payVO.setPayMethod("CARD");
|
payVO.setPayMethod("CARD");
|
||||||
} else if ("naverpay".equals(setle.getPgCmpnyNm())) {
|
} else if ("naverpay".equals(setle.getPgCmpnyNm())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user