You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi,
We plan to sell software for download. The software will need individual licenses issuing once they have payed. How can we link include a link to the software that produces the licenses once payment has been payed?
Simon.
Offline
There are a few ways to do this. I'd recommend:
Set your offers up with an offer type of 'Service/Download', but do not add a download file to the offer, unless you have an installer or loader that needs to be sent along.
The best way to do this is to program a script that runs when the order is completed (which in your case as you're selling only service items, orders will complete when initially submitted - no shipping is done). There is an empty script at {private}/apps/ecom/ECOM_OrderMan/comp/0900_compcustom.php that you would edit to do this. Take a look there. The exec() function is passed an order array, and the function can do anything with that then return the order array modified.
In your case, I'd look in the order items for your downloads, then call your license generation URL remotely using the CORE_Remote class. Look at a module like {private}/apps/ecom/ECOM_Ship/ext/upstools.php for an example of how to call a remote URL with CORE_Remote and get content back. For each item that you generate a license, add the license key that you get back as option text or an item note or somewhere that will print for the item.
Offline