Pay per download

Pay per download

Hello!
I would like to sell the download of a video file via an ad.
I wish that after payment it was possible to download the file.
How can I do?
Thanks!