Recurring Commissions from Affiliate Code Sales

My company sells a software subscription. We have an affiliate program and would like to automate the recurring commission from the subscription sale that occurred via an affiliate code.

Affiliate code–>Subscription Sale (recurring monthly payment)–>Automate recurring commission

Is this possible in InfusionSoft, or is there an IS compatible plugin that can accomplish this?