payform

A general purpose library for building credit card forms, validating inputs, and formatting numbers.

(Includes an optional jQuery plugin interface)

Build Status Dependencies

NPM

Example (view source)

You probably want to use a test card.
type: invalid
View the API Documentation Here