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.
Return
Result On Success a list of PaymentMethod, On Error ResultError
Example:
val result = coreMethods.getPaymentMethods(
bin = bin, // CardNumberTextFieldEvent.OnBinChanged value
)
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 8 digits of the card number from CardNumberTextFieldEvent.OnBinChanged value