The leader in ASP .NET Web Hosting, Windows Dedicated Servers,  Linux Web Hosting and Linux Dedicated Servers.  
Search our Knowledge Base:
XIIO Object Library: Credit Card Validation

XIIO Networks Object Library

Our development team has created a function of the XIIO Object Library called: CCValidation

This library offers fast validation of credit card numbers and expiration dates. This function only validates the credit card number but does not do authorization. For real-time authorization and capture please sign-up for a merchant account and gateway.

Object Name: XIIO.CCValidation

Functions:

  • CheckCCNumber("Credit Card Number")
    This will return a integer value for the card type if it's valid. If it's not valid it will return a 0.
    • Returns: 0 - Card not valid
    • Returns: 1 - Card is a VISA
    • Returns: 2 - Card is a Mastercard
    • Returns: 3 - Card is a Discover
    • Returns: 4 - Card is a American Express
    • Returns: 5 - Card is a Diners Club
  • ValidNumber("Credit Card Number")
    This will return a boolean (True or False) condition. If the number is valid, True is returned, if invalid False is returned.
  • CheckExpDate("mm/yy")

Both credit card number validation functions can be fed with a plain numeric card number, a number seperated by dashes, or a number seperated by spaces. The expiration date format must be 'mm/yy'

[View Sample ASP Code]
Download Sample ASP Code: [Download]

 



Need Help?:
Fast Response E-mail: Support@xiionet.com
1-(845) 467-6780 Option 2



 
We're here to help

XIIO Networks 24/7 Technical SupportNo matter what you need help with, we're here to answer your questions!

E-mail us or Call us at
1-(845) 467-6780.


RefreshLive Network Health: 6:56:31 PM EST
.NET Web HostingLive StatusConnected to Data Center...
Overall Network Health: 100%



WAN Connections: 4/4 Online
Latency Level: 9.668 ms
Routing/Critical Equip: OK
Switching/Aux. Equip: OK
Windows Server Pools: OK
Linux/BSD Server Pools: OK
Voice Switching Systems: OK
Data Center Temp: 68F
Current Power Supply: Normal on Mains
UPS/Battery Backup Systems: OK/READY
Diesel Generator Systems: OK/READY
[View all information using NetOps Live]