Integration with a 3rd party membership plugin


I learnt through the forums that Affiliates is an easily customisable plugin and I should be able to integrate this with a 3rd party membership plugin easily. I read this blog post here, which explained how Affiliates works and the functions of the coding. However, it doesn't give a step by step on how to implement this integration.

The membership plugin I am using redirects the registered user to a payment confirmation screen after payment has been processed. Is there a way of somehow adding a tracking code to this page to log referrals?

If not, please outline the steps required to integrate your plugin with the other.

FYI, I can't use Membership 2 Pro, as it doesn't assign wp user roles upon membership. I'd appreciate your help with this ASAP, thanks!