The WP Affiliate Platform plugin can be easily integrated with the s2Member plugin.
You must be using the official shortcodes or functions provided by S2Member plugin to create your payment buttons. S2Member offers shortcodes that you can use to embed your membership payment button on posts, pages or template files. If you are not using them then the affiliate plugin integration won’t work.
We have worked with the developer of the s2Member plugin and came up with an easier integration option between the two plugins (A big thank you to the developer of s2Member plugin). This integration works with both the free and premium versions of the s2Member plugin.
Step 1: Go to the following interface in WP Affiliate Platform plugin and check the box next to Enable Remote POST:
WP Affiliate -> Settings -> Integration Related -> Additional Integration Options
Step 2: Go to s2Member’s options ->API/Notifications Menu. Under “Payment Notification URL” make sure there is a value that looks like the following (this will be automatically generated for you so you just need to verify that this value is there and save it):
The value “XXXX” will be replaced with the secret code generated when you completed Step 2.
Step 3: If you are selling access to Specific Posts/Pages with S2Member then do the following otherwise you can ignore this step.
In order to have the sales from specific posts/pages be tracked by the WP Affiliate plugin, you need to copy the URL in step 3 into all the relevant fields on the s2Member -> API Notifications page, including Specific Post/Page ~ Sales Notifications.
All Done! Now, when a member pays for a membership, the affiliate commission will be awarded to the correct affiliate if he/she was referred by an affiliate.
Note: the “CV1” parameter passed by the S2Member plugin will contain the affiliate ID so do not use this for any other custom fields (if you are not adding any custom fields to the PayPal button then you do not need to worry about this).