C# Class ECommerceHelper.Common.CardInfo

Exibir arquivo Open project: tugberkugurlu/ECommerceHelper

Public Methods

Method Description
IsCreditCardAMEX ( string creditCardNumber ) : bool

Determines if the specified credit card is an American Express credit card

IsCreditCardMasterCard ( string creditCardNumber ) : bool

Determines if the specified credit card is an MasterCard credit card

IsCreditCardTurkish ( string creditCardNumber ) : bool

Determines if the specified credit card is a card issued by a Turkish bank.

IsCreditCardVISA ( string creditCardNumber ) : bool

Determines if the specified credit card is an Visa credit card

Private Methods

Method Description
deseserializeCards ( ) : List
extractBINCode ( string creditCardNumber ) : string

The fist 6 digits are the Issuer Identification Number. It will identify the institution that issued the card.

getCards ( ) : List
getXMLContent ( ) : string
isSpecificCreditCard ( string creditCardNumber, int prefixes ) : bool

Method Details

IsCreditCardAMEX() public static method

Determines if the specified credit card is an American Express credit card
public static IsCreditCardAMEX ( string creditCardNumber ) : bool
creditCardNumber string
return bool

IsCreditCardMasterCard() public static method

Determines if the specified credit card is an MasterCard credit card
public static IsCreditCardMasterCard ( string creditCardNumber ) : bool
creditCardNumber string
return bool

IsCreditCardTurkish() public static method

Determines if the specified credit card is a card issued by a Turkish bank.
public static IsCreditCardTurkish ( string creditCardNumber ) : bool
creditCardNumber string
return bool

IsCreditCardVISA() public static method

Determines if the specified credit card is an Visa credit card
public static IsCreditCardVISA ( string creditCardNumber ) : bool
creditCardNumber string
return bool