V
V
Vasily Trotsky2019-01-06 14:32:49
Electronic commerce
Vasily Trotsky, 2019-01-06 14:32:49

How to integrate the ATOL cash register with the site?

Greetings, gentlemen and ladies!
I am a bearded "embedder-sishnik" who has not come across the web closely (and naively thought that I would not have to) I
open a white online store with a 54-fz cash register to sell my crafts. All this is a micro business, so in order to save money, it was decided to put a cash register at home and integrate it with the site on our own.
As I see it: The ATOL 11f/30f fiscal registrar is connected to the raspberry pi via usb, the Atola driver is running there, and we move from the low-level API with bits and bytes to a higher-level one. Fine.
Then the question arises how to organize a queue of checks and transfer them from the site to the cashier?
The first thought that came to my mind was email. The acquiring was successful, the site sends a message with the contents of the check to a specific address. The script on the raspberry pi checks this mail every 15 minutes, parses the message and fiscalizes checks through the api driver. Further, OFD seems to promise to send an electronic check to the client by SMS or email if the corresponding field in the check has been filled in.
The scheme seems to be working, but somehow not beautiful. In fact, there is no authorization and encryption (although of course you can encrypt the body of the message, this is not a problem), but it's still not beautiful!
Please suggest a better implementation of this scheme.
CMS is planned by OpenCart, but it doesn't matter. there is no difference where to start) I just googled a popular CMS for an online store.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
D
d-stream, 2019-01-06
@d-stream

In general, people are trampling on a rake on more "standardized" configurations (antivirus slams Atolov's drivers, atol bucks on magic number, etc.) so the path was not chosen without difficulties)
Offhand: in the 10th branch of the driver (and others are already flying to die) there is web server with which you can communicate more or less easily and comfortably (json tasks). If you manage to start it on a raspberry, it will be easier.
The second problem is the reverse channel: it is necessary somehow, within the framework of the KKM skills, to give him the opportunity to report OFD (otherwise, in a month, the KKM will turn into a pumpkin) - that is, you need ethernet-over-usb
Well, the painful moment of the outlined scheme is offline interaction ... which does not at all guarantee that at the time of sale the check will break through (communication failure, the check tape ran out, the opening / closing of the shift was forgotten, the homeless in the entrance squeezed the vitukha / optics, etc.) well and, accordingly, penalties from the fiscals ...
imho in this case, still a less painful option is the use of all sorts of interlayers, which, like, guarantee the operability of all this heap (at least the Atolov cloud, at least Yandex cash registers and others)

B
boss_lexa, 2019-01-06
@boss_lexa

studied the topic, the protocols for integration with cash registers are all low-level - it will take a lot of effort to make stable work - it's not worth it for the sake of one cash desk.
the law says something like this
Therefore, if you have few orders - the easiest way to beat the check manually and send a photo to the buyer's mail once a day, for example
, I also came up with this semi-automatic option
1) After each purchase on the site, a new task is added to the table for generating checks.
2) The employee who is responsible for breaking through the checks receives a notification about a new task.
3) He opens it, sees the amount.
4) On a push-button checkout, he punches a check for the required amount
5) The cashier generates a paper check
6) The employee finds the numbers of FD (up to 10 digits) and FPD (up to 10 digits) on a paper check
7) Drives the numbers of FD and FPD from the check into the formation task checks.
8) The check from the task table is sent to the buyer's email / sms, You can substitute all the other details yourself - for example, the TIN and FN number do not change
9) The task is completed The
easiest way is to rent it does not cost so much
https://e-ofd.ru/ = 63000 rubles for 36 months (together with FN) = 1750 rubles / month
https://pay54.ru/ = 2000 rubles / month ://online.kit-invest.ru/ here you can buy a cash register and FN and rent it for 800 rubles / month - a place in a DC with stable electricity and the Internet and ready-made UPD integration Sending a check through the cash desk turned out to be even easier https://www .youtube.com/watch?v=FAIfTD2frxg
e-ofd for SMS = 80 kopecks, by mail = free of charge

T
Timofey Gorshkov, 2019-01-07
@TimGor

In addition to checking receipts, there are other mandatory operations with the cash register (opening and closing a shift, printing a return receipt), and the set of check fields itself changes regularly, for example, from January 1, you need to support FFD 1.1
A good option is to use a service layer with a ready-made API for CCP
Then you can beat checks both automatically for online payments, and manually using a button / link that is integrated into the site admin panel for processing orders with cash payment.
Here is an online service with api for cash registers for 1000 rubles / month https://www.ekam.ru/page/online-api
It works just on the basis of raspberry pi and Atol 30f fiscal registrar
For opencart there is a ready-made module https://support. ekam.ru/hc/ru/articles/11500288705...
There are, of course, cash desk rentals in the cloudhttps://chekonline.ru 1900r/month also with ready integration into opencart.
And the most famous ATOL on the market online at 3100r / month

V
Vasily Trotsky, 2019-01-07
@mrsom

Can the receipt printer be turned off at Atol 30F? After all, it is not needed for an online store.
In principle, raising ethernet over usb on Linux does not bother me, like other moments with connecting and configuring equipment.
The question was rather about how best to organize the transfer of checks from the site to the cashier (and collect them in a queue). It is in the part of web programming that I have practically no experience.

M
Mini4, 2019-01-07
@Mini4

https://kassa.komtet.ru - Ready-made solutions for various types of online stores based on popular CMS.
We work with all types of payment on the site.

C
clodex, 2019-01-07
@clodex

Of the cheap options for cloud cash desks, there is also https://itkassa.ru

E
Ekaterina, 2019-01-07
@Toyana

I went the simplest way - I rented a ticket office directly from Atoll. No regrets - no headaches. In addition, I use 4 more cash desks with which couriers travel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question