Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-11 10:12:21 +03:00
parent 941baf081b
commit bc5db9ba12
2 changed files with 14 additions and 13 deletions

View file

@ -295,9 +295,10 @@ internal class DefaultOnrampRepository(
},
)
val mercuryoProvider = onrampPairs.map { it.providers }.flatten()
.find { it.providerId == MERCURYO_PROVIDER_ID }
val hasSepaMethod = mercuryoProvider?.paymentMethods?.any { it == SEPA_METHOD_ID } ?: false
val hasSepaMethod = onrampPairs
.flatMap { it.providers }
.flatMap { it.paymentMethods }
.any { it == SEPA_METHOD_ID }
hasSepaMethod
}
@ -598,6 +599,5 @@ internal class DefaultOnrampRepository(
const val REDIRECT_URL = "https://tangem.com/onramp"
const val SEPA_METHOD_ID = "sepa"
const val MERCURYO_PROVIDER_ID = "mercuryo"
}
}