• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Look up BIN/IIN numbers using binlist.net

BIN/IIN look up

Lookup card BIN numbers using https://www.binlist.net

IIN (Issuer Identification Number) is the more modern name.

Useful for querying information from a credit card such as:

  • brand (Visa, MasterCard, American Express, etc.)
  • expected card number length and LUHN algorithm support
  • type (debit or credit)
  • category (prepaid or classic)
  • country
  • issuing bank

What is a BIN?

The BIN is the first digits of a card number: 0000 0000 **** ****. You can pass any card number prefix of 4-9 digits. More numbers will return more information.

Use

Works in browser environments using Browserify or similar.

var lookup = require('binlookup')();

// using callbacks
lookup('45717360',
	function( err, data ){
		console.log(data);
	});

// using promises
lookup('45717360').then(
	data => console.log(data));

Example data returned:

{
	number: {
		length: 16,
		luhn: true
	},
	scheme: 'visa',
	type: 'debit',
	brand: 'Visa/Dankort',
	prepaid: false,
	country: {
		numeric: '208',
		alpha2: 'DK',
		name: 'Denmark',
		emoji: '🇩🇰',
		currency: 'DKK',
		latitude: 56,
		longitude: 10
	},
	bank: {
		name: 'Jyske Bank',
		url: 'www.jyskebank.dk',
		phone: '+4589893300',
		city: 'Hjørring'
	}
}

Caching

You can cache the response using AsyncCache or similar:

var lookup = require('binlookup')();
var AsyncCache = require('async-cache');

var cache = new AsyncCache({
	load: lookup,
});

cache.get(bin, function( err, data ){
	console.log(data);
});

More Repositories

1

luhn

Calculate the check digit of a card number according to the Luhn formular
JavaScript
43
star
2

sdk

Paylike SDK for the Web (JavaScript)
38
star
3

api-docs

Paylike API Documentation
17
star
4

node-api

A client for Node.js or browserify-ish
JavaScript
10
star
5

php-api

A PHP client for accessing the API
PHP
10
star
6

Paylike.NET

.NET client for the Paylike API
C#
4
star
7

countries

Supported countries
JavaScript
3
star
8

webshop-example

Example webshop (static)
JavaScript
3
star
9

plugin-opencart

Paylike for OpenCart
PHP
2
star
10

index

Index of Paylike Open Source projects on GitHub
2
star
11

kotlin_sdk

High level SDK library with view components for Kotlin
Kotlin
1
star
12

plugin-magento

Paylike for Magento webshops
PHP
1
star
13

plugin-prestashop-1.7

Prestashop 1.7 plugin.
PHP
1
star
14

dart-client

https://pub.dev/packages/paylike_dart_client
Dart
1
star
15

plugin-cscart

CS-Cart payment plugin
PHP
1
star
16

export

Export things from Paylike
JavaScript
1
star
17

plugin-opencart-2.3

OpenCart 2.3
PHP
1
star
18

flutter-engine

Engine library for Flutter platform
Dart
1
star
19

plugin-magento-1.9

Magento 1.9 plugin
PHP
1
star
20

plugin-virtuemart

Joomla Virtuemart plugin
PHP
1
star
21

dart-money

Dart implementation of https://github.com/capbasic/money
Dart
1
star
22

js-card-form-tools

JavaScript tools for card forms
JavaScript
1
star
23

currencies

Supported currencies
JavaScript
1
star
24

swift-currencies

Swift implementation of currencies
Swift
1
star
25

dart-request

https://pub.dev/packages/paylike_dart_request
Dart
1
star
26

plugin-x-cart-v4

X-Cart v4 plugin
PHP
1
star
27

java-api

Java library for the Paylike API
Java
1
star
28

entities-api-docs

Documentation for the https://entities.paylike.io service.
1
star
29

kotlin_money

Utility library for handling payment amounts
Kotlin
1
star