Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – IPN Broadcast Question
Tagged: eMember, IPN, ipn broadcast
- This topic has 11 replies, 2 voices, and was last updated 11 years, 11 months ago by tattooedtrader.
-
AuthorPosts
-
February 5, 2013 at 8:09 pm #8500tattooedtraderMember
I am installing eMember on multiple sites today, but 2 sites in particular are giving me issues. One issue I posted last night, but for this other site I have a question:
When someone subscribes to my service I need the IPN to go 2 places. No problem, I have a plugin for that [http://www.sonicipn.com]
So I input the IPN for the plugin URL in paypal and it will redirect to multiple IPN’s because in addition to an eMember account, I need to create an account elsewhere. So I set up subscription buttons in Paypal using the All good, right? Well not exactly. I don’t know what URL to send the eMember IPN to. I have 4 levels set up in eMember so will eMember redirect it to the right level if I just input:
[http://mysite.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php]
or do I need to pass the variables there? For example:
[http://mysite.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
custom=subsc_ref=2 (which doesn’t work by the way)]
or like this:
[http://mysite.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php?custom=subsc_ref=2 (doesn’t work either)]
A bit of direction would be greatly appreciated. Just FYI If you don’t have time to look at the other site it works like this
___________________________ /
> eMember IPNIPN Plugin URL (in Paypal) —-
___________________________
> Other IPNFebruary 6, 2013 at 3:06 am #53628adminKeymasterYou don’t need any other plugin or solution to directly integrate eMember with a PayPal button.
You simply make sure that IPN is enabled in your PayPal account (doesn’t matter what IPN URL you use in there).
Then you create your PayPal button like the way our documentation says here (there is a video tutorial too):
And then it will work the way we say it does. eMember is capable of understanding which membership level a user paid for and stuff like that.
When you have setup the PayPal button according to our documentation and it doesn’t work. Follow this post to run with debug so we can help you more:
February 6, 2013 at 6:45 pm #53629tattooedtraderMemberAs I stated in my original question: When someone subscribes to my service I need the IPN to go 2 places.
So the one configured in the eMember settings as you pointed out (I have it set up that way), but ALSO to another place. This is why I asked the question.
So, can that work?
February 6, 2013 at 6:47 pm #53630tattooedtraderMemberJust so we’re clear, I have the Paypal buttons set up as per the instructions. I already run eMember on multiple sites… this one is just different.
Upon successful checkout I need eMember to be notified as It does when set up in your documentation, but also… somewhere else.
So I guess my question is this:
If I set up an eMember / Paypal button as per your instructions, will it ALSO go the the IPN URL I’ve configured in the Paypal IPN URL too?
February 7, 2013 at 12:28 am #53631adminKeymasterPayPal only sends the IPN to one URL. Our PayPal integration only requires eMember to get the IPN. Anyway, looks like you need the IPN to go to two different URLs which is not a feature we provide in eMember. So lets go back to the solution you were using. Did you make sure eMember is getting the IPN forwarded by your other plugin? We know that eMember will work if it gets the IPN correctly but we can’t help you troubleshoot why your other plugin may not be forwarding the IPN correctly. What are you doing to make sure that eMember is receiving the IPN from this other solution you are using?
February 7, 2013 at 1:04 am #53632tattooedtraderMemberThe IPN is broadcasted, yes. I receive it at the 2nd URL (not eMember). eMember is not receiving it correctly.
So, what is the syntax that I would send the correct information to eMember in? I would surmise that my problem is just that I’m not broadcasting the correct message to eMember.
In the plugin I get the notify URL as: [http://mysite.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
custom=subsc_ref=2]
but as there is a space in it, it does not transmit correctly.
Would I use: [http://mysite.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php?custom=subsc_ref=2] <- with the question mark to forward the variable of the subscription level?
February 7, 2013 at 1:16 am #53633adminKeymastereMember will verify the IPN with PayPal (to make sure someone is not trying to send fraudulent IPN and bypass the security. So you won’t be able to modify the IPN that you receive from PayPal (otherwise it will fail). Since you are manually forwarding the IPN to eMember’s IPN handler from your other plugin, you only need to specify the following in the “Advanced variable” section of your PayPal button:
custom=subsc_ref=2
Basically, eMember needs to receive an authentic PayPal IPN (that hasn’t been altered in any shape or form) with the following value in it’s “custom” field:
subsc_ref=2
Enable debug in eMember and you will be able to see where eMember is failing when it receives the IPN which can help you troubleshoot/correct the mistake in your button:
February 7, 2013 at 1:23 am #53634tattooedtraderMemberI will give it a shot! Thanks!
February 7, 2013 at 8:18 pm #53635tattooedtraderMemberOK, I did it and made a test payment with a friends account. I got the following:
[02/07/2013 7:17 PM] – SUCCESS :Emember: trying logging in :Admin
[02/07/2013 7:17 PM] – SUCCESS :Emember: trying logging in :Admin
But I got no customer created?
February 7, 2013 at 8:40 pm #53636tattooedtraderMemberThat was the first debug log. The IPN Debug log is blank.
February 8, 2013 at 3:01 am #53637adminKeymasterThe IPN Debug log is blank.
That would be the issue. The most common cause for this is that eMember is not receiving the IPN.
Read the section titled “What to do if the Log file is empty?” from the post that I have shared which tells you what other things you should check:
February 8, 2013 at 7:21 am #53638tattooedtraderMemberI did some testing of my own. It appears that the plugin is mangling the IPN and eMember is just doing it’s job and ensuring that the IPN is valid.
I DO VERY MUCH appreciate your support on the matter and I will continue to use eMember on most of my sites because I love the integration with wordpress and your affiliate platform, but alas it’s just not going to work with this particular venture.
Thanks again for your help and keep the good plugins coming!
-
AuthorPosts
- You must be logged in to reply to this topic.