PaymentInstrumentService

Interface for retrieving payment instruments.

Functions

Link copied to clipboard
abstract suspend fun add(paymentInstrument: CciBankAccount): PaymentInstrument

Adds a new Peruvian Bank account for the customer.

Link copied to clipboard
open fun addAsync(paymentInstrument: CciBankAccount, cancellationSignal: CancellationSignal?, callback: WalletCallback<PaymentInstrument>)

Asynchronously adds a new Peruvian Bank account for the customer.

Link copied to clipboard

Retrieves previously created instrument verification session.

Link copied to clipboard

Asynchronously retrieves previously created instrument verification session.

Link copied to clipboard
abstract suspend fun delete(parameters: PaymentInstrumentParameters): PaymentInstrument

Deletes a payment instrument for the customer.

Link copied to clipboard
open fun deleteAsync(parameters: PaymentInstrumentParameters, cancellationSignal: CancellationSignal?, callback: WalletCallback<PaymentInstrument>)

Asynchronously deletes a payment instrument for the customer.

Link copied to clipboard
abstract suspend fun get(parameters: PaymentInstrumentParameters): PaymentInstrument

Retrieve an instrument for the customer.

Link copied to clipboard
abstract suspend fun getAll(parameters: PaymentInstrumentsParameters? = null): List<PaymentInstrument>

Retrieve list of active instruments for the customer.

Link copied to clipboard
open fun getAllAsync(parameters: PaymentInstrumentsParameters?, cancellationSignal: CancellationSignal?, callback: WalletCallback<List<PaymentInstrument>>)

Asynchronously retrieves list of active instruments for the customer.

Link copied to clipboard

Retrieves a list of instrument verification sessions for the customer.

Link copied to clipboard

Asynchronously retrieves a list of instrument verification sessions for the customer.

Link copied to clipboard
open fun getAsync(parameters: PaymentInstrumentParameters, cancellationSignal: CancellationSignal?, callback: WalletCallback<PaymentInstrument>)

Asynchronously retrieves an instrument for the customer.

Link copied to clipboard
abstract suspend fun getCardVerificationInformation(instrumentId: String): CardVerificationInfo

Retrieves instrument verification details for cards.

Link copied to clipboard
open fun getCardVerificationInformationAsync(instrumentId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<CardVerificationInfo>)

Asynchronously retrieves instrument verification details for cards.

Link copied to clipboard

Retrieves a list of card verification attempts for the customer.

Link copied to clipboard

Asynchronously retrieves a list of card verification attempts for the customer.

Link copied to clipboard
abstract suspend fun getSingleCardVerification(verificationId: String): CardVerification

Retrieves card verification attempt information.

Link copied to clipboard
open fun getSingleCardVerificationAsync(verificationId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<CardVerification>)

Asynchronously returns card verification attempt information.

Link copied to clipboard
abstract suspend fun getVerification(sessionId: String): InstrumentVerification

Retrieves previously created instrument verification session.

Link copied to clipboard
open fun getVerificationAsync(sessionId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<InstrumentVerification>)

Asynchronously retrieves previously created instrument verification session.

Link copied to clipboard
abstract fun openExternalVerificationFlow(activity: Activity, parameters: InstrumentVerification)

Starts in browser the flow for instrument verification.

Link copied to clipboard
abstract fun startCardVerification(activity: Activity, requestCode: Int, parameters: CardVerificationParameters)

Initiates the native card verification flow, starting an activity that returns a result indicating the outcome of the card verification operation.

Link copied to clipboard

Initiates a new payment instrument verification session for the specified instrumentType.

Link copied to clipboard

Asynchronously initiates a new payment instrument verification session for the specified instrumentType.

Link copied to clipboard
abstract suspend fun verifyCard(request: CardVerificationRequest): CardVerification

Perform card verification using verification code from previous successful transactions. The verification is required if either forced by risk and compliance or the card lifetime limit is reached.

Link copied to clipboard

Asynchronously perform card verification using verification code from previous successful transactions. The verification is required if either forced by risk and compliance or the card lifetime limit is reached.