Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Google & Samsung Pay

ID&V flow for Google Pay

The following figure shows the Google Pay app-to-app ID&V flow, where Google Pay calls the issuer application ("Bank App").

Step 1: Choose app ID&V option

The end user is prompted to select the ID&V authentication method inside the Google Pay wallet. The end user selects "Sign in to the bank app".

Step 2: Log into issuer application

The end user uses their bank app credentials to log in.

Step 3: Issuer application UI

The bank app shows the last four PAN digits of the card added to Google Pay. The end user selects Next to activate the card in Google Pay.

Step 4: Success screen

A success screen shows the activation status in Google Pay. This screen includes a button that returns the end user to Google Pay.

Scheme TSP configuration

For complete instructions from Google, refer to Google Pay's TSP Settings.

Issuers must provide the following parameters to their TSPs. Google Pay receives these parameters from the TSPs during Tokenization and uses them to call your issuer application.

PARAMETER
EXAMPLE
DESCRIPTION

Package Name

com.example.mybank

The package name (applicationId) identifies the issuer mobile app that Google Pay should call when invoking the intent to start the app to app flow. If the app is not installed on the cardholder’s mobile device, the end user will be prompted to install it from the Google Play Store.

Action

com.example.mybank.action.ACTIVATE_CARD

When calling the issuer mobile app, Google Pay app creates an explicit intent. The action must be provided in its fully qualified form, including the package name. Also, the action must be specific for use in token activation.

Extra text

This parameter is used to pass extra data that will be included in the intent. It is typically a JSON structure, Base64-encoded. The value of this string is opaque to Google and will be provided as-is in the standard field EXTRA_TEXT.

App development flow

When an end user selects the app-to-app method to verify their identity, the issuer application must:

  1. Receive the Intent from Google/Samsung Wallet.

  2. Authenticate the cardholder.

  3. Activate the token.

  4. Return the end user to Google Wallet by calling activity.setResult(RESULT_OK, ...).

Receiving the intent

When an end user chooses to verify their identity using the issuer application, Google/Samsung Wallet calls the issuer application using the package name, action, and EXTRA_TEXT provided to Google/Samsung Pay through the TSP. To receive the intent from Google Pay, the issuer must update its application manifest file and create an activity to activate the token.

Updating the Android manifest file

Issuers must update the Android manifest file in their issuer applications to handle the action so that Google Wallet can call it during the app-to-app flow.

To update the manifest file to register the action and activity to handle app redirection:

Token activation activity

To complete activation, the issuer application must start an activity that performs token activation using the activation parameters passed in the Intent.

Card and Token identification

When Google Pay triggers the issuer application, it provides a Base64-encoded string called EXTRA_TEXT in Google's TSP Settings.

The issuer application must decode the Base64 string to retrieve the token details required for activation. The format depends on the scheme used.

The following example shows the JSON object encapsulated in the EXTRA_TEXT for Visa and Mastercard:

exclamation-circle

Caution

These JSON samples are provided as is. You are responsible for using the latest scheme specifications. Thales is not responsible for any changes the schemes may introduce to the following JSON objects.

An example of Visa scheme:

An example of Mastercard scheme:

Note

The tokenReferenceID and tokenUniqueReference correspond to the token ID in TSP. You can use these IDs to activate the token. panLast4 and accountPanSuffix are the last four digits of the PAN that was tokenized. You can use these values to retrieve the card art and display it to the end user during the authentication request.

Last updated

Was this helpful?