question

Omar Reyes avatar image
Omar Reyes asked Omar Reyes commented

Javascript SDK - Skip tip prompt

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?

2 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.

hammer avatar image hammer ♦ commented ·

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.

0 Likes 0 ·
Omar Reyes avatar image Omar Reyes commented ·

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.

0 Likes 0 ·

1 Answer

hammer avatar image
hammer answered Omar Reyes commented

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.

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.

Omar Reyes avatar image Omar Reyes commented ·

Thank you.

0 Likes 0 ·

Welcome to the
Clover Developer Community