getPaymentMethods
Retrieves the list of available payment methods for a given card BIN. This method helps identify which payment methods (credit card, debit card, etc.) can be used based on the card's first digits. The result includes detailed information about each payment method including fees, processing times, and required fields.
Return
Result
Example:
val result = coreMethods.getPaymentMethods(
bin = "411111"
)
when (result) {
is Result.Success -> {
val paymentMethods = result.data
// Display available payment methods to user
}
is Result.Error -> {
// Handle error
}
}
Content copied to clipboard
Parameters
bin
The first 6 digits of the card number (BIN)