Adding an NDEF message to a loyalty card in Android Pay (Save to Android Pay API)

I am analyzing whether the S2AP API can provide a valid replacement for an existing NFC identification process through a real NFC card. The idea is to get rid of physical cards and use virtual cards.

These cards received some encrypted payload, which they send in the NDEF entries, to the NFC reader, which is ultimately used to identify the user and provide access / deny.

I read a lot of information about the S2AP API, and they claim that with the so-called “loyalty cards” you can add custom cards and send information to the NFC terminal whenever they are used. From the Android Pay seller’s certificate: “When they make a purchase, they can easily share their loyalty information by showing a barcode on their device or automatically sending it through NFC on their terminal for sale.”

I know that loyalty cards are not intended for such user cards, but so far the user can select a card and this card sends NFC user information to the reader, it looks enough for my purposes.

However, information about this integration and information about the official Android document that I found a link to the Barcode parameter, which is obviously simpler. I do not find a way to add this NFC information (NDEF message that the card should exchange when it is used). Ive checked the supported fields in LoyaltyObjet and LoyaltyClass and did not find any related fields.

Does anyone have any experience in this regard?

Edit

In the end, I had to spend some more time in this project. After much effort (too many IMOs), I got access to the API without setting out the details of my goals in the Google team several times and waiting for 1-2 weeks for it. I get that Google wants to control who uses Android Pay and why, but some Dev key or sandbox to test their capabilities without having to run a real commercial project would be greatly appreciated. In any case, this is another topic.

Although I have not tested the API in depth, what I understood from all these conversations with the Google team is that this API is only for commercial loyalty programs and there seems to be no chance to use it in any other way, so this not fit my needs. In any case, with the little time I could spend on it, I did not find a way to load user NFC data.

+5
source share

Source: https://habr.com/ru/post/1272454/


All Articles