The followin three lines need to be in the button code to make sure that the product is considered a downloadable product and the shipping and order handling is ignored for the product.
The first line should have been generated from the admin console Get HTML but the last two lines must be added by hand.