CreditCardValidator
Credit Card Validation and Card Type Web Service
The following operations are supported. For a formal definition, please review the Service Description.
-
GetCardType
Returns the card issuer Visa, MasterCard, AMEX, etc., based on the card number. -
GetNetworkID
Lookup the Debit Network ID using a Card Number. Network ID is a 3 characters string. If there is a match, the card can likely be used as a Debit Card and processed through the Debit network. Possible Network ID: ACL – Accel, AFN - AFFN, AKO – Alaska Option, C24 – CU24, ILK – Interlink, JEN - Jeanie, MAC – Star Northeast (MAC), MAE – Maestro, NET - NETS, NYC – NYCE, PUL – Pulse, SES – Star Southeast, SHZ – Shazam, STX – Star West, TYM - TYME -
IsCommercialCard
Returns (T/F) if the card is a known commercial card (commercial cards require customer code and sales tax amount to receive preferred discount rate pricing.) -
IsDebitCard
Returns an XMLDocument with the following nodes: - IsDebit: (T/F) if the routing number is present in the debit table. - CardType: The card type associated with the card number. -
IsFSACard
Returns (T/F) if the card is a known FSA card. -
IsValidCheckRoutingNumber
Returns (T/F) if the routing number is present in the routing table. -
ValidCard
Validates the credit card by checking the card length based on the card type, performs a mod 10 checksum and validates the expiration date. Returns 0 if good, 1001 - no card number, 1002 - no exp date, 1003 - invalid card type, 1004 - invalid card length, 1005 - bad mod 10 check, 1006 - bad expiration date. -
ValidCardLength
Validates the credit card length by checking the card length based on the card type, Returns (T/F). -
ValidExpDate
Validates the expiration date by making sure it is a valid date and the card has not expired, Returns (T/F). -
ValidMod10
Validates the credit card by performing a mod 10 checksum on the card number, Returns (T/F).