Lunh valid Credit Card number generator, for arbitrary BIN

If you run your own payment page, you probably know by now that MasterCard’s new 2-series BINs ranges are coming, and having some test cards to run against validators is always good in order to check that front end update is going well, but where to get them?

There are many websites that provide generators that produce test card numbers for the most popular networks, giving out CSV or JSON formats for multiple entries, but these elaborate solutions don’t allow to just input any BIN and length to get a Lunh valid card.

Well I needed just this, so here it is, a mix coming from an original Java class by Josef Galea on GitHub and a validator by ShirtlessKirk, enjoy.

1

  •  
  •  
  •  
  •  
  •  

https://sresc.io/tK7

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.