question

Sukhbir Singh avatar image
Sukhbir Singh asked Sukhbir Singh commented

Need to open Transaction application's print receipt screen

Hi @,

I am using clover connector SDK in my clover application. I want to open the Transaction application's receipt screen(Attached) from my clover application with the parameter Payment and Order Id. Please suggest if it is possible?

transactionsapplicationprintscreen.png

Also, I see that clover intent documents are not available at the place https://docs.clover.com/build/android-apps/intents/ Have clover relocated it?


Also, I know that the Clover connector provides a way to open print receipt screen for respective payment and order id with the help of following code:

var dror = new DisplayReceiptOptionsRequest();

dror.setPaymentId(this.payment.PaymentId);

dror.setOrderId(this.payment.OrderId);

cloverConnector.displayReceiptOptions(dror);


Please suggest if the payment connector provides the same or another way to open the print receipt screen to reprint the receipt for the respective payment and order id.


Thanks.

Clover Android SDKPrintPaymentConnectorIntents
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered Sukhbir Singh commented

"I am using clover connector SDK in my clover application."

Based on the rest of your question, I think you meant to say that you are using Payment Connector, not Clover Connector.

Assuming that is correct, have you tried - https://clover.github.io/clover-android-sdk/com/clover/sdk/v1/Intents.html#ACTION_START_PRINT_RECEIPTS? (merchant facing).


3 comments
10 |2000

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

Sukhbir Singh avatar image Sukhbir Singh commented ·

Hi @ Yes, I am using Payment Connector which is available in connector SDK. Also, I checked "https://clover.github.io/clover-android-sdk/com/clover/sdk/v1/Intents.html#ACTION_START_PRINT_RECEIPTS?" and found that this screen provides a printing functionality only by passing EXTRA_ORDER_ID. Is there any way to pass the Payment transaction ID in place of the Order id, Actually print should generate as per the transaction?

Also on this screen, some unwanted options(Highlight in the attached) are visible, Can we remove or hide them by using extra settings?

UnwantedReceipt.png


Also, if possible then this will be great if you suggest a way to open the screen as attached in the question. Where Merchant Receipt and Customer Receipt both options should be visible.

transactionsapplicationprintscreen.png

0 Likes 0 ·
unwantedreceipt.png (92.4 KiB)
David Marginian avatar image David Marginian ♦♦ Sukhbir Singh commented ·

That intent is handled by the orders app and I believe you must pass an order id. I do not believe there is a way to remove the options you highlighted. The only option I can think of is for you to generate a custom screen and use the Android SDK to print if you need that level of customization.

1 Like 1 ·
David Marginian avatar image David Marginian ♦♦ David Marginian ♦♦ commented ·

Start by posting the code you used to print.

1 Like 1 ·

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