I need to create a dictionary that reads the first numerical value of a credit card and translates that to a "credit card type". I'm not sure about how to do that.
Begins with 3 = American Express
Begins with 4 = Visa
Begins with 5 = MasterCard
Etc... Does anyone know how to create that dictionary?