startPayWithSelectedCard method

dynamic startPayWithSelectedCard()

Implementation

startPayWithSelectedCard() async {
  BootpayPrint("c.selectedCardIndex: ${c.selectedCardIndex}, wallets: ${c.resWallet.value.wallets.length}");
  widget.payload?.walletId = c.resWallet.value.wallets[c.selectedCardIndex].wallet_id;

  c.requestType.value = BioConstants.REQUEST_BIO_FOR_PAY;

  if(!await isAblePasswordToken()) {
    BootpayPrint(2);
    c.requestType.value = BioConstants.REQUEST_PASSWORD_TOKEN_FOR_BIO_FOR_PAY;
    showWebView();
    return;
  }

  if(await isAbleBioAuthDevice()) {
    BootpayPrint(33);
    goBioForPay();
    return;
  } else if(nowAbleBioAuthDevice()) {
    BootpayPrint(4);
    //기기활성화 먼저해야함
    goBioForEnableDevice();
    return;
  }
  BootpayPrint(5);
  requestPasswordForPay();
}