我想为ApplePay创建启用NFC的通行证。我的问题是,我不知道如何获得使用通行证的商人以及如何配置允许的合并人。
这个想法是: -用户获得我们的会员卡 -用户进入商店并使用ApplePay付款 -我得到的信息是用户支付来管理忠诚度积分
但是我无法在文档中找到一种方法来定义允许的商店,或者如何获得有关在商店购买商品的反馈。
我认为这是文档的重要组成部分:
The NFC-enabled pass will not function without a terminal compatible with the Apple value added services protocol. Each NFC-enabled pass contains a 64-byte data element which can identify a customer. This data element can represent a rewards card for a loyalty program, a stored value card, or a ticket. Apple Wallet only transmits this data element to an NFC-enabled terminal that is compatible with the Apple value added services protocol.
NFC-Enabled Pass Keys
NFC-enabled pass keys support sending reward card information as part of an Apple Pay transaction.
Important: NFC-enabled pass keys are only supported in passes that contain an Enhanced Passbook/NFC certificate. For more information, contact merchant support at https://developer.apple.com/contact/passkit/.
Passes can send reward card information to a terminal as part of an Apple Pay transaction. This feature requires a payment terminal that supports NFC-entitled passes. Specifically, the terminal must implement the Value Added Services Protocol.
Passes provide the required information using the nfc key. The value of this key is a dictionary containing the keys described in NFC Dictionary Keys. This functionality allows passes to act as the user’s credentials in the context of the NFC Value Added Service Protocol. It is available only for storeCard style passes.
Key name Type Description
nfc nfc dictionary Optional. Information used for Value Added
Service Protocol transactions. For
this dictionary’s keys, see
NFC Dictionary Keys.
Available in iOS 9.0.
NFC Dictionary Keys
Information about the NFC payload passed to an Apple Pay terminal.
Key name Type Description
message string Required. The payload to be transmitted to the Apple
Pay terminal. Must be 64 bytes or less. Messages
longer than 64 bytes are truncated by the system.
encryptionPublicKey string Optional. The public encryption key used by the
Value Added Services protocol. Use a Base64
encoded X.509 SubjectPublicKeyInfo structure
containing a ECDH public key for group P256.
但是,正如我所看到的,只有一种可能性可以传达信息,而不能定义商家或回调。
我怎么知道在哪里使用卡?如何定义允许哪些商人?
谢谢
答案 0 :(得分:1)
除了从终端提供商本身之外,无法确定何时使用ApplePay卡。您将需要在用户钱包中拥有启用NFC的会员通行证,并使用具有VAS功能的NFC读取器读取相关的用户数据,然后在终端中使用应用程序逻辑来确定使用该通行证的地方。
在PassNinja,我们提供了读取器和一个SDK,可以读取GPay和Apple Pay会员通行证。