Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Integration with s2Member Plugin
- This topic has 21 replies, 6 voices, and was last updated 14 years, 1 month ago by amin007.
-
AuthorPosts
-
October 5, 2010 at 7:56 pm #19893mikru2010Member
Thanks, that’s good news.
I read the post you mentioned in your answer again, adn now i’m a bit confused about this phrase:
“And add the Affiliate’s ID to the “custom” field of the button from the cookie. For example:
<input type=”hidden” name=”custom” value=”<?php echo $_COOKIE; ?>”>”
Does this mean i need to add something to url
mydomain …/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php
to use it with the ( optional ) Payment Notification URL feature of s2member?
Can you give an example please, how the url should look like for use with the s2member Payment Notification URL feature?
October 6, 2010 at 12:37 am #19894amin007ParticipantThere are two things in play here. The first one is where the payment notification should be sent to. Which is the IPN handling script and the URL of this script is always the same for your site. Nothing else changes this URL. Basically the affiliate plugin needs to be told that a sale has been successfully completed so it can do it’s job. The way to tell the affiliate plugin that a sale has been completed is to send the payment notification (PayPal IPN) to the ipn handling script. Is this part clear?
Now, when the affiliate plugin is notified of a sale it needs to know one other key piece of information. This piece of information is stored in the browsers cookie. So all you need to do is when you create the PayPal button (this is the button the buyer will click) you tell this button to add this key piece of information to the button so it gets passed along to the ipn handling script after the payment.
How do you tell a PayPal button to add some information? Through the usage of the “custom” field. If you look at the “Example for PHP” section on the documentation you will see it has two examples for two types of PayPal button. It also shows how the custom field is used in that button. Does that make sense?
Two quick questions.. have you ever placed plain PayPal button on a post or page? Are you familiar with the “custom” field of a PayPal button?
October 6, 2010 at 6:40 pm #19895mikru2010MemberThe answer to your quick questiosn is two times yes.
So i need to add the ‘ap_id’ to the button, not to the ipn handling url?
October 7, 2010 at 12:51 am #19896amin007ParticipantYou only add the following line in the button which will do it’s job given you are placing this on a page where PHP can be executed:
<input type=”hidden” name=”custom” value=”<?php echo $_COOKIE; ?>”>”
After you do that configure your s2 plugin to send the IPN to the IPN handling URL and that’s it.
October 11, 2010 at 4:19 am #19897rpickettMember(question for admin below)
First, for those of you using s2member, so *was* I. There were a couple things I didn’t like about it. The biggest one was that if someone was a member level 3 they could access levels 2 and 1. Kinda ‘dumb’ – what if level 1 is product line “a” and level 2 is product line “b”? I don’t want them mixing at all…
emember *doesn’t* have this issue at all.
So, I went ahead and bought emember, estore, and eaffiliate as a bundled package – thanks tips and tricks for putting out a great product bundle!
Admin:
1. Is emember and eaffiliate now fully bundled so I don’t need special code? If I need it, please send it along.
2. Does the affiliate get paid on the monthly subscription too, or just the initial “trial” pmt?
Thanks!
October 12, 2010 at 1:24 am #19898amin007ParticipantNot sure what you mean by “special code”.
Yes, the affiliate gets paid on the monthly subscription too. If you don’t want that then there is an option to turn this off in eStore.
October 20, 2010 at 12:32 am #19899amin007ParticipantDon’t forget to check the following post:
https://support.tipsandtricks-hq.com/forums/topic/step-by-step-instructions-for-s2member-integration
-
AuthorPosts
- You must be logged in to reply to this topic.