Web Hosting Talk







View Full Version : paypal form question


summcat
07-24-2004, 06:07 PM
Hi all,
I'm interested in making a donation form, yet im alittle confused. I've got a form with a couple things like Name, Email, Payment Amount, and Comments. When the user clicks submit, im hoping to get the form to redirect to a Paypal pay page (try saying that 3 times fast!), while the amount gets forwarded to the pay page, and the other variables (such as email), get emailed to me. At the end of the transaction, the user would get forwarded back to my site. I've seen this done-although I can't figure it out.

Thanks!

Corey Bryant
07-25-2004, 10:04 AM
There is a variable to add

<input type="hidden" name="return" value="http://www.domain.com/success.html">
<input type="hidden" name="cancel_return" value="http://http://www.domain.com/fail.html">

Sign into Paypal, go to Merchant Tools -> Donations -> - complete the form & then choose Add more options. Here is where you will see Successful Payment and Cancel Payment URL, plus a lot more.

summcat
07-25-2004, 04:50 PM
thanks...ive figured it out now:

<<< URL Removed. >>>

Corey Bryant
07-25-2004, 05:16 PM
Anytime - good luck with the site!