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.

View and control digital cards

Use this guide to let the End User view and manage digital cards (tokens) created for their cards in xPay Wallets and other token requestors.

In the issuer application, you typically:

  • display all digital cards linked to a specific cardId

  • show each digital card status (for example, active or suspended)

  • support basic life cycle actions such as suspend, resume, delete, and activate

Prerequisites

Make sure that:

  • The End User and card are registered in the D1 backend.

  • The D1 SDK is integrated into your issuer application and initialized.

  • The issuer application has completed the D1 SDK login flow.

For the end-to-end wallet Tokenization flow, see Implement push to digital wallets.

View digital cards

To display existing digital cards for a specific cardId, call getDigitalCardList().

The response contains a list of DigitalCard objects. For Visa Cloud Token Framework (CTF), the DigitalCard object also includes device binding information, which allows the application to view all device bindings associated with each digital card.

The DigitalCard contains the following information:

  • Digital card state (for example, active, suspended, or pending activation).

  • Digital card expiry date.

  • Last four digits of the digital card.

  • Device name and type that contain the digital card.

  • Token requestor ID (tokenRequestorID).

  • Whether the digital card is on the current device (isOnCurrentDevice) for the selected wallet or token requestor (for example, Apple Pay, Google Pay, Samsung Pay, or NFC Wallet).

  • Device binding list (since SDK 4.3.0 for Visa CTF). Contains the binding reference, device name, and binding status (APPROVED, DECLINED, or CHALLENGED) for each bound device.

Due to payment network limitations, you cannot always retrieve the token requestor name and logo in real time.

As a best practice, identify the top 5–10 token requestor IDs relevant to your portfolio and hard-code an End User–facing display name and logo in the issuer application.

Flow

Flow for retrieving the digital card list
High-level flow for listing digital cards for a card.

Sequence diagram

Pre-requisites

  • Consumer account and card were registered in D1

  • SDK is properly initialized

  • Issuer App called D1 SDK login API

Example issuer application screen showing a list of digital cards
Example issuer application UI for listing digital cards.

Examples

Control digital cards

The issuer application can allow the End User to manage each digital card state.

Supported actions include:

  • Suspend a digital card when the current state is active: d1Task.updateDigitalCard(cardID, digitalCard, CardAction.SUSPEND, callback)

  • Resume a digital card when the current state is suspended: d1Task.updateDigitalCard(cardID, digitalCard, CardAction.RESUME, callback)

  • Delete a digital card: d1Task.updateDigitalCard(cardID, digitalCard, CardAction.DELETE, callback)

  • Activate a digital card (for example, after step-up authentication): d1PushWallet.activateDigitalCard(digitalCard.getCardID(), callback)

Sequence diagram

Pre-requisites

  • Consumer account and card were registered in D1

  • SDK is properly initialized

  • Issuer App called D1 SDK login API

Example issuer application screen for controlling digital cards
Example issuer application UI for controlling a digital card state.

Examples

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

Last updated

Was this helpful?