1.1.2 • Published 7 years ago

react-creditcard v1.1.2

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

react-creditcard

An awesome credit card component (and doesn't even use CoffeeScript!).

npm.io

Motivation

Most of the card modules I've seen use CoffeeScript (and tbh I can't be bothered learning CoffeeScript to make a pull request), and some of them are not being actively maintained anymore. So I decided to port a combination of jessepollak's card and JohnyDays's react-credit-card.

Installation

yarn add react-creditcard

or

npm install react-creditcard --save

Usage

import CreditCard from 'react-creditcard';

<CreditCard
  number="4111111111111111"
  cvc="123"
  expiry="1220"
  focused="cvc"
  backDescriptionText="Use of this card is governed by the conditions of use. You must not disclose your PIN to anyone."
  />

Available Props

License

MIT © Jake Moxey