<div id="response-message" class="”>


09
10
11
12

2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030

loader

Test Card Information

Use these test card numbers with valid expiration month
/ year for testing.

CARD NUMBERBRAND
4111111111111111Visa
5424000000000015Mastercard
370000000000002American Express
6011000000000012Discover
38000000000006Diners Club/ Carte Blanche
3088000000000017JCB

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;
}