Home >Backend Development >PHP Tutorial >javascript - How to drive the receipt printing machine after payment?
WeChat public account, after WeChat payment, how to automatically drive the receipt printing machine to print the corresponding order?
WeChat public account, after WeChat payment, how to automatically drive the receipt printing machine to print the corresponding order?
The principle should be to call the api or sdk provided by the printer
1. Check whether the receipt machine type is a network port or a USB port
2. The USB port must be installed with a print driver
3. You need to print through the printing API provided by the receipt machine, encapsulate the printing API command yourself, and send the print data to Just use a printer! The data can be formatted before sending!