question

ahmed2403 avatar image
ahmed2403 asked David Marginian Deactivated edited

Trigger OnSaleResponse without user choosing a receipt option

How can we trigger the OnSaleResponse listener without the user/customer of the Clover Mini choosing a receipt option e.g.no receipt, print receipt, email, sms.

Currently, our OnSaleResponse listener is not hit in our Windows POS code until a user chooses a receipt type. Some cases the user may not acknowledge the receipt types and we cannot leave our ePos in hanging/waiting state. Is there any way of calling OnSaleReponse manually if it's not triggered by the Clover Mini side?

Thanks

Clover Mini
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

We have a collection of best practices you should read through - https://docs.clover.com/clover-platform/docs/remote-pay-sdk-best-practices.

Your POS should be utilizing OnDeviceActivityStart/End. You can use these messages to not only inform the merchant of the state of the Clover device, but also allow the merchant to take action on the customer's behalf. In the case of receipt options OnDeviceActivityStart will include a payload of the available input options. You can use the input options to show a screen in your POS which will display the options (no receipt, email, etc.) and allow the merchant to take action (input options can be invoked by utilizing the InvokeInputOption API on CloverConnector). You can also use these message to implement a timeout on the receipt option screen (and automatically select no receipt). Another option is to completely disable receipt selection if your merchants don't care about that (can be done via transaction settings - https://docs.clover.com/clover-platform/docs/using-per-transaction-settings.

10 |2000

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

ahmed2403 avatar image
ahmed2403 answered David Marginian Deactivated edited

Thanks for your reply. So I have used the below code on both OnDeviceActivityStart and OnDeviceActivityEnd but it shows this message box to the ePos user numerous times, even when the Clover device hasn't timed out. Also which attributes are handling when the user has to enter their card, after they've paid etc? Is there any docs on this, I wasn't able to find anything.


If deviceEvent.DeviceEventState.TIMED_OUT Then

MessageBox.Show("Timed Out")

End If


Thanks

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.

David Marginian avatar image David Marginian ♦♦ commented ·

You may see the same event twice one for the start and one for the end. You shouldn't be seeing timed out unless there was actual a timeout. I can't reproduce what you are seeing locally.

https://docs.clover.com/clover-platform/docs/ui-state-messages

https://docs.clover.com/clover-platform/docs/ui-state-reference



0 Likes 0 ·

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