Updated on 2026-08-14
This commit is contained in:
parent
941baf081b
commit
bc5db9ba12
2 changed files with 14 additions and 13 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue