- This topic has 3 replies, 3 voices, and was last updated 9 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Integration with Magic Members
Hi,
I am using Magic Members for my membership website. I want to pay affiliates a commission for all new members that they introduce, but I cannot tell from the documentation whether Affiliate Platform integrates with Magic Members. Sign-up and payment of membership is done through .agic Members.
MM support have suggested using the following hook: mgm_membership_transaction_success
type: action
desc: runs after any subscription purchase successfully completes
args: @array: array(‘user_id’ => $user_id)
How can I link that to the affiliate so that the transaction is recorded and he or she receives payment of their commission?
The problem with that hook is that it only tells us a user ID was created.
Affiliate Platform, at a minimum, needs the information contained here:
https://www.tipsandtricks-hq.com/wordpress-affiliate/awarding-commission-via-http-get-or-post-189
Getting that information is difficult, because all sales are being processed internally to Magic Members; and I’m not sure if any of their hooks will pass along the required information. Perhaps you can ask them if any of their API can provide the required information.
We also have a WordPress hook that they can use to integrate easily:
https://www.tipsandtricks-hq.com/wordpress-affiliate/api-awarding-commission-via-wordpress-hook-501
Thanks for the above replies, which I have taken up with magic members support.