Custom Purchases

So, I am experimenting with wix and I wanted to know if anyone has been able to successfully incorporate custom purchases in their site?

I want to sell universal digital downloads since I have around 100+ Medical PDFs. The PDFs are not valued individually rather I want to sell a fixed number of downloads so customers can download as many pdfs as they want. So far I haven’t found anything that can help me with a pre-created store where I can add custom products (digital downloads) where the product is not file but a number value stored in a DB that can be used to download files.

Here is the flow of what I’m trying to do:

  1. Customer logs into site. This is important because each customer will be able to purchase a set number of downloads.
  2. Customer wants to purchase 10 universal digital downloads. Once they’ve purchased this (not sure how to implement this with wix), they can download whatever PDF they want 10 times.
  3. For every download, their download counter decrements by 1 etc etc until they run out of downloads.

Anyone got any ideas on where I need to start? This is sort of like Audible where you can buy credits for books :grinning:.