getCardIssuers

suspend fun getCardIssuers(bin: String, paymentMethodId: String): Result<List<CardIssuer>, ResultError>

Retrieves the list of available card issuers for a given card BIN and payment method. This method helps identify which banks or financial institutions can process the card based on its first digits and the selected payment method.

Return

Result: On Success a list of CardIssuer, On Error ResultError

Example:

val result = coreMethods.getCardIssuers(
bin = bin, // CardNumberTextFieldEvent.OnBinChanged value
paymentMethodId = "paymentMethodId" // Get in PaymentMethods response call
)

when (result) {
is Result.Success -> {
val issuers = result.data
// Display available issuers to user
}
is Result.Error -> {
// Handle error
}
}

Parameters

bin

The first 8 digits of the card number from CardNumberTextFieldEvent.OnBinChanged value

paymentMethodId

The ID of the payment method to check issuers for

See also