question

whosbuddy avatar image
whosbuddy asked ·

order.setNote() updates order object but doesn't print on clover flex 2 dev kit

As mentioned in https://community.clover.com/questions/11034/adding-additonal-details-to-the-payment-receipt.html I'm using the current workflow to try and display a note on my custom receipt:

OrderConnector mOrderConnector = new OrderConnector(context, CloverAccount.getAccount(context), null);
 
Order order = mOrderConnector.getOrder(orderId);
order.setNote("YOUR NOTE HERE");
mOrderConnector.updateOrder(order);

But this code only updates the order object, and doesn't appear when the payment flow has ended; the user clicks clover's print receipt button.

The only way I've been able to correctly display the order note is using:

new StaticPaymentPrintJob.Builder().paymentId(orderId).order(order).build().print(context, CloverAccount.getAccount(context));

However this isn't an optimal user experience for my payment flow.

* All other receipt configurations listed in setup > payment receipts work properly. When the "order note" checkbox is selected, the preview button, in Payment Receipt Appearance even displays the receipt accurately.

OrdersPrintClover FlexDevKit
1 comment
10 |2000 characters needed characters left characters exceeded

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

I also have problem. Please help!

0 Likes 0 · ·

0 Answers

· Write an Answer

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