Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-29 16:50:04 +05:00
parent 8619b424f5
commit f955a8d40b
10 changed files with 26 additions and 62 deletions

View file

@ -3,19 +3,16 @@ package com.tangem.core.deeplink.global
import com.tangem.core.deeplink.DeepLink
class BuyCurrencyDeepLink(
val onReceive: (txId: String) -> Unit,
val onReceive: () -> Unit,
) : DeepLink() {
override val uri = BUY_REDIRECT_DEEPLINK
override fun onReceive(params: Map<String, String>) {
onReceive(
params["merchant_transaction_id"] ?: return,
)
onReceive()
}
companion object {
const val ONRAMP_REDIRECT_DEEPLINK = "https://tangem.com/success?action=dismissBrowser"
private const val BUY_REDIRECT_DEEPLINK = "tangem://redirect?action=dismissBrowser"
}
}