@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user