How can I avoid code conflicts with multiple coupon systems?

im looking to have on my store:

-gift cards+discount codes

-loyalty system (redeemable points)

-affiliate program .

the problem is that each one of them have coupon system.

im afrwid code will conflict and cause problems and slowness. plus the customer might find 2 fields to enter code which is confusing .

i found no app have both functions all in one. or 2 apps from same developer so they are compatible .

please help me .