Class CreditCardVerifier
- java.lang.Object
-
- org.pentaho.di.trans.steps.creditcardvalidator.CreditCardVerifier
-
public class CreditCardVerifier extends Object
- Since:
- 03-Juin-2008
- Author:
- Samatar
-
-
Field Summary
Fields Modifier and Type Field Description static int
AIRPLUS
static int
AMERICAN_EXPRESS
static int
BANKCARD
static int
DINERS_CLUB
static int
DISCOVER
static int
EN_ROUTE
static int
INVALID
static int
JCB1
static int
JCB2
static int
LASER
static int
MAESTRO
static int
MASTERCARD
static int
SOLO
static int
SWITCH
static int
VISA
static int
VOYAGER
-
Constructor Summary
Constructors Constructor Description CreditCardVerifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReturnIndicator
CheckCC(String CardNumber)
static int
getCardID(String number)
static String
getCardName(int id)
static String
getNotValidCardNames(int id)
static boolean
isNumber(String n)
static boolean
luhnValidate(String numberString)
-
-
-
Field Detail
-
INVALID
public static final int INVALID
- See Also:
- Constant Field Values
-
VISA
public static final int VISA
- See Also:
- Constant Field Values
-
MASTERCARD
public static final int MASTERCARD
- See Also:
- Constant Field Values
-
AMERICAN_EXPRESS
public static final int AMERICAN_EXPRESS
- See Also:
- Constant Field Values
-
EN_ROUTE
public static final int EN_ROUTE
- See Also:
- Constant Field Values
-
DINERS_CLUB
public static final int DINERS_CLUB
- See Also:
- Constant Field Values
-
DISCOVER
public static final int DISCOVER
- See Also:
- Constant Field Values
-
JCB1
public static final int JCB1
- See Also:
- Constant Field Values
-
JCB2
public static final int JCB2
- See Also:
- Constant Field Values
-
BANKCARD
public static final int BANKCARD
- See Also:
- Constant Field Values
-
MAESTRO
public static final int MAESTRO
- See Also:
- Constant Field Values
-
SOLO
public static final int SOLO
- See Also:
- Constant Field Values
-
SWITCH
public static final int SWITCH
- See Also:
- Constant Field Values
-
AIRPLUS
public static final int AIRPLUS
- See Also:
- Constant Field Values
-
LASER
public static final int LASER
- See Also:
- Constant Field Values
-
VOYAGER
public static final int VOYAGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCardName
public static String getCardName(int id)
-
getNotValidCardNames
public static String getNotValidCardNames(int id)
-
CheckCC
public static ReturnIndicator CheckCC(String CardNumber)
-
luhnValidate
public static boolean luhnValidate(String numberString)
-
getCardID
public static int getCardID(String number)
-
isNumber
public static boolean isNumber(String n)
-
-