|
|
O'Reilly Book Excerpts: PayPal Hacks Hacking PayPal, Part 2by Shannon Sofield, Dave Nielsen, Dave BurchellLast week, in Part 1 of this two-part excerpt from PayPal Hacks, the authors offered three hacks to ensure PayPal's convenience and effectiveness. This week they present two more hacks to help make you and your customers happy. The first hack highlights using IPN to effortlessly deliver digital goods to your customers, and the second shows how to set up phony Sandbox accounts to test your code. Deliver Digital Goods with IPNUse IPN to have your server automatically send digital goods to customers as soon as they purchase them from your web site. The Internet revolution allows instant gratification when purchasing an item. Customers can purchase digital goods--eBooks, digital music, video files, software, and anything else that can be delivered over the Internet--from the comfort of home and use them almost instantly. This hack shows you how to leverage PayPal's ease of use, security, and brand name to sell digital goods with large margins and low overhead. PayPal's IPN system [Hack #65] lets you deliver those goods without any interaction as a seller. The CodeThe code in this hack uses Microsoft VBScript, but the same process can be implemented with any web scripting language.
This script, when used in conjunction with the IPN script from [Hack #73], sends your customer an email with your digital product as an attachment:
Place your digital product in a file (presumably zipped) on your
server, and specify the full path and filename in the
See AlsoThis hack shows the most simplistic way to implement digital goods sales for your site. For an improved method, see [Hack #72].
|
|
|
|
|
||||||||