C# 클래스 Kurejito.Payments.PaymentCard

Represents a credit or debit card used for online payments
파일 보기 프로젝트 열기: Kurejito/Kurejito 1 사용 예제들

공개 메소드들

메소드 설명
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