/banks-db

Returns bank name and brand color by bankcard prefix (BIN)

Primary LanguageJavaScript

Banks DB

Build Status Dependency Status Latest Stable Version NPM Downloads

Returns bank name and brand color by bankcard prefix (BIN).

It is useful on billing pages to use bank’s brand color when user starts to type card number.

banks-db usage example

It is a community driven database, so it can potentially contain mistakes. It's not a problem for UX enhancement, but you must not use it in your billing logic.

Contributing

In case your bankcard doesn't work, please check if your bank already in Banks DB:

  • If your bank is already included, you can open an issue with your prefix (NOT full number of your card, just first 5 or 6 symbols) or send a pull request.
  • Otherwise you can add a new bank (see contributing guide).