I'm going to need a detailed description of where you are getting stuck in order to give advice.
If you are just trying to get the discount total subtracted from the total, then there are a couple of ways to do that. You can do it by updating your cart object calculations or by adding a discount rule. It depends on where you want it listed on your view cart page.