Foolproof way to detect which discounts were used on an order?

Found a relevant thread: Identifying the app/discount that applied a discount allocation?