I run a website that offers a free ebook when someone donates money towards the site?

Posted Tuesday, September 8, 2009 by admin


Is there a software that can automactically detect payment and automatically send the person the ebook when they pay? And because the bulk of my contributors use paypal I’d like one that is paypal enabled. Thanks in advance!
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Ask

1 Comment on "I run a website that offers a free ebook when someone donates money towards the site?"

  • Jamie said on Sep 11th, 2009 at 10:04 PM:

    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)

Leave a Comment

Copyright © 2012 Ebook program
Design by ID Themes