/card-validator

Credit Card Validator - Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discoverer) and validates it to make sure that it is a valid number (look into how credit cards use a checksum).

Primary LanguagePHP

Credit Card Validator

Based on Luhn algorithm.

Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discoverer) and validates it to make sure that it is a valid number (look into how credit cards use a checksum).

Example

File structure

index.php

This is the entry point of the application.

Core/CreditCardValidator.php

Validates credit card entry.

css/bootstrap.min.css

Bootstrap file for html layout.

css/font-awesome.min.css

Font Awesome file for html layout.

js/bootstrap.min.js

Bootstrap file for dynamic html layout.

js/jquery-3.1.0.min.js

JQuery file for dynamic layout and AJAX support.

Inspired by

Projects List