How do set up recurring payments?

Hi, I have a monthly membership site. I want to pay my affiliates recurring monthly commissions on members they refer. I want the commissions to be paid only if the referred members are still active.
How do I set this up using the membership and affiliates plugins?
Thanks