Click here to Skip to main content
15,886,077 members
Articles / Web Development / ASP.NET

Ultimate .NET Credit Card Utility Class

Rate me:
Please Sign up or sign in to vote.
4.84/5 (41 votes)
29 Aug 2007CPOL6 min read 197K   6.4K   161  
A powerfully simple .NET utility class for validating and testing credit card numbers in C# and VB.

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CreditCardUtility", "CreditCardUtility.csproj", "{C338669E-2BD8-4DD4-843B-2D96A8567F73}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CreditCardUtilityTests", "..\CredCardUtilityTestsCS\CreditCardUtilityTests\CreditCardUtilityTests.csproj", "{C8532E84-6C22-47DA-9418-DB433F427959}"
EndProject
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CreditCardTestSiteCS", "..\CreditCardTestSiteCS", "{E9B075FE-317A-4D00-A22D-4D2280BC01F0}"
	ProjectSection(WebsiteProperties) = preProject
		TargetFramework = "2.0"
		ProjectReferences = "{C338669E-2BD8-4DD4-843B-2D96A8567F73}|CreditCardUtility.dll;"
		Debug.AspNetCompiler.VirtualPath = "/CreditCardTestSiteCS"
		Debug.AspNetCompiler.PhysicalPath = "..\CreditCardTestSiteCS\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\CreditCardTestSiteCS\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/CreditCardTestSiteCS"
		Release.AspNetCompiler.PhysicalPath = "..\CreditCardTestSiteCS\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\CreditCardTestSiteCS\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "1674"
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|.NET = Debug|.NET
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Release|.NET = Release|.NET
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Release|.NET.ActiveCfg = Release|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Release|Any CPU.Build.0 = Release|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{C338669E-2BD8-4DD4-843B-2D96A8567F73}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Release|.NET.ActiveCfg = Release|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Release|Any CPU.Build.0 = Release|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{C8532E84-6C22-47DA-9418-DB433F427959}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Debug|.NET.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Debug|.NET.Build.0 = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Debug|Any CPU.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Debug|Mixed Platforms.Build.0 = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Release|.NET.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Release|.NET.Build.0 = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Release|Any CPU.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
		{E9B075FE-317A-4D00-A22D-4D2280BC01F0}.Release|Mixed Platforms.Build.0 = Debug|.NET
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Todd Anglin is an Experts Exchange ASP.NET Master and a Telerik Technical Evangelist responsible for building a strong Telerik community across the globe. Before joining Telerik, Todd worked as a developer in a Fortune 200 financial services company in San Antonio as a Systems Analyst supporting applications on a wide range of platforms and technologies, including Unix, Windows Server, Informix, Oracle, and SQL Server. Todd graduated Magna Cum Laude with Business Honors from Mays Business School at Texas A&M University with a BBA in MIS and now resides with his wife in The Woodlands, Texas.

Comments and Discussions