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

Get the card digitization state

Get the card digitization state

Use this guide to determine whether a card is already digitized in a specific wallet on the device. The issuer application uses this state to decide whether to show Add to wallet or Activate card, or to hide both.

You typically call this API when:

  • the issuer application starts, or

  • the end user opens a card details screen.

For the overall push provisioning flow, see Implement push to digital wallets.

Overview

The issuer application uses the D1 SDK to check the card Tokenization status in the mobile device. Based on the returned state, the issuer application updates the UI:

  • DIGITIZED – The card is already tokenized in the wallet on this device. Hide Add to wallet and Activate card.

  • NOT_DIGITIZED – The card is not tokenized. Show Add to wallet.

  • PENDING_IDV – The digital card is created but pending ID&V. Show Activate card if in-app authentication is supported.

Flow

Sequence diagram

Pre-requisites

  • Consumer account and card were registered in D1

  • SDK is properly initialized

  • Issuer App called D1 SDK login API

High-level sequence for getting the card digitization state
High-level sequence to retrieve the card digitization state from the wallet.

Platform integration

For Android 2.4.0 and later, the D1 SDK exposes the D1PushWallet.getCardDigitizationState() API to check the card Tokenization state for a specific wallet (Google Pay or Samsung Pay).

The possible states are:

  • DIGITIZED The card has already been tokenized. No message or action is required.

  • NOT_DIGITIZED Show an Add to Google/Samsung Pay button. Refer to the Google Pay brand guidelines for more information. The next step is to push the card into the wallet as explained in Push to the digital wallet.

  • PENDING_IDV Show an Activate card button if issuer application authentication is supported. After successful authentication, call activateDigitalCard() to activate the digital card.

See the D1 SDK reference for the full API signature.

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

Last updated

Was this helpful?