This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| function getCardType(cardNum) { | |
| if(!luhnCheck(cardNum)){ | |
| return ""; | |
| } | |
| var payCardType = ""; | |
| var regexMap = [ | |
| {regEx: /^4[0-9]{5}/ig,cardType: "VISA"}, | |
| {regEx: /^5[1-5][0-9]{4}/ig,cardType: "MASTERCARD"}, | |
| {regEx: /^3[47][0-9]{3}/ig,cardType: "AMEX"}, |