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

(cherry picked from commit e4b5803f24)
This commit is contained in:
이경숙
2026-05-06 17:52:13 +09:00
parent 59cf8da8e4
commit 5d94218e98

View File

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