I am starting a daily deal site and I already have a wordpress theme (couponxl). It already has components such as: deal expiry; number of items sold. What I need is to create a reward system that credits each buyer, but only once the deal has expired. For example, a deal retails at $10, then it expires with 100 sales; each sale is worth $00.01 in rewards to each customer. Because there has been 100 sales, each customer will receive 100 x $00.01. Basically they will end up with $1.00 reward that will be credited to their account on the deal site, and it can be used toward their next purchase. Therefore, when the deal is expired, all customers who purchased that particular deal will receive the reward to their account where they can view it, and an email informing them of the reward. Furthermore, the plugin will need to hook from the checkout page and subtract the reward from the customers’ next purchase automatically, and display the breakdown of the transaction. Another function I need this to perform is in regards to the merchant offering the deal. Therefore I will continue the from the previous example but now put it into the merchants perspective, building on the earlier example of the $10 deal with 100 purchases. The merchant will also be rewarded $00.01 on every deal sold multiplied by the total deals sold. So in this example the merchant would receive a reward of $100.