I am working on an affiliate type site, but I am developing the system myself, and not thinking about using a 3rd party affiliate system.

Either way, I can't seem to find an affiliate program that would work for my needs.

I essentially will have a site that allows 3 parties to get paid after 2 steps, and a client who will be paying.

Step 1:
Client is charged for a listing.
My business is paid for the site listing
The affiliate is paid for the referral

Step 2:
Once the service has been completed, a user is paid for his/her services from the original charge made to the client.

I can see how I could easily handle the affiliate payment and my listing charge at the same time, but paying the user providing a service at a later date, but I can't see how it would work out if it were tied into the same transaction as the original charge.

Essentially, I think I would need to keep track of the extra money that would eventually be paid to the user providing the services.

So, basically, I need to find out how I can pay everyone. Do I keep track of their monthly earnings and then send them a check? How would I do that? I can easily develop a system that tracks sales and services, but I don't know the first thing about sending out checks based on affiliate sales / services.

I just don't know where to begin.

Thanks.