CardService

interface CardService

Interface for card operations.

Functions

Link copied to clipboard
abstract suspend fun activate(cardId: String, request: CardActivationRequest): Card

Activates a prepaid PHYSICAL card by cardId (UUID).

Link copied to clipboard
open fun activateAsync(cardId: String, request: CardActivationRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<Card>)

Asynchronously Activates a prepaid PHYSICAL card by cardId (UUID).

Link copied to clipboard
abstract fun authenticateScaEvent(fragment: Fragment, scaDetails: ScaAuthenticationEventRequest)
Link copied to clipboard
abstract suspend fun create(request: CardRequest): Card

Create a new Physical or Virtual prepaid card for a customer, based on the provided programName.

Link copied to clipboard
open fun createAsync(request: CardRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<Card>)

Asynchronously Creates a new Physical or Virtual prepaid card for a customer, based on the provided programName.

Link copied to clipboard
abstract suspend fun get(cardId: String, include: List<CardIncludesParam>? = null): Card

This endpoint provides detailed information about specific Card by cardId.

Link copied to clipboard
abstract suspend fun getAll(parameters: CardParameters? = null): CardList

Retrieve a list of all prepaid cards for the current customer. The result list can be filtered by card status and card type.

Link copied to clipboard
open fun getAllAsync(parameters: CardParameters?, cancellationSignal: CancellationSignal?, callback: WalletCallback<CardList>)

Asynchronously retrieves list of all customer cards based on the provided parameters.

Link copied to clipboard
open fun getAsync(cardId: String, include: List<CardIncludesParam>?, cancellationSignal: CancellationSignal?, callback: WalletCallback<Card>)

Asynchronously provides detailed information about specific Card by cardId.

Link copied to clipboard
abstract suspend fun getPrograms(): ProgramList

Retrieve eligible programs for a customer.

Link copied to clipboard
open fun getProgramsAsync(cancellationSignal: CancellationSignal?, callback: WalletCallback<ProgramList>)

Asynchronously Retrieve eligible programs for a customer.

Link copied to clipboard

Create a new instance of a fragment for viewing card details. Attach the fragment to an activity using the FragmentManager. The sensitive card details will be loaded automatically upon fragment creation.
Merchants that are not PCI DSS Level 1 certified should use this method to display card sensitive information.

Link copied to clipboard

Obtain custom Android Views displaying card sensitive details.

Link copied to clipboard

Obtain custom Android Views displaying card sensitive details.

Link copied to clipboard
abstract suspend fun getSecurePinView(request: CardSecureViewRequest): View

Obtain a custom Android View displaying a card PIN code.

Link copied to clipboard
open fun getSecurePinViewAsync(request: CardSecureViewRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<View>)

Obtain a custom Android View displaying a card PIN code.

Link copied to clipboard
Link copied to clipboard

Resets the verification attempt counters for both PIN/CVV on a prepaid card. It clears failed attempts, restoring the card's ability to authorize transactions.

Link copied to clipboard

Asynchronously Resets the verification attempt counters for both PIN/CVV on a prepaid card. It clears failed attempts, restoring the card's ability to authorize transactions.

Link copied to clipboard
abstract suspend fun tokenize(cardId: String, cardTokenizationRequest: CardTokenizationRequest): CardTokenization

Tokenize given card for specific mobile wallet.

Link copied to clipboard
open fun tokenizeAsync(cardId: String, cardTokenizationRequest: CardTokenizationRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<CardTokenization>)

Asynchronously tokenizes given card for specific mobile wallet.

Link copied to clipboard
abstract suspend fun update(cardId: String, request: CardUpdateRequest): Card

The endpoint enables updating a card’s state like status and PIN.

Link copied to clipboard
open fun updateAsync(cardId: String, request: CardUpdateRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<Card>)

Asynchronously Updates a card’s state like status and PIN.

Link copied to clipboard
abstract suspend fun updateTokenizationStatus(cardId: String, mobileWalletTokenization: MobileWalletTokenization): MobileWalletTokenization

Updates card tokenization status by which tokenization can be marked as COMPLETED. Tokenization marked as COMPLETED means that the given card will be not able to be tokenized for the specific device and profile (in case of Google Pay).

Link copied to clipboard
open fun updateTokenizationStatusAsync(cardId: String, mobileWalletTokenization: MobileWalletTokenization, cancellationSignal: CancellationSignal?, callback: WalletCallback<MobileWalletTokenization>)

Asynchronously updates card tokenization status by which tokenization can be marked as COMPLETED. Tokenization marked as COMPLETED means that the given card will be not able to be tokenized for the specific device and profile (in case of Google Pay).