Skip to content

Commit a8dee32

Browse files
committed
가상계좌 결제완료UI 버그 수정
1 parent 294a5df commit a8dee32

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

bootpay/src/main/java/kr/co/bootpay/model/BootExtra.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package kr.co.bootpay.model;
22

33
import android.content.Context;
4+
import android.util.Log;
45

56
import com.google.gson.Gson;
67

@@ -16,7 +17,7 @@ public final class BootExtra {
1617
private String start_at; //정기 결제 시작일 - 지정하지 않을 경우 - 그 날 당일로부터 결제가 가능한 Billing key 지급, "2016-10-14"
1718
private String end_at; // 정기결제 만료일 - 기간 없음 - 무제한, "2016-10-14"
1819
private Integer expire_month; //정기결제가 적용되는 개월 수 (정기결제 사용시), 미지정일시 PG사 기본값에 따름
19-
private boolean vbank_result; //가상계좌 결과창을 볼지(1), 말지(0)
20+
private boolean vbank_result = true; //가상계좌 결과창을 볼지(1), 말지(0)
2021
private int[] quotas; //결제금액이 5만원 이상시 할부개월 허용범위를 설정할 수 있음, [0(일시불), 2개월, 3개월] 허용, 미설정시 12개월까지 허용
2122

2223
private String app_scheme; //app2app 결제시 return 받을 intent scheme
@@ -139,7 +140,7 @@ private String expireMonth() {
139140
}
140141

141142
private String vbankResult() {
142-
return String.format(Locale.KOREA, "vbank_result: '%b'", this.vbank_result);
143+
return String.format(Locale.KOREA, "vbank_result: %b", this.vbank_result);
143144
}
144145

145146

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public class NativeActivity extends Activity implements BootpayRestImplement {
3535
private int stuck = 1;
3636
private String application_id = "5b8f6a4d396fa665fdc2b5e8";
3737

38-
39-
40-
4138
@Override
4239
protected void onCreate(Bundle savedInstanceState) {
4340
super.onCreate(savedInstanceState);
@@ -90,20 +87,17 @@ void goPGPay() {
9087
Bootpay.init(getFragmentManager())
9188
.setContext(this)
9289
.setApplicationId(application_id) // 해당 프로젝트(안드로이드)의 application id 값
93-
.setPG(PG.DANAL) // 결제할 PG 사
94-
.setMethod(Method.CARD)
90+
.setPG(PG.NICEPAY) // 결제할 PG 사
91+
.setMethod(Method.VBANK)
9592
// .setEasyPayUserToken("wef")
9693
// .setMethodList(Arrays.asList(Method.EASY_CARD, Method.PHONE, Method.BANK, Method.CARD, Method.VBANK))
9794
.setBootExtra(bootExtra)
9895
.setBootUser(bootUser)
99-
100-
101-
// .setMo
10296
.setOrderId("1234")
10397
// .setUserPhone("010-1234-5678") // 구매자 전화번호
10498
.setUX(UX.PG_DIALOG)
10599
//.isShowAgree(true)
106-
.setName("bootpay kb card test") // 결제할 상품명
100+
.setName("bootpay npay test") // 결제할 상품명
107101
.setOrderId("1232352354") // 결제 고유번호
108102
.setPrice(1000) // 결제할 금액
109103
// .setAccountExpireAt("2019-07-16")

0 commit comments

Comments
 (0)