NextLi - to manage Single Domain Licence

Version: 1.0.0

Info #back to top

  • Item Name : NextLi - EDD License Management System Plugin.
  • Item Version : v1.0.0
  • Last Updated : 07 Feb 2021
  • Author : ThemeDev

Installation #back to top

There are 3 part of install to complate setup.

Setup Plugin

  1. Download the installable WordPress plugin nextli.zip files.
  2. Upload and active plugin from WordPressPluginsAdd New this plugin on your WP Server https://example.com/
  3. Before Active, Must be install and Active Plugins [ EDD(Easy Digital Download), EDD License manager, NextCode ]
  4. After activation, next step is to configure your settings. Go to WordPress Dashboard and click NextLi Settings → Api Settings → API URL : https://api.example.com/ . And setup menu or others Settings.

Setup Server

  1. Download the installable Server source code server.zip files.
  2. Upload this files on your api server → https://api.example.com/
  3. After uploaded, next step is to configure your with Wordpress Plugin NextLi. Open index.php files and set your WP URL define( 'EDD_URL_NEXTLI', 'https://example.com/');

Check licence (Active or Revoke)

This api use of your product for checking valid licence.

  1. Open documentation.txt for Details. Use API for check valid licence and permission for use your products.
  2. Follow this code:

$product_id = 10;
$key = isset($_POST['key_license']) ? trim($_POST['key_license']) : '';
$config['key'] = $key;
$config['eddid'] = $product_id;
$config['eddv'] = '1.0.0';
$config['eddtigger'] = 'active'; // active, revoke


$header   = array();
$header[] = 'Content-length: 0';
$header[] = 'Content-type: application/json; charset=utf-8';

$verify_url =  "https://api.example.com/?".http_build_query($config, '&');
$ch_verify = curl_init( $verify_url );

curl_setopt( $ch_verify, CURLOPT_HTTPHEADER, $header );
curl_setopt( $ch_verify, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch_verify, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch_verify, CURLOPT_CONNECTTIMEOUT, 5 );
curl_setopt( $ch_verify, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');

$result = curl_exec( $ch_verify );
curl_close( $ch_verify );

$result = ($result != "") ? json_decode($result) : false;

Extended Licence

  1. Setup Extended Licence for product wise. Open extended-list.php files.
  2. Setup EDD Product Id and Licence key:

function get_extended_key(){
    return [
            '100' => 'extendedlicense-d15bdaade3f97602a875f675ef37d2a3-fghfgh', // productid = key
    ];
}

Release Notes

v1.0.0

  • Initail Release