Hello

Have some body any suggestions on how I best can implement my own license key generator?

I have been looking for a hook in the source code but I'm not sure where to begin. What I want to accomplish is that when a costumer buy's a software product where a license key is needed that the app generate this when the order have been paid and include the data in a e-mail to the costumer.

Some points that I also have to encounter:
- For the generation of the license I need the company name
- You can order more than copy of a software product and that require more license key's
- You can order different software product
- You can order products that require a license key and other who doesn't in the same orde

Those constraint, I believe, require that I need  a hook op product item level, but the payment notification is on order level.