[英]Is it possible to launch the Apple Pay NFC from my app?
I would like to capture the NFC payment details in an app and was hoping this would be available if the NFC payment was launched from my app. 我想在应用程序中捕获NFC付款详细信息,并希望如果从我的应用程序启动NFC付款将可用。 I just need to know the amount paid, and merchant.
我只需要知道支付的金额和商人。
Going through Apple's docs, all I can see is software implementations of the Apple Pay with Touch ID, I can't see any references to integrate the Apple Pay NFC. 通过Apple的文档,我只能看到带Touch ID的Apple Pay的软件实现,看不到任何集成Apple Pay NFC的参考。
This is not possible as Apple's implementation is meant to conceal this data. 这是不可能的,因为Apple的实现意在隐藏此数据。 That's the reason you can't find anything in their docs about it.
这就是您在他们的文档中找不到任何相关内容的原因。 Apple Pay via NFC is initiated by the contactless payment terminal and not "launched from [your] app".
通过NFC的Apple Pay由非接触式支付终端启动,而不是“从[您的]应用程序中启动”。 The data like the tokenized Primary Account Number (PAN), Cardholder Name, Expiration date, etc is sent from the Apple device to the payment terminal and up to the cloud via the merchant's infrastructure.
像令牌化的主帐号(PAN),持卡人姓名,有效期等数据会从Apple设备发送到付款终端,再通过商户的基础设施发送到云端。 Check page 19 of the EMV Overview Guide to get an idea.
请查看《 EMV概述指南》第19页以了解想法。 The Apple device unlocks the data from the Secure Element (after TouchID access granted) and shuttles it over NFC and most likely won't ever expose these details to the App layer.
Apple设备从Secure Element解锁数据(在授予TouchID访问权限之后),并通过NFC传输数据,并且极有可能不会将这些详细信息公开给App层。 The approach runs inline with their statement "Keep your purchases private."
这种方法与他们的声明“保持私下购买”一致。 If the transaction is approved the payment terminal will send a Transaction Certificate (TC) over the NFC link to alert the Apple device the payment was successful.
如果交易被批准,则付款终端将通过NFC链接发送交易证书(TC),以警告Apple设备付款成功。 No amount paid or merchant name is sent over with the TC according to the spec.
根据规范,TC不会发送任何付款金额或商家名称。 It might also be worth reading this post to better understand how the Apple devices only act as contactless cards and not readers.
可能还值得阅读这篇文章,以更好地了解Apple设备如何仅充当非接触式卡而不是读者。
The best way to get involved with the customer transaction is offering an InApp payment experience at the store. 参与客户交易的最佳方法是在商店中提供InApp付款体验。 Whether it be through iBeacons or geolocation, launching the retail app in context can allow customers to purchase through Apple Pay InApp rather than NFC.
无论是通过iBeacons还是地理位置,在上下文中启动零售应用程序都可以使客户通过Apple Pay InApp而非NFC进行购买。 This provides you more opportunity to get the merchant and transaction amount since your app is in control vs the NFC stack.
由于您的应用程序相对于NFC堆栈处于控制状态,因此这为您提供了更多获取商户和交易金额的机会。 It's tricky to cover the checkout workflow but doable.
覆盖结帐工作流程很棘手,但是可行。
I hope this info is useful and guides you to some other options to get what you need done. 我希望此信息对您有所帮助,并指导您完成其他一些选择,以完成所需的工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.