From abaeb3bbc35d17b06dc543c95273a7c757588bf8 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 4 Oct 2024 15:03:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20NICE=20CI=20accept=20=EC=A7=84=ED=96=89?= =?UTF-8?q?=20=20=20=20=20=20=20NICE=20CI=20API=20=ED=98=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/ens/modules/nice/service/NiceCiAcceptService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiAcceptService.java b/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiAcceptService.java index 486facd..9a9d97b 100644 --- a/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiAcceptService.java +++ b/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiAcceptService.java @@ -15,6 +15,7 @@ import cokr.xit.ens.core.exception.*; import cokr.xit.ens.core.exception.code.*; import cokr.xit.ens.core.utils.*; import cokr.xit.ens.modules.common.code.*; +import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.api.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.model.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.service.process.model.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.api.*; @@ -59,6 +60,7 @@ public class NiceCiAcceptService { private final INiceCiMapper niceCiMapper; private final PayUseSysApi payUseSysApi; + private final BillKkoPayApiSpec billKkoPayApi; private Gson gson = new GsonBuilder().disableHtmlEscaping().create(); @@ -207,8 +209,8 @@ public class NiceCiAcceptService { .build(); billHistoryService.insertBillHistory(billHistDTO); - ResponseEntity resEntity = payUseSysApi.payUrl(orgMng.getKkoBpUrlApi(), param, - null); + ResponseEntity resEntity = billKkoPayApi.url(orgMng.getKkoBpBillerCode(), orgMng.getKkoBpAuthorization(), + gson.toJson(param)); // 마스터 상태 실패처리 if(resEntity.getStatusCode() != HttpStatus.OK){