Helcim Logo Support & Tutorials

© Copyright 2006-2018 Helcim Inc.

All Rights Reserved.

POS Hybrid Integration » C# »

C# Overview

 

To use the class, add a reference in your application.

C# does not require any extra dlls. We use microsofts included .Net Sockets.

Creating and initializing the class

// CREATE CLASS
hcmTerminal terminal;

// INITIALIZE CLASS
terminal = new hcmTerminal();

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