JIDE 3.5.15

com.jidesoft.field.creditcard
Class CardIssuers

java.lang.Object
  extended by com.jidesoft.field.creditcard.CardIssuers

public class CardIssuers
extends Object

A class contains all the credit card issuers. By default we added VISA, MasterCard, AMEX and Discover. You can add more or remove them depending on what you need in your application.


Constructor Summary
CardIssuers()
          Issuer Check Container Constructor
 
Method Summary
static CardIssuer getCardIssuer(String cardNumber)
          Check if specified card number is valid by reserved issuer
static void registerDefaultIssuers()
          Registers the default card issuers.
static void registerIssuer(CardIssuer cardIssuer)
          Register issuer to CardIssuers.
static void unregisterIssuer(String cardIssuerName)
          Register issuer to CardIssuers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardIssuers

public CardIssuers()
Issuer Check Container Constructor

Method Detail

registerDefaultIssuers

public static void registerDefaultIssuers()
Registers the default card issuers.


registerIssuer

public static void registerIssuer(CardIssuer cardIssuer)
Register issuer to CardIssuers.

Parameters:
cardIssuer - the card issuer

unregisterIssuer

public static void unregisterIssuer(String cardIssuerName)
Register issuer to CardIssuers.

Parameters:
cardIssuerName - the card issuer name

getCardIssuer

public static CardIssuer getCardIssuer(String cardNumber)
Check if specified card number is valid by reserved issuer

Parameters:
cardNumber - number to be checked
Returns:
Issuer of specified card number, null if the number is invalid.

JIDE 3.5.15