question

leobufibarrameda avatar image
leobufibarrameda asked

Discount Applied on Sales App but doesn't reflect on Clover Tip App

Hi guys,


I am having an issue integrating discount on Tip Add.


The scenario is: Merchant is using Sales app then put in the total amount, open our app and apply discount. The discount is applied on Cash (without Tips app being open) but on Charge - the dollar discount is not being applied.


Here is the snippets on how I apply the discount (this is working when using Register, Order and Sales when using Cash.

    final Discount discount = new Discount();
    discount.setName(PROMOTION_LABEL);
    discount.setAmount(-Math.round(amount * 100L));
    orderConnector.addDiscount(order.getId(), discount);


Best Regards,


- Leo

OrdersSaleDiscounts
10 |2000

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

0 Answers

·

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