Daily Archives: March 7, 2014

1 post

Build ASP.NET CustomValidator to validate credit card numbers

When accepting credit card payment in your web application, the best practice is to validate customer’s credit card number before sending it to the payment gateway. This post will show you how to use ASP.NET CustomValidator to check if a credit card number is well-formatted or randomly generated by using Luhn algorithm.