Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-26 15:54:17 +05:00
parent 258e950178
commit e52bb2777f
3 changed files with 5 additions and 3 deletions

View file

@ -224,13 +224,13 @@ internal class DefaultOnboardingRepository @Inject constructor(
tangemPayStorage.storeHideOnboardingBanner(userWalletId, hide = true)
}
override suspend fun disableTangemPay(userWalletId: UserWalletId): Either<VisaApiError, Any> {
override suspend fun disableTangemPay(userWalletId: UserWalletId): Either<VisaApiError, Unit> {
return requestHelper.performRequest(userWalletId) { authHeader ->
tangemPayApi.setTangemPayEnabledStatus(
authHeader = authHeader,
body = SetTangemPayEnabledRequest(isTangemPayEnabled = false),
)
}.onRight {
}.map {
val address = requestHelper.getCustomerWalletAddress(userWalletId)
tangemPayStorage.clearAll(userWalletId = userWalletId, customerWalletAddress = address)
setHideMainOnboardingBanner(userWalletId)