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){