Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Check device is eligible

Overview

Before using NFC Payment service check device is eligbile for contacless payment.

SDK

fun checkDeviceEligibleForNfc(context: Context) {
    val pm = context.packageManager
    if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
        // Device is eligible
    } else {
        // Device is not eligible
    }
}

Last updated

Was this helpful?