activated){
$status = null;
$args = array(
'wc-api' => 'software-api',
'request' => 'check',
'email' => $settings->app_email,
'licence_key' => $settings->app_key,
'product_id' => $settings->licence_type
);
$base_url = 'http://3xsocializersoftware.com/'.add_query_arg( 'wc-api', 'software-api', '');
$target_url = $base_url . '&' . http_build_query( $args );
// echo $target_url;
$data = wp_remote_get( $target_url );
$result = json_decode($data['body']);
// var_dump($result);
if (isset($result->success)){
if ($result->success){
$status = "Valid";
} else {
$status = "Invalid";
}
} else {
$status = "Invalid";
}
echo "
Licensed to: ".$settings->app_email."
";
echo "
Product ID: ".$settings->licence_type."
";
echo "
License key: ";
echo "

plugin_url."/images/".($status == "Valid" ? "tick" : "cross")."_icon.png\">
";
} else {
echo "Please, activate plugin using form below";
}
?>
Update your license status