The WP Affiliate Platform plugin can be easily integrated with the Optimizemember plugin.
Minimum Requirement
You must be using the official shortcodes or functions provided by optimizemember plugin to create your payment buttons. Optimizemember 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
Step 1 (Get the Integration Addon)
Contact us to grab the WP Affiliate and Optimizemember integration addon. Install this addon just like any WordPress plugin.
Step 2 (Enable Remote Post)
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 3 (Check API/Notifications Settings)
Go to Optimizemember plugin’s 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 4 (Do this if you are selling access to specific post)
If you are selling access to Specific Posts/Pages with Optimizemember then do the following also (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 Optimizemember -> 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 the member was referred by an affiliate.
Note: the “CV1” parameter passed by the Optimizemember 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).
Leave a Reply