jawwad wrote:Would you mind commenting on second bit of my question please:
"After above is done, how can I sell digital products e.g. software, ebooks from this website such that a license key is generated only after payment has been received in my account?"
Thanks
The first thing you want to do is make sure that download activation type is set to "When Order is paid". This will prevent the user from downloading the file until they have paid for it.
Regarding license key generation, if all customers will use the same key, you can include this in the download file.
If you want to generate individual license keys for the customer you will need to implement this yourself.
This is how I would do it.
1 - Create a method that will generate a valid license key for the software using whatever algorithm you choose
2 - Create an event handler that is raised when the order is paid
3 - Subscribe to this event and check if the order contains your downloadable product. If it does, generate the key and email it to the customer. Also create an order note against the order for your reference.