I am interested in writing a plug-in for SambaPOS that upon closing a ticket executes a custom action. The action could be arbitrary, but in any case would involve network operation. It would be great if the plug-in could be configured from within SambaPOS, but it is not a requirement. Can you please advise how to achieve this? Ultimately, I may be interested in offering the plug-in in the SambaPOS marketplace.
V4 will not receive further updates so something like this would be nearly impossible for v4. With v5 its probably possible now to do what your wanting without having to code a plugin we have powerful scripting support in v5.
The message to the government needs to be exactly as per the specification. SOAP message using client SSL certificate for authentication, not sure if that is available in the scripting language. Anyway, can you please point me at some documentation?
This forum is the best documentation. Do some searches in v5 categories also you can find lots of features listed in the v5 features compilation thread. V5 release category also documents features as they are released.
I may be wrong about the client SSL authentication. I am quickly looking at the spec and it rather seems to be used for computing an HMAC of the message.
We should be able to use jscript to send a SOAP request with SSL Certificate.[quote=“Vladimir_Lapacek, post:12, topic:11354”]
Are there some docs for the scripting language?
[/quote]
We are using JSCRIPT so you might start studying that. You can install v5 and use it in trial mode for testing before purchase. No need to purchase until you decide if you want to go live or not. Trial mode is unrestricted for 500 tickets.
My PMS topic also has allot of info from while I was learning and also some scripts you might be able to take parts from if you adjust the formatting from JSON to XML