Eftpos integration

The issue currently making card terminal integration tricky is the ability to listen to the terminal responses as beleive they generally return a sting of responses, ie enter pin, processing, approved or denied.
Managed to get the sale total sent over to my dev PQD machine but hit a wall at listening to re responses which are not direct responses to the original post.

Hmm… As of this week, I will finally be able to start focusing this integration. I’m new to this API stuff so I’ll try my best to do as much as I can, and with help I may be able to achieve it :D. Lets do dis !

1 Like

@JTRTech you’ll need a custom device that listens a port (or where that device connects to) and trigger sambapos events based on data received through port. Pretty much same as what filemonitor device does.

2 Likes

I did read the post about making a custom device, not had chance to do anything with it yet though. Is on the list.

Hello All

Well I have the latest terminal for use here in Oz and have been buried deep into the SDK manuals! The System has a full FILE API - which could be used with the proposed File Monitor ACTION/EVENT @emre has been considering.

Here is the flow:

The question I have:
Using the HTML WIDGET can we use some sort of JSCRIPT to talk to the POSEFT.OCX?

Speaking with the Tech Dept., the bad news is there is a Full Accreditation you must pass! :cold_sweat: and UNFORTUNATELY you cannot bypass some of the conversational data flows (2-way).

1 Like

So @Jesse (I am pulling all resources here :worried:)

What did you actually achieve back here?

Are you suggesting we can use some “external” control on the above “POSEFT/OCX” ActiveX control where a dialogue, almost 3 way SambaPOS <-> Jscript <-> OCX, can be achieved?

The post you referred too is specifically ONLY for HTML Widget nothing outside of that.

OK I must have misunderstood your post, apologies. I am very interested in how far we can push the HTML Widget as most things in life revolve around the “Browser”.

Ummm more interesting reading, trying to connect the dots…

1 Like

Ok this link has some possibilities :hushed:

@emre is this possible in SambaPOS now? I am just unsure above the references to script block format and place the object tags in the ASP.NET form.

Help needed in the translation :confused: Enough from me now, over to…?

I know we can hook a few things inside JS using ActiveX, and from that link, this is the part I would concentrate on:

  var clock = new ActiveXObject("Clocks.clock");
  var extendedClockEvents = clock.ExtendedClockEvents();
  // Here you assign (subscribe to) your callback method!
  extendedClockEvents.ScriptCallbackObject = clock_Callback; 
  ...
  function clock_Callback(time)
  {
    document.getElementById("text_tag").innerHTML = time;
  }

An example using FileSystemObject …

//Load ActiveObject Tools
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.FolderExists() ...
fso.CreateFolder() ...

And using ADODB (ODBC drivers for other DB Engines such as MySql) …

  var conn = new ActiveXObject("ADODB.Connection"); 
  var rs = new ActiveXObject("ADODB.Recordset"); 

  conn.open = conString;

  var sSQLStatement = "SELECT count(*) FROM art_articles"; 
  rs.Open(sSQLStatement, conn);

EDIT: unfortunately, those examples initiate actions, they don’t create “listeners” which might be more what you are looking to do… not sure…

2 Likes

Have been Googling Event Listeners - this is a side article but relevant to this topic and other ongoing discussion.

The URL bit leaves off “…including Event Handling
A worth while read!

1 Like

Hi Shivan, have you figured out the eftpos integration with samba?

Hi Compwize,

Apologies for the delayed response.

We have a working demo of the an integration with Tyro.

But there are still some bugs and tests we are doing to get accredited.

We are still working with Samba to get this one, but at this stage there is nothing live.

Once we have a live beta test, we’ll let you know

Hi Shivan, I was wondering if you were able to complete this project?

This would be such an amazing feature for us Australians!

-Kern

Hi Shivan,

Same for us in NZ :grin: