JIDE 3.5.15

com.jidesoft.field.creditcard
Interface CardIssuer

All Known Implementing Classes:
AmericanExpress, DinersClub, Discover, JCB, MasterCard, VISA

public interface CardIssuer

Interface of credit card Issuer. Implemented class should include card name and check method.


Field Summary
static int VAILDATE_ERROR_WRONG_LENGTH
          Code to be returned when card number length is invalid
static int VAILDATE_SUCCESS
          Code to be returned when card number is valid
 
Method Summary
 Icon getIcon()
          Get the card issuer's icon
 String getName()
          Get the card issuer's name
 int isCardNumberValid(String cardNumber)
          Check if specified card number length and identifier is valid for the issuer.
 

Field Detail

VAILDATE_SUCCESS

static final int VAILDATE_SUCCESS
Code to be returned when card number is valid

See Also:
Constant Field Values

VAILDATE_ERROR_WRONG_LENGTH

static final int VAILDATE_ERROR_WRONG_LENGTH
Code to be returned when card number length is invalid

See Also:
Constant Field Values
Method Detail

isCardNumberValid

int isCardNumberValid(String cardNumber)
Check if specified card number length and identifier is valid for the issuer.

Parameters:
cardNumber - number to be checked
Returns:
0-the number is valid, other-invalid

getName

String getName()
Get the card issuer's name

Returns:
the card issuer's name

getIcon

Icon getIcon()
Get the card issuer's icon

Returns:
card issuer's icon

JIDE 3.5.15