question

msaleem avatar image
msaleem asked David Marginian Deactivated edited

Two Discount id for Same order in Two device for same merchant

Hi Sir,

I implement the clover application with discount logic implementation.

Scenario

I open order in one device and add some item to the order

Now open same order for second device everything working fine

Now when i apply discount in both device one by one First only one discount is applied in both the devices but after some time two discount is apply because two discount id is created.

I want to apply one discount to multiple devices.


I am using clover connector to apply discount below is my code.

 mOrderConnector.addDiscount2(mOrderId, dollarDiscount).getId()



Thanks.

Clover Android SDKDiscounts
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

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

If you call addDiscount twice for the same order you are going to get two discounts applied. Why is that a surprise?

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