HANDLE PREMIUM PLUGIN LICENSES WITH YOUR OWN LICENSING SERVER BUILT ON WORDPRESS & WOOCOMMERCE
This plugin is to be included in the plugin being sold (client plugin) so user who purchase the plugin can easily activate/deactivate their license.
To install this plugin, edit your composer.json
file:
"require": {
"thewebsolver/tws-license-manager-client": "dev-master"
}
Then from terminal, run:
$ composer install
License Manager for WooCommerce must be installed and activated on server WordPress installation for this client to interact, validate, activate/deactivate license.
Also, Server Manager must be used to activate/deactivate/validate/renew licenses.
License form was added as submenu of Settings menu.
- Server docs on License Manager and Server Manager.
- CLIENT.md contains all the codes that will intialize license manager client, add submenu page to display activation/deactivation form and get response back from license manager server when valid data are submitted.
- Set server URL
Client_Plugin::SERVER_URL
where your license manager server is (License Manager for WooCommerce plugin is installed, and activated) and installed Server Manager as a plugin (composer method recommended), - Set parent menu slug
Client_Plugin::PARENT_SLUG
(or create your own menu/submenu page, which is the recommended way), - Set cunsumer key, consumer secret, validation fields and their error message inside method
Client_Pligin::start()
Generate them on server.
To test license key, there must be a valid license key generated on server with proper WooCommerce Checkout checkout and order status changed to completed.
----------------------------------
DEVELOPED-MAINTAINED-SUPPPORTED BY
----------------------------------
███║ ███╗ ████████████████
███║ ███║ ═════════██████╗
███║ ███║ ╔══█████═╝
████████████║ ╚═█████
███║═════███║ █████╗
███║ ███║ █████═╝
███║ ███║ ████████████████╗
╚═╝ ╚═╝ ═══════════════╝
Shesh Ghimire - @hsehszroc