Here you can manage licensing for your package. You can view all license along with allocated domain, edit any existing license, activate or deactivate any license here.

digital product license manager

Customers can generate and copy license key for their purchased items from order details page:

generate license key

You also can add license key for a product from here:

add new license key


Integration of licensing system is real easy. You can find the license server url and other required parameterto validate license from here:

Now, using the above pamareters, here is an example request:
example request

And the code to send license validation request using PHP:

function validate_license($licenseKey){
   $license_server = "http://localhost/wpdmpro/";
   $domain = $_SERVER['HTTP_HOST']; // domain name or IP
   $productId = 123; // Your Product ID
   $ch = curl_init();

   curl_setopt($ch, CURLOPT_URL,$license_server); 
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, "wpdmLicense=validate&domain={$domain}&productId={$productId}&licenseKey={$licenseKey}");
   // receive server response ...
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   $server_output = curl_exec ($ch);
   curl_close ($ch);
   return json_decode($server_output);
$response = validate_license('1234-1234-1234-1234');
if($response->status == 'VALID') {
 // License is valid
if($response->status == 'INVALID') {
 // License is invalid
if($response->status == 'EXPIRED') {
 // License is expired


So, what you need to do is, to post following data to your license server.

Valid Response:

  "status": "VALID",
  "expire_date": "0",
  "activation_date": "1477958400"

Error Response:

  "status": "INVALID | EXPIRED",
  "error" : "ERROR_MESSAGE"
  "expire_date": "1477958400",
  "activation_date": "1477958400"
Last Updated: Jul 10, 2017


  • Roham

    Hello, is there more documentation available on integration? I would like to send a validation request from a desktop application. Do I send a php array? What would the format need to be?


  • paymentollancecom

    I’m not a theme developer, I don’t understand how to integrate it to my code. Could you send me a php file for demo? Thanks

    • Shaon

      Please check the doc again, We’ve added the code to validate the license. Still, it will require some experience with coding to integrate license. Let me know where you trying to integrate license, I shall try to explain it in that way.

Leave a Reply