question

ideasolv avatar image
ideasolv asked Jacob Abrams answered

Tip Suggestion Page

We are creating a clover app to run on clover device. We have side loaded the payment and sales apk. Can you please tell us how we can call the tip suggestion page in the payment process directly?

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

Jacob Abrams avatar image
Jacob Abrams answered

You sideloaded the Clover payment and sales APKs? By that do you mean com.clover.payment.executor.secure and com.clover.terminal.sale? Those APKs should be preinstalled on your Clover device, you shouldn't have to install them yourself.

Regardless to launch the customer facing tip suggestions activity you use: Intents.ACTION_CUSTOMER_ADD_TIP with String EXTRA_ORDER_ID and long EXTRA_AMOUNT.

Here is a commandline example:

adb shell am start -a clover.intent.action.CUSTOMER_ADD_TIP -e clover.intent.extra.ORDER_ID YBRQQFY8D3CXP --el clover.intent.extra.AMOUNT 200

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