This integration method uses Recurly API to identify last payment of the customer and to record a commission based on that.
This integration method uses "Thank you page" especially PHP one, so if you do not have one, please create it. When you have the site, navigate to Configuration> Subscription Plans section and edit your subscriptions. Set "Return URL after Success" to your thank you page, where Recurly API will be used.
Add this string to each URL:
In case you already have question mark in the link, change the one in above code to ampersand symbol.
In Developer> API credentials section enable your API if it is not enabled yet, and get your API key.
Please, download Recurly API files as you will need it in the next step.
Now, navigate to Developer> Push Notifications and use Configure button to set Push Notification URL to point to http://URL_TO_PostAffiliatePro/plugins/Recurly/recurly.php
Finally, enable Recurly plugin in your Plugins section in merchant panel.
Open your thank you page for editing and paste this code to the file:
Keep in mind you have to upload files from the API ZIP file to the directory where your Thank you page is. As you can see, the first line of the code includes /lib directory from API ZIP file.
The second line defines your API key, so please change it!