question

parag avatar image
parag asked robert2003b edited

Does an event occur when a discount is applied to an item or order?

We're developing a Clover App where users must choose discounts from either the native Clover discounts app or a list of discounts not stored in the Clover system. Is there a broadcast sent when the user clicks the discount link for an item or the 'Add Order Discount' link from the Register app? I aim to capture when they click one of these links and prompt them to choose between a Clover Discount or an external discount.

Clover Android SDK
10 |2000

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

angela683 avatar image
angela683 answered angela683 edited

Hello, @Parag dollartreecompass


Unfortunately, there is no event broadcasted when a discount is applied to a line item or an order, nor is there one when a merchant clicks on the “Add discount” button or the “Add order discount” button. This means that you won’t be able to capture the click on these links directly to prompt the user to choose between a Clover Discount or an external discount.


As a workaround, you could consider adding a custom button or modify order button within your app that merchants can use to apply external discounts. This button would launch an activity from your app where you can present the options for applying either a Clover discount or an external discount. This way, you can control the flow and ensure that the merchant is presented with the choice at the right moment in the transaction process.


Implementing this solution would involve modifying the user interface of your Clover App and handling the discount logic within your application’s code. It’s a more manual approach but can achieve the desired outcome of guiding the user through the discount selection process. Remember to make the user experience as seamless as possible to avoid confusion and streamline the checkout process.



I hope my suggestion is helpful for you.



Best Regard,
angela683

10 |2000

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

robert2003b avatar image
robert2003b answered robert2003b edited

For your external discounts, you can add a “Modify Order” button in your app. This button will show up in the same section as merchant-facing custom tenders. When clicked, it will launch an activity from your app (using an intent filter). In this activity, you can then ask the merchant to add an outside discount to the order. You can label the button as “Add outside discount” or any other relevant text using the android:label field. www.coveredca.com

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