question

labventures avatar image
labventures asked chanel Deactivated commented

Print web orders

We developed a web application integrated with the Clover API, to insert orders from the web.We have successfully created orders via the API, but we were unable to automatically print them.

In an answer to our questions you told us we need to create an Android app with the Clover SDK, Listen to incoming orders and send to the printer via the PrintJob classes.

We tried the following solutions:

  1. Use a broadcast receiver on ACTION_ORDER_CREATED
.
    In this case I have 2 problems:
    1. I get an invalid ID on the event which results in an empty object when using orderConnector.getOrder
    2. This event triggers only when I add orders from the Register app, but not from the REST API.
  2. Use AppNotificationReceiver - I’m successfully sending the notification and gets a 200 response, but the receiver on the Android app never triggers.
(https://apisandbox.dev.clover.com/v3/apps/M1PQGMQYFXCG6/merchants/P7EWCVM316RDY/notifications)
* I’m testing on Clover Station 2018 emulator

The question is, what is the proper way to retrieve new order objects for the PrintJob?
SandboxPrint
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

Welcome to the
Clover Developer Community