How to create pay to download songs

I am looking for information on how to create Pay to download songs for my website. I just got started in the world of website building with the book by Ian Lloyd’s (Build you own web sit the right way using HTML & CSS 2nd edition). That book got me started but no information on how to create pay to download audio. Any help would be appreciated .

Ridefree