## CreditCard Validator PowerToy

This documentation contains instruction on how to:

- Use the CreditCard Validator Control

The CreditCard control is based on two principles on which credit cards adhere to, i.e. Luhn formula (or Luhn algorithm or mod 10 algorithm) and specific type of credit card has specific prefix and/or length. You can find more information about these principles here.

Credit Card Validator control only checks for three things, mentioned below:

1. Credit Card number is valid.
2. Credit Card is not expired.
3. Credit Card type is valid for the credit card number provided.

#### Important Note :

Passing the Luhn formula is only the first step. Matching specific card criteria is the second. However, running a number through a credit card server is the only real test, because that's when the validity of the credit card account is actually verified.
This control only perform checks to make sure the number is well formed, not expired and credit card type is valid.