Hello Bruce,
You will never see the download link in the demo site because you cannot pay for an order there. The way that it works and can be configured is explained here
http://www.konakart.com/configurationfaq.php#How_can_i_configure_dig_down . We supply an image to show you what it looks like since you can't see it from the demo
http://www.konakart.com/images/digDownload.png .
If I install KK 2.2.0.7, do I need a real working payment gateway to test this feature?
The code that sets up the digital download is in com.konakart.bl.OrderIntegrationMgr for which you have the source code. In the method changeOrderStatus() there is the following code:
if (newStatus == OrderMgr.PAYMENT_RECEIVED_STATUS)
{
manageDigitalDownloads(orderId);
}
i.e. If the new status of the order is OrderMgr.PAYMENT_RECEIVED_STATUS then it sets up the digital downloads. If you want to see this for testing purposes for when say the order is saved, you can call manageDigitalDownloads() from the saveOrder() method of the OrderIntegrationMgr.
Is the download link just regular URL pointing to a file e.g. my.pdf?
No, it is secure. You have all of the source code in com.konakart.actions.DigitalDownloadAction . The way that it works is that a logged in user has to click on the link of the product that he wants to download (
http://www.konakart.com/images/digDownload.png ). A check is made that the product actually exists in the list of products that the customer is authorized to download (this list is set up when the order is paid for using the manageDigitalDownloads() method described above). If the product is one that the user can download and it hasn't expired etc. then the file is opened and written to the servlet output stream.
Regards,
Trevor