Forums / General Questions / Selling software licences

Selling software licences

Started by more_solutions on 22 May 2006, 3:56 PM · Views: 51,385

Results 61 to 80 of 131
8 Dec 2008, 8:55 PM
#61
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Selling software licences

Thank you for answer, actually it works with paypal well - I only have these problems with money orders. Could it be possible to adjust that code some easy way? Or if not - is it possible to add this information (licence code) to the "processing" e-mail instead of "pending" e-mail?

Anyway - I supose that answers on questions above might be negative ones, so once thank you for your help and I probably will have to deal with it.... :)

8 Dec 2008, 9:16 PM
#62
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: Selling software licences

Only, if there is nothing to be done - how to distinguish selling via credit card/pay pal and money order?

Eg. I am selling licence of product XX via credit card/paypal which works well, but if I buy the product XX via the money order - I receive licence immediately (this is wrong). Could I separate somehow these purchasing processes? (via attributes, categories etc.....?)

8 Dec 2008, 9:42 PM
#63
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Selling software licences

Yes, you could alter the code that's sending the licenses so that it doesn't send the license part if the payment method isn't suitable.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Dec 2008, 10:02 PM
#64
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: Selling software licences

OK :)

Could you indicate - which files and which functions I should alter? The order.php?

8 Dec 2008, 10:27 PM
#65
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Selling software licences

You used someone's code in an earlier post or some other thread to add to your outgoing order email, right?

That being the case, you'll have to take whatever code you added, and wrap an "if" statement around it, something like this:

if ($this->info['payment_module_code'] == 'paypal') {
  // ADD CUSTOM EMAIL CONTENT HERE
}
```... of course, replacing the // ADD CUSTOM EMAIL CONTENT HERE with whatever code you added

In this particular example, if the customer paid using the 'paypal' payment module, it will process your license logic. If not, it will skip it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Dec 2008, 10:43 PM
#66
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: Selling software licences

Have someone told you that you are genius? :))
Thx.
V.

8 Dec 2008, 10:44 PM
#67
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Selling software licences

LOL -- I like it when they say that over here: http://www.zen-cart.com/index.php?main_page=infopages&pages_id=14

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Dec 2008, 12:22 AM
#68
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: Selling software licences

vashik:

Have someone told you that you are genius? :))
Thx.
V.

But after some testing (I lost a few days with that) it stop working and I do not why. I changed many setting in PayPal, ZC, files - nothing works -Stupid!!!!!!!!!!!!!!
I do not recommend anyone who is not familiar with PHP, SQL stuff more!!!

After all I going to have all licences in separate TXT files as download ones. With that - I do not have any problems. When someone prepares an easy method - I would be happy, but this caused me a serious hadache - do not follow this if you do not what you do!!!! it will save you time and nerves!!!!:oops:

18 Dec 2008, 1:39 AM
#69
djsmyers avatar

djsmyers

New Zenner

Join Date:
Dec 2006
Location:
Mesa, Arizona USA
Posts:
39
Plugin Contributions:
0

Re: Selling software licences

But you have to admit, it was a great learning experience wasn't it? It's things like these that help me to appreciate all the effort the Zen-Cart team puts into the development and continued support for novice like my self. Of all the Open Source communities I'm a part of, this one is by far the best.

Daniel Smyers
It can be done, it's just a matter of by who!!!!

Support your Zen team, they work hard to get this right for you. The least YOU could do is buy them a cup of coffee. ***Visit the zen cart donation page (click here)***

18 Dec 2008, 1:47 AM
#70
vashik avatar

vashik

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: Selling software licences

djsmyers:

But you have to admit, it was a great learning experience wasn't it? It's things like these that help me to appreciate all the effort the Zen-Cart team puts into the development and continued support for novice like my self. Of all the Open Source communities I'm a part of, this one is by far the best.

True - nice experience, but - finally for me - it is not working - so I just warned others...

13 Mar 2009, 4:21 PM
#71
bobthebuilder avatar

bobthebuilder

New Zenner

Join Date:
Mar 2009
Location:
Colorado Springs, CO
Posts:
4
Plugin Contributions:
1

Re: Selling software licences

Wow, I have googled high and low for exactly this kind of functionality in zen-cart and just now ran across this thread - I guess I just wasn't phrasing the question just right. It seems to me that this is some basic functionality that has been missing in zen-cart for far too long...I mean not everyone that uses zen-cart wants to sell thousands of different doo-dads and chotckies, some of us just want to sell homegrown software products and integrate some kind of licensing scheme into our online store.

As it turns out, I also have been working (independently) on a mod that suits my particular needs. If there is interest by other zenners for this, I would be willing to share my ideas and, in the process, maybe learn a thing or two about how zen-cart really works ;)

My concept:

  1. create a product_licenses table to store customer license keys (it's interesting to note that my table looks nearly identical to more-solutions'ss - I guess great minds think alike ;)
  2. Customers that wish to demo our software must first create an account before they are permitted to download. This makes sense and is commonly done anyway.
  3. When the customer runs the application for the first time, s/he is prompted by the app to enter their user id/password provided at time of registration. The app then talks http to our web server (via a client_license_req.php file), and sends us the user's login info, product ID (hard coded into the app), machine ID (this is how we lock the license to a single machine), and operating system info (in case we only support certain versions of O.S.). This "initial contact" inserts a place holder record for the customers_id in the product_licenses table, which will later be filled in with a valid license_key if the customer decides to buy.
  4. The product_licenses table contains registration_date and expiration_date fields which define the evaluation period (typically 30 days, although the store manager can change this manually on a per-product basis).
  5. The app then encrypts some information and stores it on the user's machine in a "super secret file". If some crafty individuals discover and remove this information in an attempt to reset their evaluation period, the app assumes it is being run for the first time and again prompts for user login info. Since the demo expiration date is already in our product_licenses table, the crafty individual really hasn't gained anything. If they really, really, really want to outsmart our licensing scheme, they can try creating another user account and doing another download...but then we still have their machine ID, so we can prevent them from resetting their evaluation period. This means that if they wanted to use our software in a perpetual evaluation mode, they would have to continually swap out their machine and re-register and re-download and...probably more work than it's worth!
  6. Every time the app is run during the evaluation period, it connects to our server and requests the license_key. If the key is empty, the app starts up in "evaluation mode" and knows when the evaluation period is over - after that it simply won't run anymore. If the machine is NOT connected to the internet and can't get the license information, the app simply uses the encrypted evaluation period expiration date from the "super secret file". If the "super secret file" was removed, the app just won't run.
  7. If the customer HAS purchased a license during the evaluation period, we populate the product_licenses table with a valid license_key at the time the order confirmation email is sent. The license key is generated using uniqid() and we always make sure it really IS unique by looking in the product_licenses table first to see if it has already been assigned.
  8. The next time the app is run after the purchase confirmation, it will receive a valid license key from the server, and become activated. This license information is updated in the "super secret file" on the user's machine, so even if it is run disconnected from the internet, the app will remain activated. If the app can not connect to the internet, the user can still activate the app by entering the license key that was emailed to them.

So far I have the table definition, the client_license_req.php and the zen-cart menu and administration page for the product_licenses table. Still to be done is the hook in the order confirmation email which inserts the license key into the product_licenses table, but thanks to this email thread, I now know where to look for that.

Can anyone find any flaws in this licensing scheme that can be circumvented by a potential crafty hacker? Any comments/suggestions for improving this scheme would be much appreciated.

BTW, when this is all done, I'm planing on making it available as an add-on mod...as soon as I can figure out how to do that :)

Bob

1 Apr 2009, 12:16 PM
#72
stark avatar

stark

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: Selling software licences

Hi Everyone

I notice this thread is starting to dwindle with regard to activity.

I'm currently implementing a software shop for my institute, and will have to do something to streamline this whole process. I would love to have contact with a few people to share ideas. Perhaps it would be good set up a wiki page at the zen wiki, to summarize all the relevant issues and solutions.

Who is actively working on this? Does anyone have a good summary somewhere?

7 Apr 2009, 12:07 PM
#73
stark avatar

stark

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: Selling software licences

If no one has mentioned it yet, have a look at this page:
codeproject.com/KB/architecture/UnconventialWisdom.aspx

22 Jul 2009, 7:29 PM
#74
brigs avatar

brigs

New Zenner

Join Date:
Jul 2009
Posts:
1
Plugin Contributions:
0

Re: Selling software licences

Has anyone figured out how to do this yet. I also need to sell voucher login and pins and really need help. I have no idea about programming

Thanks

Brigitta

11 Aug 2009, 8:52 PM
#75
ilanm avatar

ilanm

New Zenner

Join Date:
Jul 2009
Posts:
1
Plugin Contributions:
0

Re: Selling software licences

Yup I'm looking for the same thing. I'm willing to pay for it! Please contact me if you have any idea :)

9 Oct 2009, 6:40 PM
#76
imagda avatar

imagda

New Zenner

Join Date:
Feb 2009
Location:
North Carolina (USA)
Posts:
5
Plugin Contributions:
0

Re: Selling software licences

melonian:

Hi there!

I've searched and I found some references but nothing too concrete about a product type that allows you to sell Phone Card Pin Numbers.

The "shop" would be really simple with TWO or THREE products of different prices (i.e. 10$ and 20$ recharge cards).
There would be X Pins (let's say a hundred pins each product).
Once somebody pays a 10$ prepaid card Pin, he/she would receive an email with one of the Pins, and obviously that particular pin would be deleted from the database.

I guess the functionality should be very similar to selling Software Licenses.
You have a number of X licenses, once somebody buys one, he's emailed the license so he can activate the application.
The only difference is that the licenses are not automatically generated, but they reside in a database.

Is there anything or anyone outther who has done this or know how could it be accomplished??

Thanks in advance :)

cheers

I really need this too....has anyone found an answer?
Thank you so much:ohmy:

30 Nov 2009, 5:03 PM
#77
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: Selling software licences

Does anyone want to get together and pay for a customized module? I definitely need one right away. Please PM me if you are absolutely willing to pay, and able to pay immediately, for a module with the following features :

  1. Enter serial numbers in a text file or via admin
  2. Automatically sends unique serial number when payment is collected online (such as credit card)
  3. Can be triggered manually via admin when payment is collected offline (such as cheque)

I'll post in this thread if the features are updated so please check the rest of the thread.

Cheers,
Shirley

18 Jan 2010, 9:35 PM
#78
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Selling software licences

Zen cart version: 1.3.8a

Hey guys, I'm not sure if this is the right area to post this in, but...

We sell a programming language software. Now, customers can buy a License ID and Password, but currently we have to do these manually.

I was hoping to be able to create a database stored with 10,000+ of these, and then each entry would have a flag that says whether or not the License ID has been "used".

Is there any way to be able to code in the zen cart that if the customer buys this product, to talk to the database, then grab an "unused" License ID, email it to the customer... and also email them the latest version of the software? It could maybe even be a link to the site where they can download it.

Any ideas on where to get started?

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

18 Jan 2010, 9:46 PM
#80
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Selling software licences

Gah! I was looking up "software licensing" on the forums and didn't even think to search the same keywords in the mods section. If this works out then I can't thank you enough!

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store