XMethods Logo

Home ·  Tools · Implementations · Manage · Register · Tutorials · About

Partner4 Logo Partner3 Logo Partner2 Logo

Smartpayments CardValidator

WSDL

http://www.tpisoft.com/smartpayments/validate.asmx?WSDL     Analyze WSDL   |   View RPC Profile  (only for RPC services)
Owner:richsolutions.com
For more Info:http://www.TPISoft.com
Description:Credit Card Validation and Card Type Web Service

Endpoints

URLPublisherContact EmailImplementation
http://www.tpisoft.com/smartpayments/validate.asmxrichsolutions.combillp@TPISoft.comMS .NET

Contributed Clients   What is this?     Add / Edit / Delete Client  

NameTypePublisherToolkitLanguageOS
Web Services Performance and Load TesterApplicationLisaWu N/ACross-Platform


Detailed Description

Credit Card Validation and Card Type Web Service 
by TPI Software, LLC

The following operations are supported. For a formal definition, 
please review the Service Description.

ValidExpDate 
Validates the expiration date by making sure it is a valid date and 
the card has not expired, Returns (T/F). 

GetCardType 
Returns the card issuer Visa, MasterCard, AMEX, etc., based on the 
card number. 

ValidCard 
Validates the credit card by checking the card length based on the 
card type, performs a mod 10 checksum and validates the expiration 
date. Returns �1 if good, 1001 - no card number, 1002 - no exp date, 
1003 - invalid card type, 1004 - invalid card length, 1005 - bad mod 
10 check, 1006 - bad expiration date. 

IsCommercialCard 
Returns (T/F) if the card is a known commercial card (commercial 
cards require customer code and sales tax amount to receive preferred 
discount rate pricing.) 

ValidCardLength 
Validates the credit card length by checking the card length based on 
the card type, Returns (T/F). 

ValidMod10 
Validates the credit card by performing a mod 10 checksum on the card 
number, Returns (T/F).

Usage Notes

This Web service provides an example of how to use the
CardValidator Service from TPI Software.
CardValidator supports the following function calls:

GetCardType(CardNum As String) As String
ValidCardLength(CardNum As String) As Boolean
ValidExpDate(ExpDate As String) As Boolean
ValidMod10(CardNum As String) As Boolean
ValidCard(CardNum As String, ExpDate As String) As Integer
IsCommercialCard(CardNum As String) as Boolean

You can call each routine individually and get a Boolean (True/False) 
response or call the ValidCard routine which returns -1 for true or
returns an result number indicating why the card is not valid.

Return results for CardType
-1 or True = Good Card
1001 - no card number
1002 - no exp date
1003 - invalid card type
1004 - invalid card length
1005 - bad mod 10 check
1006 - bad expiration date

A Sample VB.NET application that calls this web service can be 
downloaded at: http://www.TPISoft.com/downloads

Help  Message Board