I love to discuss about how to setup affiliate type program for local business. One of the problem is payment tracking. I am trying to come up a solution. Love to talk about it...
I've thought about this a lot as well, its a tougher problem to crack than meets the eye. I started working on something like this that I ended up scrapping to solve the payment tracking part first. That is also a really tough problem :)