Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Integration with s2Member Plugin › Reply To: Integration with s2Member Plugin
Alright… in eStore’s scenerio I have placed a bit of code in the IPN handling script which awards the commission.
In s2Member’s scenerio we can maybe take advantage of the Notification API. I have added an API for awarding commission via HTTP GET or POST request in the Affiliate Platform plugin. You can find the documentation on this here:
So, the idea is to pass the Referrer ID using the custom field like the following:
<input type=”hidden” name=”custom” value=”<?php echo $_COOKIE; ?>” />
Then use the s2Member’s Notification API to post a request to the affiliate platform’s API to award the commission.
Let me know if this makes sense. You will need an updated version of the Affiliate platform plugin to have this new API that I added. Please use this URL to request an update: