Check digital card state
Overview
Before you digitize a card for NFC Payment, first check the card digitization state.
Flow
Use the D1 SDK in the issuer application to check the card digitization state. If the card is not digitized and the device is NFC-capable, display the Enable NFC Payment button. If the card is already digitized, or the issuer application does not meet the eligibility criteria, hide the Enable NFC Payment option.
The D1 SDK exposes the getCardDigitizationState() API to check the card digitization state.
The possible card digitization states are:
NOT_DIGITIZEDDisplay the
Enable NFC Paymentbutton if the device is NFC-capable.
DIGITIZATION_IN_PROGRESSThe card digitization process is already in progress. No action is required in the issuer application, and you cannot digitize another card at this time.
DIGITIZEDNo message is displayed. The card is already digitized.
The issuer application should check whether it is the default payment application in Android Tap & Pay settings.
Sequence diagram
SDK
Check digital card state
Last updated
Was this helpful?