If you're willing to buy from Amazon and use a Kindle it works pretty easily. One-click purchasing, automatic downloading to your reader, and suchlike.
(That's if you're willing to hold your nose about having DRM at all, the remote deleting of books, Amazon's near-monopoly and so on - personally I don't buy any ebooks I'm not willing to lose)