TestMode Property
Turns test mode on and off for transactions sent to the current Gateway .
Syntax
ANSI (Cross Platform) int GetTestMode();
int SetTestMode(int bTestMode); Unicode (Windows) BOOL GetTestMode();
INT SetTestMode(BOOL bTestMode);
@property (nonatomic,readwrite,assign,getter=testMode,setter=setTestMode:) BOOL testMode; - (BOOL)testMode; - (void)setTestMode:(BOOL)newTestMode;
#define PID_ECHECK_TESTMODE 63 INPAY_EXTERNAL void* INPAY_CALL InPay_ECheck_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INPAY_EXTERNAL int INPAY_CALL InPay_ECheck_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
FALSE
Remarks
You can use this property to set a test mode flag that will be sent in an authorization request. Not all Gateways support test modes. If you set the TestMode property to True and the current Gateway does not support it, the class will fails with an error.
Data Type
Boolean