<div id="response-message" class="”>
09
10
11
12
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
Test Card Information
Use these test card numbers with valid expiration month
/ year for testing.
CARD NUMBER | BRAND |
---|---|
4111111111111111 | Visa |
5424000000000015 | Mastercard |
370000000000002 | American Express |
6011000000000012 | Discover |
38000000000006 | Diners Club/ Carte Blanche |
3088000000000017 | JCB |
function cardValidation () {
var valid = true;
var cardNumber = $(‘#card-number’).val();
var month = $(‘#month’).val();
var year = $(‘#year’).val();
$(“#error-message”).html(“”).hide();
if (cardNumber.trim() == “”) {
valid = false;
}
if (month.trim() == “”) {
valid = false;
}
if (year.trim() == “”) {
valid = false;
}
if(valid == false) {
$(“#error-message”).html(“All Fields are required”).show();
}
return valid;
}