Skip to content

Commit edc760c

Browse files
committed
생체인식 결제 - 결제수단 등록 후 결제시 화면이 꺼지는버그 수정
1 parent 2c5123a commit edc760c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ public void onClick(
502502
}
503503

504504
private void requestBioActivity() {
505+
CurrentBioRequest.getInstance().listener = null;
505506
// bioDialog = BootpayBioDialog();
506507
if(close != null) CurrentBioRequest.getInstance().close = close;
507508
if(cancel != null) CurrentBioRequest.getInstance().cancel = cancel;
@@ -517,6 +518,7 @@ private void requestBioActivity() {
517518
CurrentBioRequest.getInstance().webActivity = null;
518519

519520
if(BiometricManager.from(context).canAuthenticate() == BIOMETRIC_SUCCESS) {
521+
CurrentBioRequest.getInstance().type = CurrentBioRequest.REQUEST_TYPE_NONE;
520522
Intent intent = new Intent(context, BootpayBioActivity.class);
521523
context.startActivity(intent);
522524
} else {
@@ -621,6 +623,8 @@ public void dismiss() {
621623
if(isBioIntent == true) {
622624
if(CurrentBioRequest.getInstance().bioActivity != null)
623625
CurrentBioRequest.getInstance().bioActivity.finish();
626+
if(CurrentBioRequest.getInstance().webActivity != null)
627+
CurrentBioRequest.getInstance().webActivity.finish();
624628
}
625629
// if(bioDialog != null) {
626630
// if(CurrentBioRequest.getInstance().type != CurrentBioRequest.REQUEST_TYPE_OTHER)

bootpay/src/main/java/kr/co/bootpay/api/ApiPresenter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ public void onSubscribe(Disposable d) {
291291

292292
@Override
293293
public void onNext(ResEasyPayUserToken res) {
294-
Log.d("res", res.toString());
295294

296295
if(parentScope.parent != null) {
297296
parentScope.easyPayUserToken = res;

bootpay/src/main/java/kr/co/bootpay/bio/activity/BootpayBioActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ void goRegisterBiometricRequest() {
444444
if(uuid == null || "".equals(uuid)) { Log.d("bootpay", "uuid 값이 없습니다"); return; }
445445
if(userToken == null || "".equals(userToken)) { Log.d("bootpay", "userToken 값이 없습니다"); return; }
446446

447-
showProgress("결제권한 추가중");
447+
showProgress("권한 추가중");
448448
presenter.postEasyBiometric(uuid, userToken, passwordToken);
449449
}
450450

@@ -676,6 +676,7 @@ public void startBioPay(BioDeviceUse user, BioWallet bioWallet) {
676676
} else {
677677
//지문인식 후 api를 넘김
678678
this.bioWallet = bioWallet;
679+
CurrentBioRequest.getInstance().type = CurrentBioRequest.REQUEST_TYPE_NONE;
679680
goBiometricAuth();
680681
}
681682
}
@@ -710,6 +711,9 @@ public void onClick(DialogInterface dialogInterface, int i) {
710711
public void onActivityResult(int requestCode, int resultCode, Intent data) {
711712
super.onActivityResult(requestCode, resultCode, data);
712713

714+
CurrentBioRequest.getInstance().listener = null;
715+
CurrentBioRequest.getInstance().webActivity = null;
716+
713717
if(requestCode == 9999 && resultCode > 0) {
714718
//wallet 재갱신
715719
if(CurrentBioRequest.getInstance().type == CurrentBioRequest.REQUEST_TYPE_VERIFY_PASSWORD) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public void callbackRestToken(RestTokenData acessToken) {
8585
// String user_id = String.valueOf(System.currentTimeMillis()); //고유 user_id로 고객별로 유니크해야하며, 다른 고객과 절대로 중복되어서는 안됩니다
8686
String user_id = UserInfo.getInstance(this).getBootpayUuid(); // 실제값을 적용하실 때에는, 관리하시는 user_id를 입력해주세요.
8787

88+
8889
BootUser user = new BootUser();
8990
user.setID(user_id);
9091
user.setArea("서울");

0 commit comments

Comments
 (0)