New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mastercard-validation

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mastercard-validation

MasterCard credit card validator

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

mastercard-validation

mastercard-validation is a module that help you validate a MASTERCARD credit card.

Basic Usage

To use this module you only have to insert the visa credit card informations into the method validateMasterCard(), as shown on the example bellow.

var mastercard = require('mastercard-validation');
var card = {
  number: '5430574372474752',
  expiryMonth: '05',
  expiryYear: '2017',
  cvv: '087'
};
var validation = mastercard.validateMasterCard(card);

So console.log(validateMasterCard()) will return an object like this:

{ card:
   { number: '5430574372474752',
     expiryMonth: '05',
     expiryYear: '2017',
     cvv: '087' },
  validCardNumber: true,
  validExpiryMonth: true,
  validExpiryYear: true,
  validCvv: true,
  isExpired: false }

Check also

visa-validation

Keywords

mastercard

FAQs

Package last updated on 11 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts