From 7afc6735c12a04498e628037613d0336249cf820 Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 16 Jul 2026 14:58:27 +0500 Subject: [PATCH] Updated on 2026-08-14 --- core/res/src/main/res/values/strings.xml | 1 + .../tangempay/model/TangemPayCardPageModel.kt | 11 +++++++++-- .../features/tangempay/model/TangemPayDetailsModel.kt | 11 +++++++++-- .../ui/TangemPayVaBankingDetailsErrorBottomSheet.kt | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/core/res/src/main/res/values/strings.xml b/core/res/src/main/res/values/strings.xml index 933fd42368..94ee32219c 100644 --- a/core/res/src/main/res/values/strings.xml +++ b/core/res/src/main/res/values/strings.xml @@ -438,6 +438,7 @@ Rename Required Reset + Retry Save Save changes Search diff --git a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayCardPageModel.kt b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayCardPageModel.kt index fbd27c82ec..b8c87b5103 100644 --- a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayCardPageModel.kt +++ b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayCardPageModel.kt @@ -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() { diff --git a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayDetailsModel.kt b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayDetailsModel.kt index 202898ca9a..77d48ac081 100644 --- a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayDetailsModel.kt +++ b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayDetailsModel.kt @@ -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() { diff --git a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/ui/TangemPayVaBankingDetailsErrorBottomSheet.kt b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/ui/TangemPayVaBankingDetailsErrorBottomSheet.kt index 50b720bdce..0d92ed8afa 100644 --- a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/ui/TangemPayVaBankingDetailsErrorBottomSheet.kt +++ b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/ui/TangemPayVaBankingDetailsErrorBottomSheet.kt @@ -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,