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. The result includes issuer details such as ID, name, and processing capabilities.

Return

Result, ResultError> Success with issuer list or Error with details

Example:

val result = coreMethods.getCardIssuers(
bin = "411111",
paymentMethodId = "visa"
)

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

Parameters

bin

The first 6 digits of the card number (BIN)

paymentMethodId

The ID of the payment method to check issuers for

See also