question

whosbuddy avatar image
whosbuddy asked fesal81224 commented

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.

OrdersClover FlexPrintDevKit
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.

fesal81224 avatar image fesal81224 commented ·

I also have problem. Please help!

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