Skip to content

stimoroll/react-credit-card-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REACT / TypeScript / Hooks: Credit Card Input component / Material Design

with:

  • validation of card number
  • validation of cvc
  • validation of expiration date
  • detect card issuer
  • auto-switch to next field
  • keyboard support

Workshop test to test TS / Hooks in TS and Material Design

DEMO

See the demo: https://codesandbox.io/s/github/stimoroll/react-credit-card-input

RUN app

Open http://localhost:3000 to view it in the browser.

Available Scripts

yarn start

yarn build

TODO

  • extract messages ouside
  • add loading spinner while loading card image
  • e2e tests