yzernik / squeakroad

Open source darknet market with lightning network payments
MIT License
43 stars 11 forks source link

Add support for digital listings #592

Open yzernik opened 2 years ago

yzernik commented 2 years ago

Allow people to sell digital files instead of physical goods.

1) Add new columns to listings table:

When a buyer pays for an order or a listing with is_digital true, the shipped field is automatically set to true upon payment, and the buyer immediately gets access to the uploaded file.

When the duration of the fileforsale expires, the fileforsale is automatically deleted, and the listing deactivated_by_admin is set to true.

The amount owed to upload the file is determined by the:

Add another admin setting called max_uploaded_files_usage, specified in megabytes. This will disallow users to upload files when the quota would be exceeded.