Tips and Tricks HQ Support Portal › Forums › WP eMember › problem with WP eMember + WP Affiliate plugin
- This topic has 4 replies, 2 voices, and was last updated 14 years ago by FrankAlm.
-
AuthorPosts
-
October 22, 2010 at 8:27 pm #2081FrankAlmMember
i have both WP eMember and WP Affiliate plugins
the problem i have is:
if i include the code into the paypal button generator :
notify_url=http://www.videos-erstellen.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
custom=subsc_ref=2
the paypalbutton works without any problems
but if i include the phpcode into the site (buttoncode) from WP Affiliate plugin:
<input name=”notify_url” type=”hidden” value=”http://www.videos-erstellen.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php” />
<input name=”custom” type=”hidden” value=”<?php echo $_COOKIE; ?>” />
the affiliate plugin works but the code from the paypal button dosn´t work anymore (php execution is installed!).
What can i do?
Regards
Frank
October 23, 2010 at 1:40 am #25690amin007ParticipantLet me first get a good understanding of your setup.
So you have two PayPal buttons.. one for eMember payment and one for affiliate?
or do you have one button that you are trying to hook for both eMember and the affiliate?
Can you please post a URL to the page containing the buttons?
October 23, 2010 at 7:48 am #25691FrankAlmMemberI have ONE Paypalbutton for both eMember and the affiliate
The buttoncode into the website is:
*************************CODE**************************************
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_s-xclick”>
<input type=”hidden” name=”hosted_button_id” value=”THKESBGHAZL9A”>
<input type=”image” src=”https://www.paypal.com/de_DE/DE/i/btn/btn_buynowCC_LG.gif” border=”0″ name=”submit” alt=”Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.”>
<img alt=”” border=”0″ src=”https://www.paypal.com/de_DE/i/scr/pixel.gif” width=”1″ height=”1″>
<input name=”notify_url” type=”hidden” value=”http://www.videos-erstellen.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php” />
<input name=”custom” type=”hidden” value=”<?php echo $_COOKIE; ?>” />
</form>
*************************CODE**************************************
The Codesnipet that i include by thr paypal buttongenerator is:
notify_url=http://www.videos-erstellen.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
custom=subsc_ref=2
The website url: http://www.videos-erstellen.com/videokurs_uebersicht/
October 24, 2010 at 1:09 am #25692amin007ParticipantThank you for the details. I can now see the issue. Basically you have one button but you need to send two IPNs (instant payment notifications) to two different script. There are a few ways to get around this but here is the easiest one.
Get rid of the button you created for the affiliate plugin. Just work with the eMember button because this is the button visitors will use to pay for the membership and you want to award commission if some of those visitors were sent by an affiliate.
You already have the eMember’s button working now all you need to do is hook it up with the affiliate plugin so commission can be awarded too. Please use option 1 from this page to integrate the PayPal button with the affiliate plugin:
Direct/Plain/Hosted PayPal Button and Affiliate Plugin Integration
Option 1 doesn’t require you to send the IPN to a script or add a cookie value. So you don’t have to do anything special to the button that you created for the eMember plugin. Simply specify the “Return URL” (which you probably already have done) to be a page on your site and enable PDT. The documentation I referred to should have the details.
If you don’t see the new settings in the affiliate plugin then please get a new build of the affiliate plugin from this page:
October 28, 2010 at 5:28 pm #25693FrankAlmMemberThank You ,
now it works.
Regards
Frank
-
AuthorPosts
- You must be logged in to reply to this topic.