CardType Property
Indicates the results of the Luhn Digit Check algorithm.
Syntax
int GetCardType();
Possible Values
VCT_UNKNOWN(0), VCT_VISA(1), VCT_MASTER_CARD(2), VCT_AMEX(3), VCT_DISCOVER(4), VCT_DINERS(5), VCT_JCB(6), VCT_BANK_CARD(7), VCT_VISA_ELECTRON(8), VCT_SOLO(9), VCT_SWITCH(10), VCT_MAESTRO(11), VCT_CUP(12), VCT_LASER(13), VCT_VISA_PURCHASE(14), VCT_MCARD_PURCHASE(15), VCT_TEMPO_PAYMENTS(16)
Default Value
0
Remarks
This property is filled after a call to the ValidateCard method. Allowable values include:
ctUnknown (0) | The class could not determine the type of the card based on the CardNumber prefix and length. |
vctVisa (1) | Visa card. |
vctMasterCard (2) | MasterCard card. |
vctAmex (3) | American Express card. |
vctDiscover (4) | Discover Card |
vctDiners (5) | Diner's Club card (Carte Blanche, International, or enRoute - the CardTypeDescription will contain the full name). |
vctJCB (6) | Japan Credit Bureau card. |
vctBankCard (7) | Australian shared brand credit card (no longer in circulation). |
vctVisaElectron (8) | International Visa debit card (not available in US or Canada). |
vctSolo (9) | UK-based debit card, similar to the Visa Electron card. |
vctSwitch (10) | Another UK-based debit card. Sister to the Solo card. |
vctMaestro (11) | International debit card (owned and operated by MasterCard). |
vctCUP (12) | China Union Pay - China's only credit card organization. |
vctLaser (13) | Primary debit card used in Ireland. |
vctVisaPurchase (14) | Visa Purchasing Card. |
vctMCardPurchase (15) | MasterCard Purchasing Card. |
vctTempoPayments (16) | Tempo Payments Card (debit). |
vctFlexCache (17) | Chase Paymentech FlexCache Stored Value Cards. |
Note that this integer value is computed by the class, the actual value returned from the Global Transport Server will be contained in CardTypeDescription.
This property is read-only and not available at design time.
Data Type
Integer