Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.

ID&V en la app de Apple Pay

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 identifier to a unique identifier. Use the app bundle ID.

  • Set URL Schemes to your custom scheme.

  • Set Role to Editor.

Xcode Info tab showing URL Types configuration for a custom URL scheme.
Configure a custom URL scheme in Xcode.

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.

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.

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.

Última actualización

¿Te fue útil?