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 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

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.