Print Receipt WiFi Integration
Processing a Print Receipt Request
To print a receipt using the WiFi Integration method, establish a WebSocket connection and send a PrintImage
method along with the base64-encoded receipt data to Easypay's service in real-time.
Example Code:
Explanation:
Method:
"PrintImage"
Purpose: Sends the base64-encoded receipt image to Easypay for printing.
Parameters:
method
: Specifies the action to perform, which is"PrintImage"
in this case.data
: The receipt image encoded in base64 format.
Processing Open Cash Drawer Request
Explanation:
Method:
"OpenDrawer"
Purpose: Sends a request to Easypay to open the physical cash drawer connected to the printer. This allows for automated control of the cash drawer without manual intervention.
Parameters:
method
: Specifies the action to perform, which is"OpenDrawer"
in this case.No additional parameters are required for this method.
Last updated