question

tombialy avatar image
tombialy asked David Marginian commented

Order and Receipt printout has null

When new order is created we are printing both order and receipt with the code below.


However, we see that:

1. Both Order and Receipt printouts have `Order null` printed out

2. Receipt also has Online: that points to the sandbox URL with null at the end.

`Online: https://sandbox.dev.clover.com/r/null`


How, can we control both (1) Order details (2) URL so that we can put business custom URL


new StaticReceiptPrintJob.Builder().order(o).build().print(context, CloverAccount.getAccount(context));
new StaticOrderPrintJob.Builder().order(o).build().print(context, CloverAccount.getAccount(context));



REST 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.

It looks like o is null, providing some context on what o is and how it is obtained would be helpful. Was the order created on the device? For receipt customization have you seen/tried https://docs.clover.com/docs/smart-receipts?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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