Print Receipt In-App Integration
Processing a Print Receipt Request
To print a receipt using the In-App Integration method, utilize Easypay's internal PrintImage
handler to send the base64-encoded receipt data directly within the Easypay app environment.
Example Code:
Explanation:
Method:
"PrintImage"
Purpose: Sends the base64-encoded receipt image to Easypay's
PrintImage
handler within the Easypay app 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 within the Easypay app to open the physical cash drawer. This method is suitable for scenarios where user interaction within the app environment initiates the cash drawer opening.
Parameters:
method
: Specifies the action to perform, which is"OpenDrawer"
in this case.No additional parameters are required for this method.
Last updated