Home >Backend Development >PHP Tutorial >javascript - How to drive the receipt printing machine after payment?

javascript - How to drive the receipt printing machine after payment?

WBOY
WBOYOriginal
2016-08-04 09:19:281310browse

Problem Scenario

WeChat public account, after WeChat payment, how to automatically drive the receipt printing machine to print the corresponding order?

Reply content:

Problem Scenario

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn