question

ismdcf avatar image
ismdcf asked Bryanne Vega answered

Order printing fails on Network Printer

I am using the following code to invoke an order receipt print job.

new StaticOrderPrintJob.Builder().order(order).build().print(thisActivity, account);

Running the app on our dev kit (Clove mini) configured with a local Star printer (TSP100iii) via USB prints the order receipt without an issue (same with the clover's printer). We are unable to test it on a network printer as we don't have one.

But on production environment where the merchant has configured multiple network order printer (for different labels), label printing fails without a print failure notifications.

The order is placed using the clover REST API and is attached to a custom order type
Is there any possible thing that is ignored for this print failure.


OrdersREST APIPrint
1 comment
10 |2000

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

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

What kind of printer. You say "order printer" then "label printing fails". Is it an order printer or a label printer? What's the error message? Who is the merchant that's experiencing the problem? What app are they using to printer the order? Has the merchant called customer support? What's the merchant's network topology? Has the merchant verified network connectivity to the printer?

1 Like 1 ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered
Try grabbing the order from the Rest API, then using Order order = new Order(<json of order here>)

& then try to do a build job.
10 |2000

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

Welcome to the
Clover Developer Community