How does one determine that the card a person is entering is a debit card, check card, or credit card?
I am looking at this for web payments in the US only. This is for utility billing.
How does one determine that the card a person is entering is a debit card, check card, or credit card?
I am looking at this for web payments in the US only. This is for utility billing.
Wiki has lists of credit vs. debit prefixes
However, IIRC some cards may be used as both credit and debit depending on context.
Binbase will tell you whether card is debit or credit based on the first six digits of the card number. You can do 10 manual lookups per day or you can pay to buy the whole database. www.binbase.com/search.html
The information returned is in this format:
not sure what you need that for, but all POS systems i'm aware of ASK THE USER to specify the type of the card.
you can run Debit as Credit - no need for pin number
you can run Credit as Debit - enter in your pin, and transaction will count as cash advance
Number ranges. Here is a small excerpt of an old specification I had once.
There may well be other methods by now for instance in the return message from the processor, but I have not had to deal with this for a long time. We process everything as a credit card and if the card is strictly a debit card the bank just takes care of it.
I found a Free BIN checker json API. https://api.freebinchecker.com/bin/{bin} for checking a single BIN number. It accepts a number of length six, the initial digits of any payment card. The app will perform database lookup to return all the relevant information stored for the BIN and about 350,000+ records. There also have premium feature.
Example:
For more info: Freebinchecker
I'm thinking you are getting confused that when you swipe the card in a store the machine knows which kind of card you've got. Although with my Dutch debit card I always got the option to choose..
But I'm guessing the magnetic strip stores more than just the number, and the card readers use that to determine your type of card.
You'll just have to join the other applications/sites and ask the user :)