I run a website that offers a free ebook when someone donates money towards the site?
Posted Tuesday, September 8, 2009 by admin
Great book creator for your business
Posted Tuesday, September 8, 2009 by admin
Copyright © 2012 Ebook program
Design by ID Themes
Yes, there is.
The common approach to this problem is to use something PayPal refers to as “IPN”.
Basically, the paypal button has some URL’s (passed as hidden form variables) when someone makes a payment using this form, paypal notifies your website of payment.
Here is a complete package for it:
(Full disclosure, I own PayVeX)
That package will create the paypal button for you, after payment, the visitor is sent to a page where they can download your ebook. (of course, only those who have paid for it are permitted to do this)
You can also design your own if you want, here’s a class file I make available for people wishing to do this.
PayPal support file:
If you decide to write your own, you need to take care the paypal transaction ID is valid, the amount is correct (and in the right currency!) and that the payment email is in fact yours, otherwise someone could “forge” an IPN. (basically, make your website “think” it got a payment)