Requirements
- Paymenter 1.x.
- The PHP zip extension, to personalise zip files.
1. Upload the extension
Downloadable Products is a server extension. Pick one of the two ways.
From the admin panel
- Go to Extensions → Available Extensions and click Upload Extension.
- Choose the zip you downloaded and upload it.
Over SFTP
-
Extract the zip.
-
Upload the
DownloadableProductsfolder to the server extensions of Paymenter:/var/www/paymenter/extensions/Servers/DownloadableProducts -
Give the web server user ownership of the files:
chown -R www-data:www-data /var/www/paymenter/extensions/Servers/DownloadableProducts
The extension creates its database tables and its storage folder storage/app/downloads by itself.
2. Add the server
- Go to Extensions → Servers and click New server.
- Fill in a Name, for example
Downloads, and choose DownloadableProducts under Server. - Save.
3. Create a product
- Go to Administration → Products and create a product with a price.
- Open the Server tab and choose the server you just added.
- Save.
4. Upload the first version
- Open Downloadable Products → Versions in the admin menu and choose the product.
- Under Upload a new version, fill in the Version number, for example
1.0, choose the File and write a Changelog. - Set Status to Published, tick Mark as the latest version and click Upload.
5. Test an order
Order the product with a test account and pay. The service page now shows:
- Download Latest Version,
- View Releases & License,
- the License Key of the service.