Socket
Book a DemoInstallSign in
Socket

test-card

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

test-card

Credit, Debit & Prepaid cards for testing.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

test-card Build Status

Credit, Debit and Prepaid cards for testing.

Install

$ npm install --save test-card

Usage

const testCard = require('test-card');

testCard('visa');
//=> '4242424242424242'

testCard('meow');
//=> null

testCard(123);
//=> 'Expected a string, got number'

API

testCard(cardName)

cardName

Type: string

On of the below:

[ 'visa',
  'visa-debit',
  'mastercard',
  'mastercard-debit',
  'mastercard-prepaid',
  'american-express',
  'discover',
  'diners-club',
  'jcb' ]

P.S:

  • Expiry date for these cards must be some day in the future.

  • Any random CVC number.

  • Sample cards are from stripe docs.

License

MIT © Hemanth.HM

Keywords

credit

FAQs

Package last updated on 26 Apr 2017

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