No results available
ResetWooCommerce Software License Manager
by Omid Shamlu
Description
Seamless integration between WooCommerce and the Software License Manager Plugin. Originally adopted from EDD Software License Manager, thanks to flowdee (coder@flowdee.de).
Github repository
https://github.com/shamloo/wc-software-license-manager
Features
Automatically creates license keys for each sale with WC
Licensing is optional and can be activated/deactivated individually
Send generated license keys to your customers within your existing email notifications
Sample code
‘;
echo ‘
‘;
/*** License activate button was clicked ***/
if (isset($_REQUEST[‘activate_license’])) {
$license_key = $_REQUEST[‘sample_license_key’];
// Send query to the license manager server
$lic = new youlice_class($license_key , YOUR_LICENSE_SERVER_URL , YOUR_SPECIAL_SECRET_KEY );
if($lic->active()){
echo ‘You license Activated successfuly’;
}else{
echo $lic->err;
}
}
$lic = new youlice_class($license_key , YOUR_LICENSE_SERVER_URL , YOUR_SPECIAL_SECRET_KEY );
if($lic->is_licensed()){
echo ‘Thank You Phurchasing!’;
}else{
?>