결제 - 키움결제 네이버페이 관련 처리
This commit is contained in:
@@ -1564,13 +1564,13 @@ public class BOPayService{
|
||||
String amount = payVO.getCancelAmount(); //취소금액 //todo :: db연결해서 가져와야 함 nullCheck(request.getParameter("AUTHKEY"));
|
||||
String trxId = payVO.getTno(); //거래번호
|
||||
String cancelReason = payVO.getCancelReason(); //취소사유
|
||||
String payMethod = ""; //취소결제수단
|
||||
String payMethod = payVO.getPayMethod(); //취소결제수단
|
||||
String cancelReq = "Y"; //취소URL 요청여부
|
||||
//String TAXFREEAMT = nullCheck(request.getParameter("TAXFREEAMT")); //비과세 취소금액
|
||||
|
||||
if(payVO.getSetleTyCd().equals("01")) {
|
||||
/*if(payVO.getSetleTyCd().equals("01")) {
|
||||
payMethod = "CARD";
|
||||
}
|
||||
}*/
|
||||
|
||||
//1차 요청코드
|
||||
JSONObject obj = new JSONObject();
|
||||
|
||||
@@ -844,8 +844,8 @@ public class BORtngudrefndService {
|
||||
|
||||
} else { // 일반결제
|
||||
|
||||
// 토스페이
|
||||
if ("tosspay".equals(setle.getPgCmpnyNm()) || "gcpay".equals(setle.getPgCmpnyNm()) || "toss".equals(setle.getPgCmpnyNm()) || "naverpay".equals(setle.getPgCmpnyNm()) || "kakaopay".equals(setle.getPgCmpnyNm())) {
|
||||
// 토스페이 || "naverpay".equals(setle.getPgCmpnyNm()) >> 네이버페이는 토스에서 분리해서 키움으로 이동
|
||||
if ("tosspay".equals(setle.getPgCmpnyNm()) || "gcpay".equals(setle.getPgCmpnyNm()) || "toss".equals(setle.getPgCmpnyNm()) || "kakaopay".equals(setle.getPgCmpnyNm())) {
|
||||
log.debug("toss 취소 진입");
|
||||
BOPayVO payVO = new BOPayVO();
|
||||
payVO.setOrderId(ordrInnb); // 주문 고유번호
|
||||
@@ -1105,7 +1105,7 @@ public class BORtngudrefndService {
|
||||
}
|
||||
|
||||
// kiwoom
|
||||
} else if ("kiwoom".equals(setle.getPgCmpnyNm())) {
|
||||
} else if ("kiwoom".equals(setle.getPgCmpnyNm()) || "naverpay".equals(setle.getPgCmpnyNm())) {
|
||||
log.debug("kiwoom 취소 진입");
|
||||
|
||||
BOPayVO payVO = new BOPayVO();
|
||||
@@ -1124,6 +1124,12 @@ public class BORtngudrefndService {
|
||||
payVO.setMemorSetleAt("Y");
|
||||
}
|
||||
|
||||
if ("kiwoom".equals(setle.getPgCmpnyNm())) {
|
||||
payVO.setPayMethod("CARD");
|
||||
} else if ("naverpay".equals(setle.getPgCmpnyNm())) {
|
||||
payVO.setPayMethod("NAVERPAY");
|
||||
}
|
||||
|
||||
log.info("kiwoom api 전달 파라미터 확인 : {}", payVO);
|
||||
setleCancelResultMessage = payService.cancelKiwoomPay(payVO);
|
||||
log.info("결제 취소 API 결과 확인 : {}", setleCancelResultMessage);
|
||||
|
||||
@@ -839,7 +839,7 @@ public class OrdrController {
|
||||
String pgCmpnyNm = setle.getPgCmpnyNm();
|
||||
String setleTyCd = setle.getSetleTyCd();
|
||||
|
||||
if ("kiwoom".equals(pgCmpnyNm)) {
|
||||
if ("kiwoom".equals(pgCmpnyNm)||"naverpay".equals(pgCmpnyNm)) {
|
||||
url = "sopmal/ordr/OrdrReqstKiwoomPayR";
|
||||
} else if ("gcpay".equals(pgCmpnyNm)) {
|
||||
url = "sopmal/ordr/OrdrReqstGcpayPayR";
|
||||
@@ -851,7 +851,7 @@ public class OrdrController {
|
||||
}
|
||||
} else if ("toss".equals(pgCmpnyNm)) {
|
||||
url = "sopmal/ordr/OrdrReqstTossPayR";
|
||||
} else if ("tosspay".equals(pgCmpnyNm)||"naverpay".equals(pgCmpnyNm)||"kakaopay".equals(pgCmpnyNm)) {
|
||||
} else if ("tosspay".equals(pgCmpnyNm)||"kakaopay".equals(pgCmpnyNm)) { //||"naverpay".equals(pgCmpnyNm) 키움으로 이동
|
||||
url = "sopmal/ordr/OrdrReqstTosspayPayR";
|
||||
} else if ("02".equals(setleTyCd)||"08".equals(setleTyCd)||"12".equals(setleTyCd)) { // 무통장, 마일리지, 충전형마일리지
|
||||
url = "sopmal/ordr/OrdrReqstPayR";
|
||||
@@ -1440,6 +1440,18 @@ public class OrdrController {
|
||||
return "sopmal/ordr/OrdrReqstKiwoomPreR";
|
||||
}
|
||||
|
||||
/**
|
||||
* 키움 결제 연계처리 - 결제창 취소버튼 클릭 시 페이지 이동
|
||||
* @return PayKiwoomSucsC.jsp
|
||||
* @author 이경숙
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/kiwoomPayCancelUrl")
|
||||
public String cancelUrlKiwoom(HttpServletRequest request, ModelMap model) throws Exception {
|
||||
|
||||
return "sopmal/ordr/OrdrReqstKiwoomCnclR";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 사용자 > 상품 > 구매/결제 > 회원구매하기 > 키움 결제 정보 등록
|
||||
|
||||
Reference in New Issue
Block a user