Package-level declarations

Types

Link copied to clipboard
sealed class CardIssuer

A list of supported card issuers.

Link copied to clipboard

A PanValidator that ensures the PAN is of a valid length.

Link copied to clipboard

A PanValidator that performs the Luhn check for validation.

Link copied to clipboard
interface PanValidator

A class that provides a method to determine if a PAN is valid.

Link copied to clipboard
data class ScannedCard(val pan: String) : Parcelable

Card details from the scanner

Functions

Link copied to clipboard
fun supportCardIssuer(iins: IntRange, cardIssuer: CardIssuer, panLengths: List<Int>, cvcLengths: List<Int>, validationFunction: PanValidator = LengthPanValidator + LuhnPanValidator): Boolean

Adds support for a new CardIssuer