New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-creditCard

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-creditCard

Credit Card React component

latest
Source
npmnpm
Version
0.0.13
Version published
Maintainers
1
Created
Source

React CreditCard.

This is a port of the Stripe jquery.payment plugin. It allows you to use pure react on the site. Right now this is pretty much a CoffeeScript to JS transpile to a React component.

Next iteration is to clean it up, add tests and possibly some lun validation. We currently use StripeJS for that kind validation because it will do more verifications for us.

Installation

npm install react-creditCard --save

#Example

import CreditCard from 'react-creditCard';


.
.
.

onChange(value) {
    this.setState({ccValue: value});
}


render() {
    return (<CreditCard id="ccnumber" name="ccnumber" autoComplete="cc-number" size="20" onChange={::this.onChange}/>)
}

More to come...

  • Validation
  • What is needed?

Keywords

react

FAQs

Package last updated on 15 Mar 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