I have made a wifi ticket system in Python/Django (I wish I had the skills to make it in C#). In this system I can import wifi codes as csv files. When I call a link, a ticket is printed and the printed codes are removed from the database.
Within SambaPOS, on the Main Menu screen, click Samba Market. Then install the URL Printer module (free). Restart SambaPOS for it to take effect, then look at your Printers section again - you will see the URL printer there.
I already started to add a rule for every ticket type, and I could not figure it out with the order tags. The work was a bit tedious, but now everything is settled everything works beautifully (thanks to the great feature of the url printer!)
I now installed the Django app, using CherryPy server as a Windows service. In case somebody wants to check the code please have a look here:
I use Pfsense (a Freebsd router distro) as router and captive portal. In Pfsense I can create vouchers (wifi codes) and export these as .csv
Thanks to the excellent feature from Sambapos (urlprinter) I can print tickets directly from our pos. We have 10 different ticket types, from 2 hours to one year. Because I have too little knowledge of the printer template system I created 10 different url printers. I am sure this can be done easier (see the reply of @emre above).
I use action “order added to ticket”, so when the ticket is clicked it is directly printed out.