question

wsadiq avatar image
wsadiq asked Lee Tickett answered

Accepting Payment without displaying TIP screen

We use the following intent for payments from within our Clover native application Intents.ACTION_CLOVER_PAY to start payment screen manually for a few key items.
Is there an option to instruct the intent to not prompt for tip?

Our current code to start the payment activity is like this.

Intent payIntent = new Intent(Intents.ACTION_CLOVER_PAY);
payIntent.putExtra(Intents.EXTRA_CLOVER_ORDER_ID, order.getId());
payIntent.putExtra(Intents.EXTRA_OBEY_AUTO_LOGOUT, true);
startActivityForResult(payIntent, CloverAppConstants.COLLECT_PAYMENT_REQUEST);
Payments
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

·
Lee Tickett avatar image
Lee Tickett answered
Have you tried;
payIntent.putExtra(Intents.EXTRA_ASK_FOR_TIP, false);
https://clover.github.io/clover-android-sdk/com/clover/sdk/v1/Intents.html#ACTION_CLOVER_PAY

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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