Home
Integration Methods
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.
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.