Handle Visa Multiple AIDs
Overview
Use the NFC Wallet SDK to handle Visa Multiple AIDs.
You can read the available AIDs. You can also update AID priority and lock status.
SDK Integration
Application identifiers (AIDs) are exposed through DigitalCard.aidInfoList: [AIDInfo].
To detect multiple AIDs, check DigitalCard.isMultiAID: Bool.
Retrieve AID information
DigitalCard.aidInfoList: [AIDInfo] returns an array of AIDInfo objects.
Each AIDInfo includes the AID and metadata:
AIDInfo.aid: The AID as aString.AIDInfo.label: The label as aString.AIDInfo.lockStatus: The AID status:.lockedor.unlocked(default).
Only Visa cards are supported.
When called on a non-Visa card:
DigitalCard.isMultiAIDalways returnsfalse.DigitalCard.aidInfoListandDigitalCard.setAIDInfoList(_:)throwclientError.
Update AID priority and lock status
Use the AIDInfo objects from aidInfoList when you build an updated list.
AIDInfo.lockStatus is mutable. You can also reorder the list to change AID priority.
The first element in the list has the highest priority.
To update AID configuration:
Use the
DigitalCard.aidInfoList: [AIDInfo]API to retrieve theAIDInfofrom the digital card.Create a new array and update order and/or
lockStatus.Apply the update using
DigitalCard.setAIDInfoList(_:).
When setting a new list, keep the same AIDInfo elements.
Do not add, remove, or change AIDs or labels. Otherwise, DigitalCard.Error.aidInfoListMismatch is thrown.
Example
This example reorders AIDs and locks one AID.
Last updated
Was this helpful?