Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-16 14:58:27 +05:00
parent a94f946a28
commit 7afc6735c1
4 changed files with 20 additions and 5 deletions

View file

@ -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() {

View file

@ -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() {

View file

@ -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,