[Skip to main content](#vessel-content)

#   Use HikaSerial to generate software license

##

- **[dirkey](/forum/user/34021-dirkey "View dirkey's Profile")**
- [![dirkey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34021-dirkey "View dirkey's Profile") Topic Author
- [ Offline](/forum/user/34021-dirkey)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175107](#175107) by [dirkey](/forum/user/34021-dirkey "View dirkey's Profile")  *[Use HikaSerial to generate software license](/forum/15-general-talk-about-hikaserial/872229-use-hikaserial-to-generate-software-license#175107 "Hi,  we like to use HikaShop &amp; HikaSerial to ship our software. Before we order it, I like to know if the following use case is possible.  Our license keys will be generated by adding a user relevant information (like Username) to a salt and hash the result. These two information will made up the license key.  &#42; Is it possible to generate the liicense key this way (HikaSerial)? Maybe how?  &#42; Is it possible to add these to information to the bill after a successful payment?  Thank you, Dirk")* was created by *[dirkey](/forum/user/34021-dirkey "View dirkey's Profile")*

Hi,

we like to use HikaShop &amp; HikaSerial to ship our software. Before we order it, I like to know if the following use case is possible.

Our license keys will be generated by adding a user relevant information (like Username) to a salt and hash the result. These two information will made up the license key.

1. Is it possible to generate the liicense key this way (HikaSerial)? Maybe how?
2. Is it possible to add these to information to the bill after a successful payment?

Thank you,
Dirk

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MjIyOS11c2UtaGlrYXNlcmlhbC10by1nZW5lcmF0ZS1zb2Z0d2FyZS1saWNlbnNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 weeks ago [\#175111](#175111) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Use HikaSerial to generate software license](/forum/15-general-talk-about-hikaserial/872229-use-hikaserial-to-generate-software-license#175111 "Hi,  we like to use HikaShop &amp; HikaSerial to ship our software. Before we order it, I like to know if the following use case is possible.  Our license keys will be generated by adding a user relevant information (like Username) to a salt and hash the result. These two information will made up the license key.  &#42; Is it possible to generate the liicense key this way (HikaSerial)? Maybe how?  &#42; Is it possible to add these to information to the bill after a successful payment?  Thank you, Dirk")*

Hi,

1. It is possible to generate such licence key using HikaSerial.
There is no pre-existing generator for your specific case but it is possible to create your own serial generator.
The HikaSerial developer documentation give the general information about how the plugins works but using the existing plugins will be useful too.
The plugins in HikaSerial are also examples, giving different use cases.

[ www.hikashop.com/support/documentation/1...er.html#fct\_generate](http://www.hikashop.com/support/documentation/125-hikaserial-developer.html#fct_generate)
The generate function give the "$order" parameter which is the HikaShop order. Thanks to that, you can retrieve a lot of information about the order and about the customer.
The plugin "secure e-book" is using such thing, if you want to have a sample code.

If you have some troubles to create your custom serial generator, our support will help/guide you for that.

2. HikaSerial generate the serials once the order is confirmed.
The serial will be also display in the "order notification email" sent by HikaShop.
Using the plugin "attach serial", you can create a special image and add it as attachment to the order notification email.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [dirkey](/forum/user/34021-dirkey "View dirkey's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MjIyOS11c2UtaGlrYXNlcmlhbC10by1nZW5lcmF0ZS1zb2Z0d2FyZS1saWNlbnNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dirkey](/forum/user/34021-dirkey "View dirkey's Profile")**
- [![dirkey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34021-dirkey "View dirkey's Profile") Topic Author
- [ Offline](/forum/user/34021-dirkey)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 6 days ago [\#176379](#176379) by [dirkey](/forum/user/34021-dirkey "View dirkey's Profile")  Replied by *[dirkey](/forum/user/34021-dirkey "View dirkey's Profile")* on topic *[Use HikaSerial to generate software license](/forum/15-general-talk-about-hikaserial/872229-use-hikaserial-to-generate-software-license#176379 "Hi,  we like to use HikaShop &amp; HikaSerial to ship our software. Before we order it, I like to know if the following use case is possible.  Our license keys will be generated by adding a user relevant information (like Username) to a salt and hash the result. These two information will made up the license key.  &#42; Is it possible to generate the liicense key this way (HikaSerial)? Maybe how?  &#42; Is it possible to add these to information to the bill after a successful payment?  Thank you, Dirk")*

Hi,

I bought hikashop essential and hikaserial. There are some trouble to set it up correctly:

1. The license key should be only displayed in the invoice. Not in the order notification.
2. If the order is payed (automaticly or by set the order to payed), how could I setup to send an email to the customer with the license key and the invoice as an pdf.

Did I miss something?

Thanks for help,
Dirk

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MjIyOS11c2UtaGlrYXNlcmlhbC10by1nZW5lcmF0ZS1zb2Z0d2FyZS1saWNlbnNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 6 days ago [\#176383](#176383) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Use HikaSerial to generate software license](/forum/15-general-talk-about-hikaserial/872229-use-hikaserial-to-generate-software-license#176383 "Hi,  we like to use HikaShop &amp; HikaSerial to ship our software. Before we order it, I like to know if the following use case is possible.  Our license keys will be generated by adding a user relevant information (like Username) to a salt and hash the result. These two information will made up the license key.  &#42; Is it possible to generate the liicense key this way (HikaSerial)? Maybe how?  &#42; Is it possible to add these to information to the bill after a successful payment?  Thank you, Dirk")*

Hi,

I'm a little bit confuse between your first and second point ; in my head I see them in contradiction.
HikaSerial generate the serial data when the order have a determined order status ; you can change it in the HikaSerial configuration (assignable order status).
It display the serials in the different emails and orders (backend + frontend). You can change the way that the serials are display using view override ("orderserial &#124; show_..." views). So you can add some specific code in order to not display the serials depending your specific conditions.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MjIyOS11c2UtaGlrYXNlcmlhbC10by1nZW5lcmF0ZS1zb2Z0d2FyZS1saWNlbnNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.152 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
