Skip to content
Store

Engine Pay

Digital downloads

Sell files such as PDFs, e-books or templates with Engine Pay, keep them in a private folder, and control how long download links work.

Engine Pay can sell files. After paying, the buyer gets a private download link on the receipt page and in the receipt email. The link only works for paid orders, for a set number of days and a set number of downloads.

You can attach a file to a Buy button or to a product.

1. Make a private downloads folder

Files you sell should sit in a folder outside your website folder, so nobody can open them by guessing their address.

  1. On your server, make a folder outside the website folder, for example /home/you/private-downloads. Your hosting control panel's file manager can do this.
  2. Upload your files into it.
  3. In Joomla, go to Components > Engine Builder > Options > Payments.
  4. Under Downloads, enter the full server path in Private downloads folder.
  5. Set Download link works for (days) (7 by default, 1 to 365).
  6. Set Downloads per order (5 by default, 1 to 100).
  7. Press Save & Close.

Files in the private folder can only be fetched through a paid order's link.

2. Attach the file

  • Buy button: in the element's After paying group, enter the file name in File to download after paying, for example guide.pdf.
  • Product: in the product form, enter the file name in Download file. For a download-only product, also switch Needs shipping off, so the buyer is not asked for an address or charged shipping.

Write just the file name, or a path inside the private folder such as ebooks/guide.pdf.

Engine Pay looks for the file in the private downloads folder first, then in your website folder. Files inside the website folder also work, but anyone who guesses their address can open them. The Orders screen shows a warning listing such files, so you can move them.

For safety, Engine Pay never serves script or configuration files (for example .php, .ini, .sql or .htaccess), and paths with .. are refused.

What the buyer gets

After paying:

  • The receipt page shows Download your file (one button per file for shop orders with several downloads).
  • The receipt email links to the receipt page: "Download your file and see your receipt here".
  • Signed-in buyers also find their files on the shop's account page under downloads.

The receipt page reminds the buyer: "Keep this page's address: the link works a few times for a few days."

For offline payments, the download unlocks when you press Mark paid on the Orders screen.

A download link stops working when:

  • the order is older than Download link works for (days), counted from the time it was paid, or
  • the order reached Downloads per order. The count is for the whole order, across all its files.

The buyer then sees "This download link has expired. Reply to your receipt email and we will send a new one." You can see how many times an order was downloaded in its row on the Orders screen.

If the file is missing from the server, the buyer sees "The file is missing. Please contact us."

Downloads and refunds

Marking an order refunded changes its status from Paid, so its download link stops working.

    Type to search all pages. ↑↓ to move, Enter to open.