简体   繁体   中英

How to detect POS transaction in Android Wallet Application?

I am developing Android Wallet application using SEEK API and NFC. I have the Visa applet installed in the Sim card. My question is, How to detect if a successful/unsuccessful contact is made to the POS terminal? Is there any Intent Action available in Android that I can put in some activity or some receiver?

Thanks.

Actually I Found the way of detecting POS terminal transaction. The NFC API, TRANSACTION_DETECTED is hidden. When transaction is there, TagDetectedActivity will launch.

<activity android:name=".TagDetectedActivity" android:launchMode="singleTask"> <intent-filter> <action android:name="android.nfc.action.TRANSACTION_DETECTED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="nfc" android:host="secure" android:port="0" android:pathPrefix="/axxxxx" /> </intent-filter> <intent-filter> <action android:name="com.gsma.services.nfc.action.TRANSACTION_EVENT" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="nfc" android:host="secure" android:port="0" android:pathPattern="/.*/axxxxx.*" /> </intent-filter> </activity>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM