how does affiliates plug in work?

my questions are..
Do my affiliates get paid automatically? or do I pay them out myself?
The other is...
Can my affiliates get paid "reoccurring"?..say if they refer a membership that's obviously a reoccurring subscription, can the affiliate get a reoccurring commission?
Thank you in advance for your time!