public class BankCardUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AMEX |
static String |
AUSTRALIAN_BANKCARD |
static String |
DINERS_CLUB |
static String |
DISCOVER |
static String |
INSUFFICIENT_DIGITS |
static String |
JCB |
static String |
MAESTRO |
static String |
MASTERCARD |
static String |
UNKNOWN_CARD |
static String |
VISA |
static String |
VISA_ELECTRON |
Constructor and Description |
---|
BankCardUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getCardType(String cardNumber)
Finds card type by first 4 digits of PAN
|
static String |
getFirst6(String aText) |
static String |
getLast4(String aText) |
static String |
getMonthLast2(String aText) |
static String |
getYearFirst2(String aText) |
public static final String VISA
public static final String VISA_ELECTRON
public static final String MASTERCARD
public static final String MAESTRO
public static final String DINERS_CLUB
public static final String AMEX
public static final String JCB
public static final String DISCOVER
public static final String AUSTRALIAN_BANKCARD
public static final String UNKNOWN_CARD
public static final String INSUFFICIENT_DIGITS
Copyright © 2018. All rights reserved.