1.0.0 • Published 2 years ago

namso-cc-gen v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Namso-Gen

SimpleYTDL Logo

Generate random test credit card numbers for testing, validation and/or verification purposes. The Namso-Gen random test credit card entry system provides numbers are needed to test owned credit card systems and for research purposes. These numbers are not valid and do not enable transactions. The generator uses the Luhn algorithm.

HOW TO INSTALL?

npm i namso-cc-gen

Require to export function

//CommonJS
const namso = require('namso-cc-gen');

SIMPLE USAGE

usage of gen()

const namso = require('namso-cc-gen');

let res = namso.gen({
 ShowCCV: true,
 CCV: "999",
 ShowExpDate: true,
 ShowBank: false,
 Month: "01",
 Year: "2022",
 Quantity: "10",
 Bin: "5254xxxxxxxxxxxx",
 Format: "PIPE"
})
console.log(res)

Sample Sucess Response

//PIPE RESPONSE
5254460031640046|01|2022|999
5254078567780281|01|2022|999

//CSV RESPONSE
5254785172382671, 999, 01/2022
5254527764283317, 999, 01/2022

//XML RESPONSE
<xml>
<CreditCard>
<CardNumber>5254881033324265</CardNumber>
<CardCCV2>999</CardCCV2>
<CardExpDate>01/2022</CardExpDate>
</CreditCard>
<CreditCard>
<CardNumber>5254180230550511</CardNumber>
<CardCCV2>999</CardCCV2>
<CardExpDate>01/2022</CardExpDate>
</CreditCard>
</xml>

//JSON RESPONSE
{
{
"CreditCard":{
"CardNumber": "5254765208224550"
"CardCCV2": "999"
"CardExpDate": "01/2022"
}
},
{
"CreditCard":{
"CardNumber": "5254811860554320"
"CardCCV2": "999"
"CardExpDate": "01/2022"
}
}
}

All Params

ParamsIs RequiredTypeExplanationSample
ShowCCVyesbooleanshow ccv on resultsShowCCV: true
CCVyesstringit can be filled up to 4 digit ccv/just type rnd to randomizeCCV: "rnd"
ShowExpDateyesbooleanshow expiration date on resultsShowExpDate: true
ShowBankyesbooleanshow bank type on resultsShowBank: false
Monthyesstringstring value that ranges from 01-12 or rnd to randomizeMonth: "01"
Yearyesstringstring value that can be filled or randomizeYear: 'rnd'
Quantityyesstringstring value that represents the quantity/number of ccn to be generatedQuantity: "5"
Binyesstringstring value for a BIN or Bank Identification Number has xxxBin: "5254xxxxxxxxxxxx"
Formatyesstringthe default format is PIPE and others are CSV, XML and JSONFormat: "PIPE"
rndoptionalstringexample if you want to randomize the CCVCCV: "rnd"