JCB

JCB("jcb", "JCB", R.drawable.stripe_ic_jcb, Pattern.compile("^(352[89]|35[3-8][0-9])[0-9]*$"), mapOf( 1 to Pattern.compile("^3$"), 2 to Pattern.compile("^(35)$"), 3 to Pattern.compile("^(35[2-8])$") ))

JCB

BIN range: 352800 to 358999

Functions

Link copied to clipboard
fun isMaxCvc(cvcText: String?): Boolean
Link copied to clipboard
fun isValidCardNumberLength(cardNumber: String?): Boolean

Checks to see whether the input number is of the correct length, given the assumed brand of the card. This function does not perform a Luhn check.

Link copied to clipboard
fun isValidCvc(cvc: String): Boolean

Properties

Link copied to clipboard
val code: String
Link copied to clipboard
val cvcIcon: Int
Link copied to clipboard
val cvcLength: Set<Int>

Accepted CVC lengths

Link copied to clipboard
val displayName: String
Link copied to clipboard
val errorIcon: Int
Link copied to clipboard
val icon: Int
Link copied to clipboard
val maxCvcLength: Int
Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int