Ask HN: Where/How do I learn about credit card payments and payment gateways
I hope this is not the wrong place to post this.
I have been trying to learn about credit card payment gateways and I am not finding the proper resources. Specifically - * I read (on HN) sometime ago that there is a specific way the card numbers are issued by companies and that you could tell by the number which company issued it. Where do I get this information? * What exactly do the different players do in the ecosystem? We have the providers (Visa, MC), issuers (Citibank), payment gateways, processors. * When I swipe my card at Best Buy what happens after the card is read?
Could someone please point me in the right direction?
20 comments
[ 2.2 ms ] story [ 43.2 ms ] threadHere is a good resource for that info: http://www.merriampark.com/anatomycc.htm
If you don't want to bother worrying about the details of setting it all up, look into Stripe.com or Samurai from Feefighters
1. Here is a way to do it, in Python: https://github.com/abunsen/Paython/blob/master/paython/lib/u...
2. Not sure on providers other than that they lend their brand / set guidelines for the banks that issue cards (Citibank). On the other hand, you've got a processor, like First Data who allow you to process cards (on the internet) via a gateway, like Authorize.Net. In some cases, the processor & the gateway are bundled, like in the case of the new Stripe payments.
3. AFAIK: Your cards magnetic strip is converted to numbers, sent to a gateway to be processed as a "card present" transaction (different, typically lower, fees for these) & asked for approval from the issuing bank, once approved the amount collected will sit in limbo for 1-7 days then deposited into Best Buys bank account.
We're taking the leap and using Stripe for our recurring billing system, even though we have a merchant account. I just like it that much.
Also, Carol Benson & Scott Loftesness’s book, Payments Systems in the U.S., is quite an excellent introduction: http://www.amazon.com/dp/098278970X
Link: http://www.mint.com/blog/trends/credit-card-code-01202011/
http://en.wikipedia.org/wiki/List_of_Bank_Identification_Num...
http://en.wikipedia.org/wiki/Interchange_fees
http://www.slideshare.net/Recurly/lessons-learned-in-online-...
The device you swipe your card at Best Buy is a merchant device. Best Buy has made an agreement with the device vendor to route its traffic over a specific network, say First Data.
When you swipe the card the network(gateway) decides where to 'route' the request based on the BIN (typically first 6 digits of the card number, can be more depending on how the card profile is setup). The network has BIN tables setup so they can easily identify which cards go where. After the merchants gateway has determined where to route the card, the request then propagates to the issuing network, from there it is sent to the issuer to approve/deny the request.
This is a simple high level overview and by no means complete.
Ex. path
User swipes card @ device -> Merchant devices sends transaction to First Data (where FDC is the merchant device gateway) -> First Data routes transaction to issuing network (Visa, MC, Cirrus) -> Issuing Network forwards request to issuer (issuance processor) for approval
In debit world, it used to be that the more 'hops' a request took to route back to the issuer, the more that interchange that was incurred.
There are all sorts of scenarios that can occur, for example, I'm working on a project that would circumvent the networks if the transaction is for a card issued by our bank (closed loop transaction), which avoids interchange fees paid to the network.