How to tell credit card's country of origin by its number?

Arsen Zahray picture Arsen Zahray · Jul 2, 2012 · Viewed 54.5k times · Source

I'm trying to develop an application, which would give access to different services for people from different regions of the world.

Let's say, someone enters card number 1111-1111-1111-1111 . How do I use it to tell the country of origin?

I know that this is possible, because paypal and apple do it.

Answer

Hakan picture Hakan · Jan 22, 2016

Use BinList. It simply tells you the country of origin by checking the first 6 digits of the card number. It has a neat Json based API as well.