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