add warning when paying via card
This commit is contained in:
@@ -510,6 +510,11 @@ class BmlTransferHandler(
|
||||
val fromTypeLabel = sh.sar.basedbank.util.AccountListParser.from(src)?.typeLabel
|
||||
?: sh.sar.basedbank.util.bmlapi.BmlDashboardParser.productLabel(src.accountTypeName)
|
||||
val fromDetail = listOfNotNull("BML", fromTypeLabel.ifBlank { null }).joinToString(" · ")
|
||||
val warnings = listOf(
|
||||
"⚠ ${page.merchantName} does not support BML Pay. This transaction will be paid via card. " +
|
||||
"Card payments can be less reliable, and this can take up to a minute to complete. " +
|
||||
"Please keep the app open and don't retry if it seems slow."
|
||||
)
|
||||
val confirmView = fragment.buildTransferConfirmView(
|
||||
amountCurrency = page.currency,
|
||||
amountValue = "%.2f".format(page.amount),
|
||||
@@ -518,7 +523,8 @@ class BmlTransferHandler(
|
||||
fromDetail = fromDetail,
|
||||
toName = page.merchantName,
|
||||
toNumber = "",
|
||||
toDetail = page.merchantAddress.ifBlank { "BML Merchant" }
|
||||
toDetail = page.merchantAddress.ifBlank { "BML Merchant" },
|
||||
warningTexts = warnings
|
||||
)
|
||||
fragment.showConfirmWithBiometric(
|
||||
title = ctx.getString(R.string.transfer),
|
||||
|
||||
Reference in New Issue
Block a user