- This topic has 16 replies, 2 voices, and was last updated 14 years, 1 month ago by .
- 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 › Need Help getting the sale to record using the paypal buttons
Turned out the instruction wasn’t followed properly. The example code shows how to add the additional input fields to the button code:
Direct/Plain/Hosted PayPal Button and Affiliate Plugin Integration
Basically just add the following two lines to your button code (not put it when you create the button on PayPal:
<input type="hidden" name="custom" value="<?php echo $_COOKIE['ap_id']; ?>">
<input name="notify_url" type="hidden" value="http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php" />
Replace “example” with your own site URL.
So the full button code should look something like the following (see how it is added in the last two lines?):
<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="7JK4AJCBQGJV6">
<input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
<input name="custom" type="hidden" value="<?php echo $_COOKIE['ap_id']; ?>" />
<input name="notify_url" type="hidden" value="http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php" />
</form>
absolutely incredible! THANK YOU!!!!!!!