Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

How to make a eBook instantly downloadable when purchased?

I have a few eBooks on my site and want to make them instantly downloadable for the user after they are purchased through paypal. Can this be done through using just HTML and CSS. If so how can I do this? Thanks in advance

1 Answer

Hi John,

There's actually a little more to it than just HTML and CSS. Yes it's possible to just forward the purchasing user to a "purchase complete" page that would have a link to the book. But that wouldn't protect your content and anyone with that link would be able to download your book without actually purchasing. You might look at something like http://www.gumroad.com that would manage your payments and send download links to purchasers automatically.