Reusable card component with auto payment system detection and ability of customization card view. Production site.
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.
- 4149 - Visa
- 5168 - Mastercard
- 6222 - Unionpay
- 3782 - AMEX
- 60110 - Discover
- First of all you need to install dependencies from npm:
npm install
- Run project via command:
npm start
Copyright (c) 2023 Denys Lytvynenko. All rights reserved.
Licensed under the MIT license.