0

I am using the remote-pay-cloud sdk in javascript for my semi-integration project. Is it possible to skip the prompt asking for a tip using the sdk?

asked 2016-07-22 23:43:44 -0500

omarreyes gravatar image

updated 2016-07-23 00:06:32 -0500

Comments

Are you using the beta (https://github.com/clover/remote-pay-...) or the NPM version (https://github.com/clover/remote-pay-...

One note, regardless - part of a Merchant configuration allows them to either show or hide the tip screen. This is, of course, under the control of the merchant, and will affect every transaction so may not be appropriate.

hammer gravatar image
hammer 2016-07-23 06:10:16 -0500

I am currently using the beta version. I did see the option to turn on or off the tips in the settings on the Clover. There are situations when we do and don't want to ask for tips. I was hoping that there was a way to bypass the tip prompt.

omarreyes gravatar image
omarreyes 2016-07-25 16:36:10 -0500

1 answer

Sort by  
0

For the beta version, you can add the following to the sale request suppressOnScreenTips

For example see https://github.com/clover/remote-pay-.... The sale request would be changed to:

  var mySale = {
    "amount": 12345, //the amount of a sale, including tax
    "tipAmount": 123, // - the amount of a tip.  Added to the amount for the total.
    "suppressOnScreenTips": true,
    "requestId": CloverID.getNewId()
  }

This will inhibit the display of the on screen tips for the sale - if the merchant has them configured.

Please keep in mind that the beta version will be replaced in the near future with the 1.0 release of the Connector.

answered 2016-07-25 18:40:16 -0500

hammer gravatar image
Comments

Thank you.

omarreyes gravatar image
omarreyes 2016-07-27 19:20:58 -0500