Start a new topic

Credit Card type Dictionary

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?


I think I figured it out.
Hi Carrie,

Glad you figured it out!

For anyone else needing assistance with this.

Value to match on: ^3.* Replacement value American Express
Value to match on: ^4.* Replacement value Visa
Value to match on: ^5.* Replacement value Mastercard

Thanks,

John
Login or Signup to post a comment