Home Integration Methods Recurly

Recurly

This integration method uses Recurly API to identify last payment of the customer and to record a commission based on that.
1
Recurly configuration
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.
2
Enable API
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.
3
Integration code
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!
Do not forget to integrate your site with the click tracking code.