Skip to content

This project provides a simple web application to generate and validate credit card numbers using the Luhn algorithm.

Notifications You must be signed in to change notification settings

Theografiska/credit-card-validator

Repository files navigation

Credit Card Validator

Summary of the Project

This project provides a simple web application to validate credit card numbers using the Luhn algorithm. Users can generate card numbers based on selected credit card companies, validate them, and make corrections if necessary.

You can view the live site here: Credit Card Validator.

Technologies Used

  • HTML: For the structure of the web application.
  • CSS: For styling the application and enhancing user experience.
  • JavaScript: For implementing the credit card validation logic and handling user interactions.

Main Functionality Built

  1. Card Generation: Users can select a credit card company from a dropdown menu and press a button to generate a new card number, which is then displayed on a visually appealing credit card (fully generated with HTML/CSS).

  2. Card Validation: Users can click a button to validate the generated card number, receiving instant feedback on its validity.

  3. Correction of Invalid Cards: If the card number is invalid, users have the option to correct the number by clicking a button.

  4. Re-validation: After making corrections, users can re-validate the card number.

Screenshots of the Website

Screenshot 1 Initial view

Screenshot 2 Generation of a card

Screenshot 3 Validation of a card, generating a new corrected card, and re-validating it

How to Run the Project Locally

  1. Clone the repository:
    git clone https://github.com/theografiska/credit-card-validator.git
    
  2. Open index.html in your web browser.

Contributing

If you would like to contribute to this project, please feel free to fork the repository and submit a pull request. Any suggestions or improvements are welcome!

License

This project is licensed under the MIT License.

About

This project provides a simple web application to generate and validate credit card numbers using the Luhn algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published