seasoned-credit-card-form-web

0.3.1 • Public • Published

seasoned-credit-card-form-web

A formik credit card form to speed up the development

NPM JavaScript Style Guide Maintainability Test Coverage

Install

npm install --save seasoned-credit-card-form-web

Usage

import React, { Component } from 'react'
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'
import { PaymentForm } from 'seasoned-credit-card-form-web'
import 'react-credit-cards/es/styles-compiled.css'
 
const theme = createMuiTheme({})
 
const Example = props => (
  <MuiThemeProvider theme={theme}>
    <PaymentForm
      onSubmit={values => doSomething(values)}
      submitting={false}
      error={serverError}
      acceptedCards={['visa', 'amex', 'elo', 'mastercard', 'diners', 'hipercard']}
    />
  </MuiThemeProvider>
)

License

MIT © SeasonedSoftware

/seasoned-credit-card-form-web/

    Package Sidebar

    Install

    npm i seasoned-credit-card-form-web

    Weekly Downloads

    1

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    2.15 MB

    Total Files

    6

    Last publish

    Collaborators

    • giovanisleite