Helcim Logo Support & Tutorials

© Copyright 2006-2018 Helcim Inc.

All Rights Reserved.

POS Hybrid Integration » iOS »

iOS Overview

Simply Import the header file to start using the class.

*Special Notes

  • You will need to import the SystemConfiguration framework.

Creating and initializing the class

// CREATE CLASS
hcmTerminal *terminal;

// INITIALIZE CLASS
terminal = [[hcmTerminal alloc] init];

Settings needed for the class


// SAVE SETTINGS
terminal.terminalIp = @"127.0.0.1";
terminal.terminalPort = 8080;
Processing different types *Some require you to set amount,clerkId,invoiceNumber

// PUCHASE
terminal.amount = 100;
terminal.clerkId = 525;
terminal.invoiceNumber = 111;
[terminal hcmPurchase];

// REFUND
terminal.amount = 100;
terminal.clerkId = 525;
terminal.invoiceNumber = 111;
[terminal hcmRefund];

// VOID
[terminal hcmVoid];

// PREAUTH
terminal.amount = 100;
terminal.clerkId = 525;
terminal.invoiceNumber = 111;
[terminal hcmPreAuth];

// CAPTURE
terminal.amount = 100;
terminal.clerkId = 525;
terminal.invoiceNumber = 111;
[terminal hcmCapture];

// SETTLE
[terminal hcmSettle];

// REPRINT
[terminal hcmRePrint];
Testing Connection *make sure ip and port are already set

// TEST CONNECTION
[terminal hcmTestConnection];

The result from testing the connection will be inside the connectionLog property