Card Type
Use this type to define the customer's credit card information.
Remarks
The customer's credit card information is described by this type.
Example: Setting the fields:
Card card = new Card(); card.Number = "4444333322221111"; card.ExpMonth = 12; card.ExpYear = 2010; card.CVV = "123"; DirectPayment1.Card = card;Example: Using the Constructors:
DirectPayment1.Card = new Card(CardTypes.ccVisa, "4444333322221111", 12, 2010, "123");
Fields
CardType CardTypes |
This field specifies the type of the credit card specified in Number. This property contains the type of the credit card (Visa, MasterCard, Amex, etc.) specified during the current transaction. The valid card types for this property are listed below:
* Note: CurrencyCode must equal "GBP" to use this CardType. You may set the StartMonth, StartYear, and IssueNumber required for these cards via the Config method. This field is required. | ||||||||||||
CVV String |
Three digit security code on back of card (optional). This alphanumeric field contains the three digit Visa "Card Verification Value" (CVV), MasterCard "Card Verification Code" (CVC), or four-digit American Express "Card Identification Number" (CID). This value appears as additional characters embossed on the card signature line following the credit card account number on the back of the credit card. This is an optional field which can be used to determine if the customer is actually in possession of the credit card. Even if the CVV data is incorrect, the transaction may still be authorized. It is up to the merchant to examine the field and decide whether to honor the transaction or not. Character length and limitations: Up to four single-byte numeric characters. This field is optional. | ||||||||||||
ExpMonth Integer |
This field contains the expiration month of the customer's credit card. The valid range for this property is between 1 and 12. This field is required. | ||||||||||||
ExpYear Integer |
This field contains the 4 digit expiration year of the customer's credit card. This field is required. | ||||||||||||
Number String |
This field contains the customer's credit card number for this transaction. Character length and limitations: numeric characters only - no spaces, dashes or punctuation. Must conform with modulo and length required by each credit card type. This field is required. |
Constructors
[VB.NET] Public Card() [C#] public Card();
[VB.NET] Public Card(ByVal CardType As CardTypes, ByVal Number As String, ByVal ExpMonth As Integer, ByVal ExpYear As Integer) [C#] public Card(CardTypes cardType, string number, int expMonth, int expYear);
[VB.NET] Public Card(ByVal CardType As CardTypes, ByVal Number As String, ByVal ExpMonth As Integer, ByVal ExpYear As Integer, ByVal CVV As String) [C#] public Card(CardTypes cardType, string number, int expMonth, int expYear, string CVV);