Updated on 2026-08-14
This commit is contained in:
parent
8619b424f5
commit
f955a8d40b
10 changed files with 26 additions and 62 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue