Updated on 2026-08-14
This commit is contained in:
parent
a94f946a28
commit
7afc6735c1
4 changed files with 20 additions and 5 deletions
|
|
@ -528,8 +528,15 @@ internal class TangemPayCardPageModel @Inject constructor(
|
|||
}
|
||||
|
||||
fun onVaBankingDetailsResolved(onramp: VirtualAccountOnramp) {
|
||||
val loaded = currentStatus.value.ifLoadedOrNull { it } ?: return
|
||||
openVirtualAccountDeposit(onramp, loaded)
|
||||
when (onramp) {
|
||||
// Bank credentials just loaded on retry — show the requisites straight away ([REDACTED_TASK_KEY]),
|
||||
// instead of the intro deposit sheet that would need another "Show details" tap.
|
||||
is VirtualAccountOnramp.Available -> onShowVirtualAccountRequisites(onramp)
|
||||
else -> {
|
||||
val loaded = currentStatus.value.ifLoadedOrNull { it } ?: return
|
||||
openVirtualAccountDeposit(onramp, loaded)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun onContactSupportClicked() {
|
||||
|
|
|
|||
|
|
@ -348,8 +348,15 @@ internal class TangemPayDetailsModel @Inject constructor(
|
|||
}
|
||||
|
||||
fun onVaBankingDetailsResolved(onramp: VirtualAccountOnramp) {
|
||||
val loaded = currentStatus.value.ifLoadedOrNull { it } ?: return
|
||||
openVirtualAccountDeposit(onramp, loaded)
|
||||
when (onramp) {
|
||||
// Bank credentials just loaded on retry — show the requisites straight away ([REDACTED_TASK_KEY]),
|
||||
// instead of the intro deposit sheet that would need another "Show details" tap.
|
||||
is VirtualAccountOnramp.Available -> onShowVirtualAccountRequisites(onramp)
|
||||
else -> {
|
||||
val loaded = currentStatus.value.ifLoadedOrNull { it } ?: return
|
||||
openVirtualAccountDeposit(onramp, loaded)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun onVirtualAccountOrderCreated() {
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ private fun Content(state: TangemPayVaBankingDetailsErrorUM, modifier: Modifier
|
|||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(top = TangemTheme.dimens2.x2),
|
||||
text = resourceReference(R.string.alert_button_try_again),
|
||||
text = resourceReference(R.string.common_retry),
|
||||
variant = TangemButton.Variant.Primary,
|
||||
size = TangemButton.Size.X12,
|
||||
isLoading = state.isRetryLoading,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue