- Joined
- May 17, 2007
- Messages
- 2,738
- Reaction score
- 939
Just put the code in a hidden area. You aren't supposed to access, or use the code directly...
On your form that you're using to complete the payment process, use something like this..
Where it says "URL_TO_IPN" you put the URL where your IPN is, and it will the IPN will do it's work from thereon.
Aaron
On your form that you're using to complete the payment process, use something like this..
PHP:
<form method="post" name="paypalConfirm" action="http://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="rm" value="2"/>
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="custom" value="xx"/>
<input type="hidden" name="business" value="xx"/>
<input type="hidden" name="return" value="xx"/>
<input type="hidden" name="cancel_return" value="xx"/>
<input type="hidden" name="notify_url" value="URL_TO_IPN"/>
<input type="hidden" name="item_name" value="xxx"/>
<input type="hidden" name="amount" value="xxx"/>
<p><input type="submit" value="Click Here To Confirm - Paypal Payment"></p>
</form>
Where it says "URL_TO_IPN" you put the URL where your IPN is, and it will the IPN will do it's work from thereon.
Aaron

