C# Class Kona.Model.CreditCard

Inheritance: PaymentMethod
Exibir arquivo Open project: BenHall/Kona

Public Methods

Method Description
CreditCard ( ) : System
CreditCard ( string cardType, string nameOnCard, string accountNumber, int expMonth, int expYear, string verificationCode ) : System
IsValid ( ) : bool

Validates the passed-in card, making sure that the card is not expired and that it passed the Luhn Algorigthm

Method Details

CreditCard() public method

public CreditCard ( ) : System
return System

CreditCard() public method

public CreditCard ( string cardType, string nameOnCard, string accountNumber, int expMonth, int expYear, string verificationCode ) : System
cardType string
nameOnCard string
accountNumber string
expMonth int
expYear int
verificationCode string
return System

IsValid() public method

Validates the passed-in card, making sure that the card is not expired and that it passed the Luhn Algorigthm
public IsValid ( ) : bool
return bool