question

jamesharbert avatar image
jamesharbert asked racheladmin Deactivated commented

Print reciepts automatically when using cloudpay display

I have a customer running cloudpay display. When they send the transaction and it finalizes they want the receipt to print with no customer intervention (no need to select text me a receipt or email me).

I enabled the options for “automatically print customer receipt after each order and even tried the skip receipt screen and begin next transaction boxes however when just the first is checked the text/email option still comes up. When I select the second it skips the printing all together.
PrintCloud Pay Display
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

racheladmin avatar image
racheladmin Deactivated answered racheladmin Deactivated commented
In terms of achieving the desired outcome (always print paper receipt without customer touching Clover device), you could have the merchant unselect those payment receipt settings and implement a "always print" setting in your POS. If the merchant has "always print" enabled in your POS, you could programmatically invokeInputOption to print when the Receipt Options screen is displayed. Something like:

if (deviceEvent.eventState == clover.remotepay.DeviceEventState.RECEIPT_OPTIONS && alwaysPrintSetting === true) {
  for (var option of deviceEvent.inputOptions) {
    if (option.description == "Print") {
      this.cloverConnector.invokeInputOption(option);
      break;
    }
  }
}
5 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.

jamesharbert avatar image jamesharbert commented ·
Thank you. would this be this compatible with Cloudpay display?
0 Likes 0 ·
racheladmin avatar image racheladmin jamesharbert commented ·

Yes. The deviceEvent is returned in ICloverConnectorListener#onDeviceActivityStart. https://clover.github.io/remote-pay-cloud-api/1.4.2/remotepay.ICloverConnectorListener.html

0 Likes 0 ·
theguy avatar image theguy racheladmin commented ·

We have implemented your suggestions above. But it looks like the listener callback ICloverConnectorListener#onDeviceActivityStart is not triggering when the printer option is display in the clover screen.

Here's the snippet that we are using. It's straight from the example provided by clover SDK :)

ExampleCloverConnectorListener.prototype.onDeviceActivityStart = function (deviceEvent) {
console.log('onDeviceActivityStart Start');
};


So what would be preventing the callback when the printer option is being displayed? Are we missing a setting on the clover POS device?

Btw we are running this on sandbox environment.


Please advise.

thanks

0 Likes 0 ·
Show more comments

Welcome to the
Clover Developer Community