Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Credit Card Generator
Project Home Contact Project

Author: Dan Vega (All RIAForge projects by this author)
Last Updated: September 3, 2009 3:44 PM
Version: .1
Views: 131,738
Downloads: 54,308
License: Apache License, Version 2

Description:

This project is used to produce credit card numbers for the 4 major types of credit cards (Visa|Mastercard|Discover|Amex). When you are working with applications that accept credit cards you need a way of testing them. I created a component that will let you call a method and pass it a type and it will return a number that you can use to test.

cfset ccgen = new CreditCardGenerator();
cfset visa_number = ccgen.generateNumber('visa');

The component is written in all cfscript so it is only compatible with ColdFusion 9 right now but if someone thinks it would be useful on an older version I can write another version. This is only used for testing though so you could just run this on your local development box.

Requirements:

ColdFusion 8/9+