Interface D1PayDigitalCard


  • public interface D1PayDigitalCard
    The Digital Card full information.
    Since:
    2.0.0
    • Method Detail

      • getCardID

        @NonNull
        String getCardID()
        Get the unique D1 Pay digital card ID
        Returns:
        The card ID
      • getState

        @NonNull
        State getState()
        Get the D1 Pay digital card status
        Returns:
        The card status
      • getScheme

        @NonNull
        Scheme getScheme()
        Get the D1 Pay digital card scheme
        Returns:
        The card scheme
      • getLast4

        @Nullable
        String getLast4()
        Get the last 4 digits of the D1 Pay Digital Card
        Returns:
        The last 4 digits of the card (if any)
      • getExpiryDate

        @Nullable
        String getExpiryDate()
        Get expiry date of the D1 Pay digital card in MMYY format
        Returns:
        The expiry date of the card (if any)
      • getTncURL

        @Nullable
        String getTncURL()
        Get terms and conditions URL
        Returns:
        The URL if it is available for this card (if any)
      • isReplenishmentNeeded

        boolean isReplenishmentNeeded()
        Whether the digital card needs to be replenished based on the number of credentials left.

        Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback) to get the latest value.

        Returns:
        whether replenishment is needed.
      • isAuthenticationRequiredBeforeReplenishment

        boolean isAuthenticationRequiredBeforeReplenishment()
        Whether authentication is needed or not for replenishment.

        Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback) to get the latest value.

        Returns:
        whether authentication is required.
      • isODAReplenishmentNeeded

        boolean isODAReplenishmentNeeded()
        Whether replenishment is needed for Offline Data Authentication (ODA).

        Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback) to get the latest value.

        Returns:
        whether replenishment is needed.
      • getNumberOfPaymentsLeft

        int getNumberOfPaymentsLeft()
        Get the remaining number of credentials left to perform payment transactions for this digital card.

        Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback) to get the latest value.

        Returns:
        number of credentials left.