question

davisre avatar image
davisre asked michael answered

How to lookup merchant's tip settings

In Setup, a merchant can enable tipping support by checking the "Ask for tip" box under Payments. Is there any way to look up this preference from the Android SDK? We can ask a Merchant for the list of tip suggestions, but I don't see a way to get the status of that check box, and the suggestions are always there, regardless of the settings.

I see that MerchantProperties has a getTipEnabled() method, but how can I get the MerchantProperties?

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

michael avatar image
michael answered

From the rest api you can call

GET https://api.clover.com/v3/merchants/HBK58EWYDM6FP?expand=properties

In part of the response you will see

...
"properties": {
    "href": "https://www.clover.com/v3/merchants/HBK58EWYDM6FP/properties",
    "defaultCurrency": "USD",
    "tipsEnabled": true,
    ....
}
...
10 |2000

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