Apple Pay in-app ID&V
Use this guidance to support in-app ID&V when an End User provisions a card to Apple Pay.
You configure redirect parameters in your payment network TSP. Apple Pay uses them to open the issuer application.
Configure your payment network TSP
Configure these redirect parameters in your payment network TSP:
contactName: Issuer display name shown to the End User.
bank_app: Issuer application name used for in-app ID&V.
appLaunchURL: Custom URL scheme that opens the issuer application.
associatedStoreIdentifiers: App Store identifier(s). Used when the issuer application is not installed.
associatedApplicationIdentifiers: Application identifier(s). Typically the Apple Team ID and app bundle ID.
Implement the issuer application handler
Configure a custom URL scheme in Xcode
In Xcode, go to Project settings > Targets > your app.
Open the Info tab.
Set
identifierto a unique identifier. Use the app bundle ID.Set
URL Schemesto your custom scheme.Set
RoletoEditor.

Handle the deep link and validate the caller
When the digital wallet application redirects the End User to the issuer application, the issuer application must validate the request before starting ID&V.
Apple Pay appends query parameters that identify the pass. Use them with PKPassLibrary.pass(withPassTypeIdentifier:serialNumber:) to confirm the pass exists on the device.
Validate the deep link before you authenticate the End User or activate the digital card.
Treat missing or unexpected parameters as a failed ID&V attempt.
Example deep link:
myscheme://mypath?passTypeIdentifier=paymentpass.com.apple&serialNumber=123&action=verify
Swift example:
For more details on custom URL schemes, check the Apple documentation.
Identify the digital card
Use these parameters from the iOS PassKit API to identify the digital card to activate:
passTypeIdentifier
serialNumber
These parameters identify the Pass to activate.
The following sample code in Swift describes how to use this data to identify the Pass.
This sample code is provided as-is.
Use the latest Apple specifications.
The deviceAccountIdentifier maps to digitalCardId in D1 and to virtualCardId on TSH.
Use it to activate the digital card.
The primaryAccountNumberSuffix is the last four digits of the PAN that was tokenized.
Use it to retrieve and display the right card art to the End User during ID&V.
Last updated
Was this helpful?