/card-payment-validator

This is a nodejs project that validates a credit card

Primary LanguageJavaScript

STEPS TO RUN THE PROJECT

  • Clone the project to your system
  • Navigate into the project
  • run npm start

Request data

{
"cardNumber": "Your valid card number",
"expireDate":"Card expiration date",
"cvv":"Card CVV",
"email":"Your email",
"mobile":"mobile number"
"phoneNumber":"mobile number with country code"
}

Response

{
"valid":  true,
"cardType":  "Your card type",
"country":  "name of country",
"message":  "card charged"
}