Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-05 19:40:05 +05:00
parent 922b197172
commit 9df23bfa67
4 changed files with 36 additions and 1 deletions

View file

@ -25,6 +25,7 @@ import com.tangem.domain.pay.TangemPayEligibilityManager
import com.tangem.domain.pay.repository.OnboardingRepository
import com.tangem.domain.pay.usecase.ProduceTangemPayInitialDataUseCase
import com.tangem.domain.pay.usecase.TangemPayMainScreenCustomerInfoUseCase
import com.tangem.domain.tangempay.TangemPayAnalyticsEvents
import com.tangem.feature.wallet.presentation.wallet.state.WalletStateController
import com.tangem.feature.wallet.presentation.wallet.state.model.WalletDialogConfig
import com.tangem.feature.wallet.presentation.wallet.state.transformers.TangemPayHideOnboardingStateTransformer
@ -261,6 +262,7 @@ internal class TangemPayClickIntentsImplementor @Inject constructor(
}
private fun disableTangemPay(userWalletId: UserWalletId) {
analyticsEventHandler.send(TangemPayAnalyticsEvents.KycCancelled())
modelScope.launch {
tangemPayOnboardingRepository.disableTangemPay(userWalletId)
.onRight { tangemPayMainScreenCustomerInfoUseCase.fetch(userWalletId) }