Skip to content

Commit 253a4b2

Browse files
committed
extra 누락시 예외 처리
1 parent e0dfc3f commit 253a4b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ public void onPageFinished(WebView view, String url) {
156156
// useOneStoreApi();
157157
// if(extraJson())
158158

159-
if(request.getBoot_extra().getQuick_popup() == 1) {
159+
if(request.getBoot_extra() != null && request.getBoot_extra().getQuick_popup() == 1) {
160160
setQuickPopup();
161161
goBootpayRequest();
162-
163162
} else {
164163
goBootpayRequest();
165164
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public void onClick_request(View v) {
7373

7474
void goPGPay() {
7575
BootUser bootUser = new BootUser().setAddr("서울시 동작구 상도로 369").setEmail("[email protected]");
76-
BootExtra bootExtra = new BootExtra().setQuotas(new int[] {0,2,3}).setPopup(1);
76+
BootExtra bootExtra = new BootExtra().setQuotas(new int[] {0,2,3});
77+
7778
// bootExtra.setEscrow(1);
7879

7980
Bootpay.init(getFragmentManager())
@@ -82,7 +83,7 @@ void goPGPay() {
8283
.setPG(PG.DANAL) // 결제할 PG 사
8384
.setMethod(Method.CARD)
8485
// .setEasyPayUserToken("wef")
85-
.setMethodList(Arrays.asList(Method.EASY_CARD, Method.PHONE, Method.BANK, Method.CARD, Method.VBANK))
86+
// .setMethodList(Arrays.asList(Method.EASY_CARD, Method.PHONE, Method.BANK, Method.CARD, Method.VBANK))
8687
.setBootExtra(bootExtra)
8788
.setBootUser(bootUser)
8889

@@ -93,7 +94,7 @@ void goPGPay() {
9394
//.isShowAgree(true)
9495
.setName("bootpay kb card test") // 결제할 상품명
9596
.setOrderId("1232352354") // 결제 고유번호
96-
.setPrice(1000) // 결제할 금액
97+
// .setPrice(1000) // 결제할 금액
9798
// .setAccountExpireAt("2019-07-16")
9899
.addItem("마우스", 1, "ITEM_CODE_MOUSE", 500) // 주문정보에 담길 상품정보, 통계를 위해 사용
99100
.addItem("키보드", 1, "ITEM_CODE_KEYBOARD", 500, "패션", "여성상의", "블라우스") // 주문정보에 담길 상품정보, 통계를 위해 사용

0 commit comments

Comments
 (0)