Registering Software Purchases

7 replies
Hello All,

I hope I have posted in the correct section.

I am in a process of writing a software that I will launch as a WSO

however, I am wondering how I can register the software purchases. So before a user can use the application, they will be required to register it.

How can I do this.

thanks
#purchases #registering #software
  • Profile picture of the author festi9
    You can use a activation section in your software that will be stored in the database the default value will be 0 when they register change it to 1.

    Now in the software section before any function starts check for activation if it is 0 for that particular user then kill the program by displaying a message to register and if it is 1 then grant all access.

    This is the simple way to do there are many other ways.

    Hope this helps.

    If you want more help then just let me know
    {{ DiscussionBoard.errors[7669404].message }}
    • Profile picture of the author shakil754
      hey,

      thanks for your help.

      This is exactly what I was thinking. I was going to use email address for authentication.

      However, this is a manual process so whenvever there is a sale, I would have to update a database. Its great when there are few sales but lets say there is a sale while I am a sleep. The person that purchased is not going to be too happy waiting.

      Are they any other automated options

      thanks
      {{ DiscussionBoard.errors[7670556].message }}
      • Profile picture of the author festi9
        Originally Posted by shakil754 View Post

        hey,

        thanks for your help.

        This is exactly what I was thinking. I was going to use email address for authentication.

        However, this is a manual process so whenvever there is a sale, I would have to update a database. Its great when there are few sales but lets say there is a sale while I am a sleep. The person that purchased is not going to be too happy waiting.

        Are they any other automated options

        thanks
        as i told you that was the on way to do that
        yes there are automation ways too.
        {{ DiscussionBoard.errors[7672189].message }}
  • Profile picture of the author atwellpub
    Warrior Plus allows for key generation. It pings a script you create which prints the key and includes it in the user's receipt. But You'll need to keep the key generation script private. Here's an example of one:

    <?php


    //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++
    // INSERT DATABASE CODE HERE
    //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++

    //conect to database
    //set up your database connect variables
    $hostname = "localhost"; //usually localhost
    $database = "databasename"; //name of database
    $username = "databaseusernamehere"; //database username
    $password = "userpasswordhere"; //username's password


    //code to connect to database
    $conn = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
    @mysql_select_db($database) or die( "Unable to select database");

    //define table name that holds keys
    $tablename = "wptt_licensed_users"; //if you alter the table name that holds the rss items, then change it here.

    //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++
    // BEGIN SCRIPT SETUP
    //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++

    $referrer= $_SERVER['HTTP_REFERER'];


    //define table name that holds keys
    $tablename = "wptt_licensed_users";

    //generate the license key for sending to paypal
    $secret_phrase ="somesecretstring0123456789";
    $key = str_shuffle($secret_phrase);
    $key = substr($key, 0, 20);



    //CREATE LICENSE KEY
    //below we perform two queries, but we really only need one. Feel free to consolidate!
    $query = "INSERT INTO $tablename (`license_key`) VALUES ('$key')";
    $result = mysql_query($query);
    //if (!$result){ echo "$query"; }


    //SET INITIAL PERMISSIONS
    $query = "UPDATE $tablename SET status=1, count=count+1, channel='wso', permissions='1.1.1.1.1.1.1' WHERE license_key='$key' ";
    $result = mysql_query($query);
    if (!$result){ echo $query; echo mysql_error(); exit; }

    //return the key so Warrior Plus can read it and provide it to the user.
    echo $key;


    ?>
    {{ DiscussionBoard.errors[7857090].message }}
  • Profile picture of the author juangarciamtl
    what you can do is a php file
    that before the client pay the software
    he will register, so the email will be in your data base and after the user pay
    you redirect them to activate the software
    basically they will just log in with their email
    and maybe a key generated randomly
    with the dowload link
    so in you software connect to the database
    and if the email and the key match
    you allow them to use the software
    if it doesn't match you send them to the sales page
    its very simple
    Signature

    More than 105 modules , scrapes, post and make money.
    http://autopostingtools.com/

    {{ DiscussionBoard.errors[7867741].message }}
  • Profile picture of the author mpettigr
    Another possibility is PHPMyLicense which is great licensing system thats really easy to use. It can encode and license your scripts to a specific domain. It also has a built in shopping cart and creates a license for a customer automatically on checkout.

    We use it for our own software products some of which are very expensive and we need protected at all costs. Its also great for time limited product trials and everything can be automated.

    You can find out more here: PHPMyLicense Licensing System

    I do hope this helps,

    Mike
    {{ DiscussionBoard.errors[7870526].message }}
  • Profile picture of the author botninja
    I was in the same situation as you and was doing everything manually - it was fine to start with as only a few orders were coming in (I make bots for beer money), but as the bots I made seemed to work a lot more orders started to come in.

    I now do everything automatically as suggested above. I have a IPN script that gets the ping back from PayPal, checks a few custom parameters and then adds the transaction ID to a database.

    The script then sends an email with their license number attached. They type that into the bot and when they run it, the bot checks home to a license server. If everything checks out then it runs otherwise the bot stops and they are asked to contact support.

    You can make it as simple or as complicated as you need to, but as long as you understand how it works you will be fine
    Signature
    Need something automated? Take a look at The Bot Shop
    {{ DiscussionBoard.errors[7911894].message }}

Trending Topics