Design a webpage to capture card details. Include basic validation like validating card number
and expiration date. Also include a field for name on card and cvv.
Store card details in a database and show success message when stored.
- You are allowed to use any frontend technologies. React would be preferred but
html,css and javascript will also do. Other frameworks you can consider - Angular, Vue
- You can use any backend and any database. Most easy would be Firebase. You can
also consider any backend language with in-memory database. Most recommended
would be node.js with express and mongodb.
- Regarding the validation for credit card number. It needs to be all numbers and should
be 16 digits long. Provide appropriate error message in line using javascript.
- Expiration date can be input text or dropdown.
- Store card details in a database,
- basic validation like validating card number and expiration date
- Firebase
- HTML, Java script and css
- Payform interface
- 000webhostapp
- vccgenerator.com
- Length of the Name must be greater than 5
- Card is vaild upto maximum 10 years from the card issued month
- validateCardNumber(cardNumber.val()) ->Given Condition in question -> card number is equal to 16 digit using payform interface
- validateCardCVC(CVV.val()) -> using payform interface
- payform.parseCardType() -> is used to change the types of card in mastercard, amex and visa.
Testing Vaild Temp cards [ For More Valid Cards Ref: https://www.vccgenerator.com/]
- CARD BRAND : VISA
- CARD NUMBER : 4201348489345670
- Name : Suriya Vijay
- Exp:07/2023
- CVV: 451
- CARD BRAND : MASTERCARD
- CARD NUMBER : 5353402679633198
- Name : Abi suriya
- EXPIRY : 03/2024
- CVV : 791
- CARD BRAND : AMERICAN EXPRESS
- CARD NUMBER : 377398429462024
- Name : Vignesh Kumar
- CVV/CVV2 : 733
- EXPIRY (MM/YYYY) : 10/2025