For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integration with an android-based device

Configure your payment network TSP

The TSP configuration depends on the TSP itself. Please check wiht the TSP.

For example, Google Pay provides a guidance about how to configure those parameters, please refer to Google Pay's TSP Settings.

In general, provide these parameters to your payment network TSP.

  • Package name (applicationId). Identifies the issuer application that Google Pay calls. If the app is not installed, the End User is prompted to install it from Google Play.

  • Action (fully qualified). Used by Google Pay to create an explicit Android Intent. Keep it specific to token activation.

The so called "extra text", a Base64-encoded data passed in EXTRA_TEXT, it is a JSON object created by the TSP and treated as a opaque object by the digital wallet, passed as it is through the through the issuer application interface.

Implement the issuer application handler

When an End User selects app-to-app ID&V, your issuer application must:

Receive the Intent

The issuer application is called using the package name, action, and EXTRA_TEXT provided through the payment network TSP.

Authenticate the End User

Perform your standard authentication inside the issuer application.

Activate the digital card

Decode EXTRA_TEXT to identify and activate the digital card.

Return to the Digital Wallet

Call activity.setResult(RESULT_OK, ...) to return the result to the Digital Wallet.

Receiving the Intent

To receive the Intent from the Digital Wallet, update the Android manifest file and create an activity context to activate the token.

Example manifest entry:

Validate requests from the Digital Wallet

After receiving the Intent, the issuer application can use the Activity.getCallingPackage() API to validate that the request is coming from the Digital Wallet.

For example, in case of Google Pay, the bellow sample code can be used:

This it implies, however, that the issuer application knows in advance which digital wallet can trigger it.

Last updated

Was this helpful?