Skip to content

Commit 294a5df

Browse files
committed
danal 본인인증 오류 수정
1 parent 31b627e commit 294a5df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bootpay/src/main/java/kr/co/bootpay/BootpayWebView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ private String extraJson() {
455455
BootExtra extra = request.getBoot_extra();
456456
if("danal".equals(request.getPG())) {
457457
List<Integer> quotas = extra.getQuotas();
458+
if(quotas == null) return String.format(Locale.KOREA, "extra: %s", extra.toJson());
458459
int index = quotas.indexOf(1);
459460
if(index <= -1) return String.format(Locale.KOREA, "extra: %s", extra.toJson());
460461
quotas.remove(index);

sample/src/main/java/bootpay/co/kr/samplepayment/NativeActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ void goPGPay() {
9090
Bootpay.init(getFragmentManager())
9191
.setContext(this)
9292
.setApplicationId(application_id) // 해당 프로젝트(안드로이드)의 application id 값
93-
.setPG(PG.KCP) // 결제할 PG 사
94-
.setMethod(Method.NPAY)
93+
.setPG(PG.DANAL) // 결제할 PG 사
94+
.setMethod(Method.CARD)
9595
// .setEasyPayUserToken("wef")
9696
// .setMethodList(Arrays.asList(Method.EASY_CARD, Method.PHONE, Method.BANK, Method.CARD, Method.VBANK))
9797
.setBootExtra(bootExtra)

0 commit comments

Comments
 (0)