결제 - 키움결제 운영 URL 수정

This commit is contained in:
이경숙
2026-05-06 17:52:13 +09:00
parent 16c373cb14
commit e4b5803f24

View File

@@ -1499,8 +1499,14 @@ public class BOPayService{
String kiwoom_ENC = "";
try {
String url = "https://apitest.kiwoompay.co.kr/pay/hash";
URL goUrl = new URL(url);
String targetURL = "";
if(cpId.equals("CTS18056")) {
targetURL = "https://apitest.kiwoompay.co.kr/pay/hash"; //개발서버
}else{
targetURL = "https://api.kiwoompay.co.kr/pay/hash"; //운영서버
}
log.info("insertKiwoomPay targetURL :::{} ",targetURL);
URL goUrl = new URL(targetURL);
HttpURLConnection con = (HttpURLConnection) goUrl.openConnection();
con.setRequestMethod("POST");
@@ -1609,6 +1615,7 @@ public class BOPayService{
}else{
targetURL = "https://api.kiwoompay.co.kr/pay/ready"; //운영서버
}
log.info("cancelKiwoomPay targetURL :::{} ",targetURL);
URL goUrl = new URL(targetURL);
HttpURLConnection con = (HttpURLConnection) goUrl.openConnection();