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"
];
sharedController] device_enableBLEDeviceSearch:nil];
}
-(IBAction) startTransaction:(
id
)sender{
logTextView.text =
@""
;
RETURN_CODE rt = [[
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 = [[
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 = [[
sharedController] ctls_cancelTransaction];
if
(RETURN_CODE_DO_SUCCESS == rt){
[
self
appendMessageToResults:
@"CancelMSR/CTLS: OK."
];
}
}
#80152504-001 IDTech iOS SDK Guide for NEO2