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

In app authentication

When tokenizing a card in a digital wallet, manually or from the issuer application, it is possible that a step up end user authentication is required.

Among the different ID&V options offered by the issuer to the end user, the in-app authentication scenario relies on the issuer application to verify the end user identity.

It is possible to use D1 SDK to activate the digital card after a successful authentication.

The issuer app must, first, integrate properly with the wallet provider and recognize, from the Wallet call, the card for which the authentication is required.

This is described in details for each platform in the Integrate in-app ID&V for xPay Wallets section.

In-App Authentication Flow

Pre-requisites

  • End user, account and card were registered in D1

  • SDK is properly initialized

1

Identify the card

Identify the card for which the authentication is required (described in Integrate in-app ID&V for xPay Wallets).

2

Authenticate the end user

Authenticate the end user and generate an accessToken as defined in the login flow to D1 SDK to authorise the card activation.

3

Activate the card with D1 SDK

Call the D1 SDK API activateDigitalCard with digitalCardID (Android/iOS) to activate the card.

Since D1 SDK V3.2.0, D1 SDK provides new API to activate the digital card. Platform-specific examples:

The deviceAccountIdentifier corresponds to the digitalCardId in D1 and this ID can be used to activate the digital card.

primaryAccountNumberSuffix is the last four digits of the PAN that has been tokenized. This can be used to recover the card art and display it to the end user for the authentication request.

Apple Pay

Since D1 SDK V3.2.0, D1 SDK has provided a digitalCardPass API for the integrator to obtain the digital card passes based on the respective serial numbers.

Google & Samsung Pay

To complete the activation, the issuer app must start an activity context to complete the token activation using the activation parameters passed in the Intent.

Google Pay Wallet State Update

It is recommended that the issuer application registers for Google Pay wallet state changes so that it can update the latest status of the wallet/card on the UI.

These changes include:

  • When the active wallet changes (by changing the active account).

  • When the selected card of the active wallet changes.

  • When tokenized cards are added or removed from the active wallet.

  • When the status of a token in the active wallet changes.

Only foreground applications will be notified of the data change events. Therefore, each application should update the token statuses not only by receiving updates from the callback but also when the application launches or returns to the foreground.

For a full access to the D1 SDK, please check API reference.

Last updated

Was this helpful?