CardType Property
This property specifies the type of the credit card specified in Number .
Syntax
ANSI (Cross Platform) int GetCardType();
int SetCardType(int iCardType); Unicode (Windows) INT GetCardType();
INT SetCardType(INT iCardType);
Possible Values
CC_VISA(0),
CC_MASTER_CARD(1),
CC_DISCOVER(2),
CC_AMEX(3),
CC_SWITCH(4),
CC_SOLO(5)
@property (nonatomic,readwrite,assign,getter=cardType,setter=setCardType:) int cardType; - (int)cardType; - (void)setCardType:(int)newCardType;
Possible Values
CC_VISA(0),
CC_MASTER_CARD(1),
CC_DISCOVER(2),
CC_AMEX(3),
CC_SWITCH(4),
CC_SOLO(5)
#define PID_DIRECTPAYMENT_CARDTYPE 2 INPAY_EXTERNAL void* INPAY_CALL InPay_DirectPayment_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INPAY_EXTERNAL int INPAY_CALL InPay_DirectPayment_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property specifies the type of the credit card specified in CardNumber.
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:
ccVisa (0) | Visa or Delta Card |
ccMasterCard (1) | MasterCard |
ccDiscover (2) | Discover Card |
ccAMEX (3) | American Express Card |
ccMaestro (4) | Maestro Card* |
ccSolo (5) | Solo Card* |
* 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 property is required.
This property is not available at design time.
Data Type
Integer