Below is an example of code that makes use of the automatic
credit card validation in Coldfusion. My guess is that Coldfusion
uses the Luhn algorithm. If you feel like doing the Luhn validation
yourself, then there are lots of resources on the web to assist
you, especially
the Wikipedia on
Luhn.