Skip to content

Simple reusable card component with auto payment system detection and ability of customization card view

License

Notifications You must be signed in to change notification settings

Denys-Lytvynenko/react-credit-card

Repository files navigation

Project info

Card icon

Reusable card component with auto payment system detection and ability of customization card view. Production site.

Desktop layout

Desktop layout

Mobile layout

Mobile layout

Auto detection of payment system

Implemented auto detection of payment system by using https://lookup.binlist.net/ API.
On typing of first 4-6 digits of card number API call occurs to detect payment system. After receiving of successful response from the API you can see payment system logo at the top right corner of the front card. Payment system auto detection

Form validation

Form validation

Ability to control form by the arrow keys

Control by the arrow keys

Supported payment systems

  • 4149 - Visa
  • 5168 - Mastercard
  • 6222 - Unionpay
  • 3782 - AMEX
  • 60110 - Discover

Run project

  1. First of all you need to install dependencies from npm:
npm install
  1. Run project via command:
npm start

License

Copyright (c) 2023 Denys Lytvynenko. All rights reserved.

Licensed under the MIT license.