Updated on 2026-08-14
This commit is contained in:
parent
f472f69f37
commit
26ca147cf1
6 changed files with 68 additions and 25 deletions
|
|
@ -0,0 +1,13 @@
|
|||
package com.tangem.tap.common.extensions
|
||||
|
||||
import com.tangem.domain.common.SaltPayWorkaround
|
||||
import com.tangem.operations.backup.BackupService
|
||||
|
||||
/**
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
fun BackupService.primaryCardIsSaltPay(): Boolean {
|
||||
return primaryCardId?.slice(0..3)?.let {
|
||||
SaltPayWorkaround.isVisaBatchId(it)
|
||||
} ?: false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue