K
K
KzLIFE2014-07-26 16:38:25
JavaScript
KzLIFE, 2014-07-26 16:38:25

Sync with bill acceptor using javascript?

There is a terminal to which the bill acceptor is connected via the COM1 port, I want to write a program for accepting payments. I saw on the QIWI terminals there is a maratl.exe shell and a mountain of JS scripts, how can I synchronize the bill acceptor through javascript (since I only understand it) can there be a ready-made solution with api?
type:
client.exe
payment.html
setInterval(function(){getAmount()}), 1000);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BiSeTrojanov, 2014-07-27
@KzLIFE

In maratl.exe, the bankend does everything, and JS communicates only with the maratl program, which, in turn, pulls the bill. If you want to control the bill acceptor from under the JS browser (which is not the best idea), you need to implement the API and the web server. In C#, there are already written modules for Cashbox bill acceptors. You can write a webserver in C# that will handle billet requests submitted to this webserver.
If you implement this, do not forget that the bill acceptor has a bunch of callbacks (the bill got into the first gateway; the bill then got into the cashbox; etc).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question