![IDTECH Vivopay Neo 2 Developer'S Manual Download Page 391](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786391.webp)
NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
391
9.2.
ApplePay VAS Functionality
NEO II firmware has built-in support for Apple Value Added Services Protocol (hereinafter
called Apple VAS). For detailed information on how Apple VAS works, consult
. The following discussion assumes that you are familiar with the basic concepts
behind ApplePay VAS.
9.2.1.
Overview
In order to process an ApplePay VAS transaction, the terminal’s merchant records must first
beset. This should be done using TLVs sent in the
Set Merchant Record (04-11) command
(discussed further below).
A Merchant ID (of the form "Pass.com.apple.wallet.vas.prodtest") is generally associated with
a hash value and (optionally) a URL. The hash is just a SHA-256 hash of the Merchant ID string
itself. For example, the Merchant ID “pass.com.apple.wallet.vas.prodtest,” in hex, is
represented as
70 61 73 73 2e 63 6f 6d 2e 61 70 70 6c 65 2e 77 61 6c
6c 65 74 2e 76 61 73 2e 70 72 6f 64 74 65 73 74
.
When a byte array containing those values is hashed, the resulting SHA-256 value is
3C C7
0E D8 9A 9D 43 54 BE 98 30 AB 58 D8 9C 6F E7 E6 2B AC A9 39 D2 A6
85 1D FC 60 2E A7 98 F7.
Limitations
Note that a NEO device can store at most 6 Merchant Records for Apple VAS. This means the
device can natively support up to 6 loyalty programs (per transaction) at a time.
Note to Developers
If you are sending commands via the “Send NEO Command” in the Universal Demo, or using
device_sendDataCommand() in the SDK, only the command, subcommand, and data fields
need to be sent. The header, data length, and CRC will be dynamically calculated and inserted
into the command string, automatically, by the SDK.
ACT Parameters for ApplePay VAS
The Activate Transaction (ACT) parameters required for the ApplePay VAS functionality are
communicated via the ApplePay VAS Container TLV (tag FFEE06). The FFEE06 TLV must
be provided in the ACT command (02-01 or 02-40) if an ApplePay VAS transaction is
desired.
TLV
Name
Presence
Description
9F26
ApplePay Terminal Capabilities
Information (see table below for
more information)
Required
Determines how the reader handles the VAS
and/or Payment flow.
This data comprises 4 Bytes.