PaymentKeyInfo

public struct PaymentKeyInfo : Sendable

DigitalCard.Status contains information about the current status of the card.

  • Retrieves the remaining number of credentials left to perform payment transactions for this card if monobadged, or the primary card if co-badged.

    Declaration

    Swift

    public let numberOfPaymentsLeft: UInt

    Return Value

    UInt: Numbers of primary payment credentials remaining.

  • Retrieves the remaining number of credentials left to perform payment transactions for the auxiliary card if co-badged. This returns nil if the card is monobadged.

    Declaration

    Swift

    public let auxiliaryNumberOfPaymentsLeft: UInt?

    Return Value

    UInt: Numbers of auxiliary payment credentials remaining or nil if the card is monobadged.

  • Determines if the card needs to be replenished based on the number of credentials left, and configured threshold on the backend.

    Declaration

    Swift

    public let needsReplenishment: Bool

    Return Value

    Bool: True if replenishment is required.

  • Retrieves the limitedUseKey expiry date of the card.

    Declaration

    Swift

    public let expiryDate: String?

    Return Value

    String: the key validity period of the limitedUseKey key of the digitalized card. nil: if it is a singleUseKey or error

  • Retrieves the key type of the payment card.

    Declaration

    Swift

    public let keyType: KeyType