

For example, below is the code for generating a Master Card number:Ĭonst cardGen = require('card-number-generator')ĬardGen() #returns a valid 16 digit card number ending with the bin 92134(e.g. You should use these numbers only to test your validation strategies and for bogus data. Without a valid owner name, an expiration date and a valid CVV code, they cant be used for real transactions. These credit card numbers DO NOT work They are for testing purposes only. The package accepts input as a javascript object specifying the details of the card number you wish to generate. Fake credit card numbers for all major brands. You can specify features of the credit card number including the issuer(MasterCard, Visa, Verve), bank, or not more than 10 digits which the credit card number must contain, start with, or end with. Card-number-generator lets you generate valid credit or debit card numbers that pass the Luhn algorithm test. Generate valid real credit card numbers, including MasterCard, Visa, American Express, Discover, etc., each credit card has the expiry, cvv, holder name.
