mcc-codes icon indicating copy to clipboard operation
mcc-codes copied to clipboard

Another source of CSVs

Open jleclanche opened this issue 4 years ago • 2 comments

Hi, thanks for your work on this repo!

I recently had to deal with MCCs from Python and decided to publish a python package for iso18245.

I got curious about pulling the data from first-party sources; I also needed range data, not just the list of MCCs, so I worked on generating new CSVs.

I grabbed the official ISO 18245 PDF, as well as the most recent Visa list, the USDA list, and even Stripe Issuing's list. I used Tabula to extract the data, and had to do some extra manual + scripted clean up (especially with Visa's PDF; the rest was pretty clean).

Wanted to share it here in case it's useful for someone:

Specifically, I needed to match cut text descriptions to the original MCCs: image

It's a wonder why this was standardized on 4-digit codes at all if banking APIs are just going to use mangled english descriptions… but whatever. The python library itself exposes all that data. I've attached all the combined MCCs as JSON here if anyone needs them:

mccs.json

jleclanche avatar Apr 26 '20 00:04 jleclanche

This is very cool! I'd be interested to make you a committer on this repo if you'd like to find a good way to merge in your work?

greggles avatar May 20 '20 14:05 greggles

Feel free to merge it in! But I'm afraid I'm not interested in being a committer on here, I've spent enough time on it as is :)

If you'd like to open up the repo a bit, I recommend the Code Shelter: https://www.codeshelter.co/

jleclanche avatar May 29 '20 05:05 jleclanche