C# Класс Kurejito.Payments.PaymentCard

Represents a credit or debit card used for online payments
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

PaymentCard() публичный Метод

Initialize an empty instance of PaymentCard
public PaymentCard ( ) : Kurejito.Validation
Результат Kurejito.Validation

PaymentCard() публичный Метод

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
Результат Kurejito.Validation

Validate() публичный Метод

Validates this instance.
public Validate ( ) : ValidationResult
Результат ValidationResult