Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 825
Arsen Zahray Avatar asked Jul 02 '12 15:07

Arsen Zahray


1 Answers

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.

like image 65
Hakan Avatar answered Oct 10 '22 04:10

Hakan