WordPress Affiliate Platform

Take control of your affiliates and drive more sales

  • Documentation
  • Affiliate Platform Plugin
  • Projects
  • Home

Integrating s2Member Plugin with the WP Affiliate Software

The WP Affiliate Platform plugin can be easily integrated with the s2Member plugin.

Minimum Requirement

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.

Integration Steps

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):

http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=XXXX&ap_id=%%cv1%%&sale_amt=%%amount%%&buyer_email=%%payer_email%%&txn_id=%%txn_id%%

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 from step 2 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).

Filed Under: 3rd Party Cart Integration Tagged With: 3rd party Integration, S2Member Integration

Comments

  1. admin says:

    @mmitra, You don’t need to recreate the buttons. The plugin will be able to track the affiliate commission for your old buttons as long as you do the steps outlined in this documentation.

  2. mmitra says:

    I am using s2Member Plugin and had already created PayPal button using shortcodes of s2Member. Now I have integrated WP Affiliate with s2Member. Will I have to again create PayPal button and replace the old one on the membership page or the existing PayPal button will work and 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.
    Thanks

  3. admin says:

    @Wayn, The affiliate will still get rewarded. After an affiliate sends visitor to your site (doesn’t matter what page), any membership purchase will generate commission for that affiliate.

  4. wayn says:

    Hi i have purchased your plugin and been using it successfully. I have a question, i would like to know if s2member is able to integrate with wp affiliate in the following way:

    1- Affiliate shares a link to a secure level 1 page or a download link.
    2- The person gets redirected to the membership options page.
    3- If the person signs up, will the affiliates ID get referred as a sale?

    I understand that the affiliate will get awarded the commission if they use the affiliate id link directly to the membership options page. However i want my affiliates to market my downloads and protected level 1 pages. Will they get awarded the sale when using this route?

    I understand that should the affiliate share a specific page or post that has a buy now button, they get awarded the commission right? However what if this was not a specific page or post, its just a normal protected level 1 download or protected page?

  5. Ivy says:

    Hi, All you need to do is follow the instructions above. =) You do not need to make any code modifications .

  6. Denis Antunez says:

    Great, thanks for your support. With the new integration, we only have to generates buttons (think that it doesn´t matter if we use long or short codes) and follow your instrucction. No modifications, nothing… is it right?

    Thanks

  7. admin says:

    You don’t need to enter it multiple times in the “Payment Notification URLs” field. One time is just fine… it will work for multiple buttons. As a matter of fact, we have just updated this integration instruction and it is even easier to integrate these two plugins. Please take a look at the updated instructions.

  8. Denis Antunez says:

    Hi, hope you are fine, and hope you remember me. Have a question. We are running a site that have 4 differents Memberships grades, and this is why I have to create 4 differents buttons with S2Member… My question is: have I need to put 4 differents links under s2Member’s options ->API Notifications. Under “Payment Notification Urls” like you show in your post?… If yes, because the amount of the sale is differente for each button… what I have to change in your example below??
    “http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=XX&ap_id=%%cv1%%&sale_amt=%%amount%%&buyer_email=%%payer_email%%”

    Thank you for your support and have a nice day

  9. Steve says:

    Disregard that last comment. Everything is working. Apparently, with s2 member, the user has to complete the registration process in order for everything to be triggered. I completed the registration for my test purchase and boom…everything went through. Tired again….it worked again. Sorry about that.

  10. Steve says:

    I just bought wp affiliate yesterday. I was very excited to see how effortlessly it integrated with wp estore (nice job). However…along with using wp estore for single, non member purchases, I am using s2 member for the member side of the site. I have followed all the integration instructions on this page, several times, and it just won’t credit the affiliate with the subscription. Can you please help.

    Here’s some info that may help narrow the problem down:

    1) I’m using PHP Exec and putting the paypal button in a page, not template.
    2) I have verified in the source code that the affiliate ID is being embedded in the paypal form.
    3) I put the affiliate folder in different directory (exspinentialarticles.com/affiliates). I’m not sure if this might have something to do with it.

    Any help would be appreciated.

  11. admin says:

    @Rob, yes there is a way to handle refund. This forum thread should help:
    http://www.tipsandtricks-hq.com/forum/topic/cancel-commision-after-refund

  12. Rob says:

    Awesome what a magic plugin guys! All the possibilities.
    Is there any way that to track refunds when using with S2 member?

Leave a Reply

Your email address will not be published. Required fields are marked *

affiliate plugin infographic

Search

Recent Comments

  • admin on WordPress Affiliate Platform Features
  • Ken Hammond on WordPress Affiliate Platform Features
  • admin on WooCommerce and WP Affiliate Software Plugin Integration
  • Giedrius on WooCommerce and WP Affiliate Software Plugin Integration
  • admin on Affiliate Tracking Using Discount Codes or Coupons for WooCommerce

Featured WordPress Plugins

wordpress_estore_icon
wordpress membership plugin icon
WordPress Lightbox Ultimate Plugin
WP Express Checkout Plugin
wordpress_affiliate_plugin_icon

Copyright © 2023 | WP Affiliate Plugin