9 #import <Foundation/Foundation.h>
11 #import "IDTMSRData.h"
12 #import "APDUResponse.h"
13 #import "IDT_Device.h"
14 #import "IDTEMVData.h"
24 - (void) dataInOutMonitor:(NSData*)data incoming:(BOOL)isIncoming;
45 - (void) emvTransactionData:(
IDTEMVData*)emvData errorCode:(
int)error;
74 - (void) pinpadData:(NSData*)value keySN:(NSData*)KSN event:(EVENT_PINPAD_Types)event;
83 @interface IDT_BTPay : NSObject <IDT_Device_Delegate>{
87 @property(strong) id<IDT_BTPay_Delegate> delegate;
98 +(NSString*) SDK_version;
118 +(void) connectUSB:(BOOL)isUSB;
139 -(RETURN_CODE) config_getDateTime:(NSString**)response;
153 -(RETURN_CODE) config_getInterfaceDeviceSN:(NSString**)response;
169 -(RETURN_CODE) config_getLanguageType:(NSUInteger**)response;
191 -(RETURN_CODE) config_getModelNumber:(NSString**)response;
202 -(RETURN_CODE) config_getSerialNumber:(NSString**)response;
213 -(RETURN_CODE) config_getTerminalIdentification:(NSString**)response;
227 -(RETURN_CODE) config_setBluetoothAddress:(NSString*)address;
240 -(BOOL) config_setCmdTimeOutDuration: (
int) nSecond;
252 -(RETURN_CODE) config_setDateTime:(NSString*)date;
266 -(RETURN_CODE) config_setInterfaceDeviceSN:(NSString*)sn;
282 -(RETURN_CODE) config_setLanguageType:(LANGUAGE_TYPE)lang;
294 -(RETURN_CODE) config_setSerialNumber:(NSString*)strSN;
310 -(RETURN_CODE) config_setTerminalIdentification:(NSString*)sn;
322 -(void) config_stayConnected:(BOOL)stayConnected;
340 -(RETURN_CODE) device_getFirmwareVersion:(NSString**)response;
450 -(NSString *) device_getResponseCodeString: (
int) errorCode;
467 -(bool) device_isConnected:(IDT_DEVICE_Types)device;
489 -(RETURN_CODE) device_sendBeep:(
unsigned short*)beep numberOfTones:(
int)num;
505 -(RETURN_CODE) device_sendDataCommand:(NSData*)cmd calcLRC:(BOOL)lrc response:(NSData**)response;
517 -(RETURN_CODE) device_restoreMaskAndEncryptionDefaults;
535 -(RETURN_CODE) device_setExpMasking:(BOOL)mask;
553 -(RETURN_CODE) device_setPANMaskingCharacter:(
char)maskChar;
566 -(RETURN_CODE) device_setPostPANClearDigits:(
int)clearDigits;
580 -(RETURN_CODE) device_setPrePANClearDigits:(
int)clearDigits;
594 -(RETURN_CODE) device_rebootDevice;
606 -(RETURN_CODE) device_uploadJPEG:(NSData*)picture;
667 -(RETURN_CODE) emv_completeOnlineEMVTransaction:(EMV_AUTHORIZATION_RESULT)result hostResponseTags:(NSMutableDictionary *)tags responseTags:(
IDTEMVData**)response;
679 -(RETURN_CODE) emv_getEMVKernelVersion:(NSString**)response;
692 -(RETURN_CODE) emv_getAllTags:(NSDictionary**)data;
707 -(RETURN_CODE) emv_getTag:(NSString*)tagName tagData:(NSData**)data;
718 -(RETURN_CODE) emv_removeApplicationData:(NSString*)AID;
731 -(RETURN_CODE) emv_removeCAPK:(NSString*)rid index:(NSString*)index ;
746 -(RETURN_CODE) emv_removeCRL:(
CRLEntry)key;
758 -(RETURN_CODE) emv_removeCRLUnit:(
CRLEntry)key;
768 -(RETURN_CODE) emv_removeTerminalData;
780 -(RETURN_CODE) emv_retrieveAIDList:(NSArray**)response;
796 -(RETURN_CODE) emv_retrieveApplicationData:(NSString*)AID response:(
ApplicationID**)responseAID;
811 -(RETURN_CODE) emv_retrieveCAPK:(NSString*)rid index:(NSString*)index response:(
CAKey**)response;
826 -(RETURN_CODE) emv_retrieveCAPKList:(NSArray**)response;
853 -(RETURN_CODE) emv_retrieveCRLForRID:(NSString*)rid response:(NSArray**)response;
863 -(RETURN_CODE) emv_retrieveCRLList:(NSMutableArray**)response;
881 -(RETURN_CODE) emv_retrieveTerminalData:(
TerminalData**)response;
915 -(RETURN_CODE) emv_setCAPK:(
CAKey)key;
927 -(RETURN_CODE) emv_setCRL:(
CRLEntry)key;
1004 -(RETURN_CODE) emv_startEMVTransaction:(
float)amount otherAmount:(
float)amtOther timeout:(
int)timeout transactionType:(
unsigned char)type additionalTags:(NSMutableDictionary *)tags;
1027 -(RETURN_CODE) icc_exchangeAPDU:(NSData*)dataAPDU response:(
APDUResponse**)response;
1044 -(RETURN_CODE) icc_exchangeEncryptedAPDU:(NSData*)dataAPDU ksn:(NSData*)ksn response:(
APDUResponse**)response;
1058 -(RETURN_CODE) icc_getAPDU_KSN:(NSData**)ksn;
1091 -(RETURN_CODE) icc_getICCReaderStatus:(
ICCReaderStatus**)readerStatus;
1106 -(RETURN_CODE) icc_powerOffICC:(NSString**)error;
1123 -(RETURN_CODE) icc_powerOnICC:(NSData**)response;
1139 -(RETURN_CODE) icc_powerOnICC:(
PowerOnStructure)options response:(NSData**)response;
1160 -(RETURN_CODE) lcd_showJPEG:(
int)X0 Y0:(
int)Y0 X1:(
int)X1 Y1:(
int)Y1;
1177 -(RETURN_CODE) lcd_displayMessage:(NSString*)line1 line2:(NSString*)line2 line3:(NSString*)line3 line4:(NSString*)line4;
1189 -(RETURN_CODE) lcd_enterSleepMode;
1201 -(RETURN_CODE) lcd_setIdleTimeForSleep: (
int) seconds;
1214 -(RETURN_CODE) msr_cancelMSRSwipe;
1232 -(RETURN_CODE) msr_getCardDataEncryptedAlgorithm:(NSString**)response;
1248 -(RETURN_CODE) msr_getEncryptMSRFormat:(NSString**)response;
1266 -(RETURN_CODE) msr_setCardDataEncryptedAlgorithm:(
int)encryption;
1283 -(RETURN_CODE) msr_setEncryptMSRFormat:(
int)encryption;
1304 -(RETURN_CODE) msr_startMSRSwipeWithDisplay:(NSString*)line1 line2:(NSString*)line2 line3:(NSString*)line3;
1320 -(RETURN_CODE) pin_cancelPin;
1446 -(RETURN_CODE) pin_getAmount:(
int)minLength maxLength:(
int)maxLength messageID:(
int)mID language:(LANGUAGE_TYPE)lang;
1470 -(RETURN_CODE) pin_getCardAccount:(
int)minLength max:(
int)maxLength line1:(NSString*)line1 line2:(NSString*)line2;
1492 -(RETURN_CODE) pin_getFunctionKey;
1516 -(RETURN_CODE) pin_getPinLength:(NSData**)response;
1544 -(RETURN_CODE) pin_getPINpadStatus:(NSData**)response;
1675 -(RETURN_CODE) pin_getEncryptedData:(BOOL)lastPackage minLength:(
int)minLength maxLength:(
int)maxLength messageID:(
int)mID language:(LANGUAGE_TYPE)lang;
1704 -(RETURN_CODE) pin_getEncryptedPIN:(NSString*)account keyType:(PIN_KEY_Types)type line1:(NSString*)line1 line2:(NSString*)line2 line3:(NSString*)line3;
1830 -(RETURN_CODE) pin_getNumeric:(
bool)maskInput minLength:(
int)minLength maxLength:(
int)maxLength messageID:(
int)mID language:(LANGUAGE_TYPE)lang;
1847 -(RETURN_CODE) pin_setPinLength:(
int)minLength maxLength:(
int)maxLength;
1859 -(bool) isConnected;
1866 -(void) attemptConnect;
void deviceDisconnected()
Fires when device disconnects.
Definition: IDTMSRData.h:36
Definition: IDTCommon.h:164
Definition: APDUResponse.h:14
Definition: IDT_BTPay.h:19
Definition: IDTCommon.h:14
Definition: IDTCommon.h:43
void deviceConnected()
Fires when device connects. If a connection is established before the delegate is established (no del...
Definition: IDTCommon.h:67
Definition: IDTCommon.h:132
Definition: IDT_BTPay.h:83
Definition: IDTCommon.h:26
Definition: IDTCommon.h:93
id< IDT_BTPay_Delegate > delegate
Definition: IDT_BTPay.h:84
Definition: IDTEMVData.h:16