EasyManua.ls Logo

IDTECH NEO2 - Page 42

Default Icon
153 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
32 Core Implementation NEO2: Objective-C
if (RETURN_CODE_DO_SUCCESS == rt)
{
[self appendMessageToResults: [NSString stringWithFormat:@"Get FM info: %@", result]];
}
}
-(IBAction) startBLE:(id)sender{
[self appendMessageToResults: @"Turning on BLE scanning"];
[[IDT_NEO2 sharedController] device_enableBLEDeviceSearch:nil];
}
-(IBAction) startTransaction:(id)sender{
logTextView.text = @"";
RETURN_CODE rt = [[IDT_NEO2 sharedController] device_startTransaction:1.00 amtOther:0 type:0
timeout:60 tags:nil forceOnline:false fallback:true];
if (RETURN_CODE_DO_SUCCESS == rt)
{
[self appendMessageToResults: @"Start Transaction Command Accepted. Please Swipe/Insert/Tap"];
}
}
-(IBAction) completeEMV:(id)sender{
logTextView.text = @"";
RETURN_CODE rt = [[IDT_NEO2 sharedController] emv_completeOnlineEMVTransaction:true
hostResponseTags:[IDTUtility hexToData:@"8A023030"] returnTags:nil];
if (RETURN_CODE_DO_SUCCESS == rt)
{
[self appendMessageToResults: @"Complete Transaction Command Accepted"];
}
}
-(IBAction) cancelTransaction:(id)sender{
logTextView.text = @"";
RETURN_CODE rt = [[IDT_NEO2 sharedController] ctls_cancelTransaction];
if(RETURN_CODE_DO_SUCCESS == rt){
[self appendMessageToResults:@"CancelMSR/CTLS: OK."];
}
}
#80152504-001 IDTech iOS SDK Guide for NEO2

Table of Contents

Related product manuals