C# Class Kurejito.Payments.PaymentCard

Represents a credit or debit card used for online payments
Exibir arquivo Open project: Kurejito/Kurejito Class Usage Examples

Public Methods

Method Description
PaymentCard ( ) : Kurejito.Validation

Initialize an empty instance of PaymentCard

PaymentCard ( string cardHolder, string cardNumber, CardDate expiryDate, string cv2, CardType cardType ) : Kurejito.Validation

Initialize a new instance of PaymentCard based on the supplied values.

Validate ( ) : ValidationResult

Validates this instance.

Method Details

PaymentCard() public method

Initialize an empty instance of PaymentCard
public PaymentCard ( ) : Kurejito.Validation
return Kurejito.Validation

PaymentCard() public method

Initialize a new instance of PaymentCard based on the supplied values.
public PaymentCard ( string cardHolder, string cardNumber, CardDate expiryDate, string cv2, CardType cardType ) : Kurejito.Validation
cardHolder string The full cardholder name, as it appears on the payment card.
cardNumber string The PAN number - the long number across the front of the card
expiryDate CardDate The card expiry date
cv2 string The Card Verification Value or 'signature digits' from the payment card.
cardType CardType
return Kurejito.Validation

Validate() public method

Validates this instance.
public Validate ( ) : ValidationResult
return ValidationResult