Both the platforms are allowed to sell digital products like eBooks, PDFs, images, etc. All you need to do is just create a course, upload the files that you want to sell, and lastly set the price.