简体   繁体   English

如何在Android Wallet应用程序中检测POS交易?

[英]How to detect POS transaction in Android Wallet Application?

I am developing Android Wallet application using SEEK API and NFC. 我正在使用SEEK API和NFC开发Android Wallet应用程序。 I have the Visa applet installed in the Sim card. 我在Sim卡中安装了Visa小程序。 My question is, How to detect if a successful/unsuccessful contact is made to the POS terminal? 我的问题是,如何检测到POS终端的联系成功/失败? Is there any Intent Action available in Android that I can put in some activity or some receiver? Android中是否可以进行某些活动或接收者的任何Intent Action?

Thanks. 谢谢。

Actually I Found the way of detecting POS terminal transaction. 实际上,我找到了检测POS终端交易的方法。 The NFC API, TRANSACTION_DETECTED is hidden. NFC API TRANSACTION_DETECTED已隐藏。 When transaction is there, TagDetectedActivity will launch. 当存在事务时,TagDetectedActivity将启动。

<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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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