WooCommerce API Manager PHP Library for Plugins and Themes

$99.00 / year

WooCommerce API Manager PHP Library for Plugins and Themes

$99.00 / year

The WooCommerce API Manager PHP Library for Plugins and Themes is a PHP Library that can be dropped into a plugin and theme for API Key authentication and software updates with the WooCommerce API Manager plugin.

Category:

The WooCommerce API Manager PHP Library for Plugins and Themes is a PHP Library that can be dropped into a plugin and theme for API Key authentication and software updates with the WooCommerce API Manager plugin.

Notable Features

The WooCommerce API Manager PHP Library for Plugins and Themes makes it easy for clients to activate their software. Notable features are the ability for customers to do automatic updates, error reports on the activation screen to provide some visibility into errors on the client side, and the ability for the activation screen to appear as a submenu for a top level menu.

Using the PHP Library

The WooCommerce API Manager PHP Library for Plugins and Themes provides the code needed to connect a plugin or theme to the PHP Library after it has been dropped into the plugin or theme. The second argument in the code block example below is for the product_id. If the product_id is left blank the customer enters the product_id, if the product_id is hard coded, then the customer will not need to enter the product_id.

woocommerce api manager php library code block

Once the product is activated, a notice is displayed for the customer to activate the plugin or theme.

woocommerce api manager php library activate admin notice

On the activation screen, if the product_id was hard coded then the customer only needs to enter the API Key. If this is a variable product variation, each version of the software will require a separate file with the correctly hard coded product_id matching the customer’s product purchase. This is why not hard coding the product_id is the preferred method for variable product variations as shown in the next example.

woocommerce api manager php library activation screen no product id

On the activation screen, if the product_id was not hard coded then the customer needs to enter both the API Key and the product_id. This is the preferred method for variable product variations.

woocommerce api manager php library with activation screen with product id

After the plugin is activated, the number of activations remaining is displayed.

woocommerce api manager php library activated screen

For custom menus the admin message may not work, so in version 2.9 of the library an Activation info section was added that can display remote store and local server errors to assist in troubleshooting.

Screen Shot 2023 04 27 at 8.38.53 PM

The Activation info section can also display live activations information whether the API Key is activated or not.

Screen Shot 2023 04 27 at 9.39.32 PM

Screen Shot 2023 04 27 at 9.41.51 PM

Orders that have API Key activations will display a key in the orders list.

woocommerce api manager php library order has activation key

On the order screen, the activations will be listed.

woocommerce api manager php library order screen with activation

When an update is available the update details will be displayed. Plugins and themes can be updated automatically just like any other plugins and themes.

woocommerce api manager php library update available

woocommerce api manager php library plugin screen update

Click on the view version details link will display the details you have provided and configured just like any other plugins and themes.

woocommerce api manager plugin details

After the plugin is deactivated, the activations remaining is displayed.

woocommerce api manager php library deactivated screen

Auto-updates for both plugins and themes as introduced in WordPress 5.5, and with Parent and Child themes individually even when one is not the active theme, but has an activated API Key.

wc am php lib doc 8

wc am php lib doc 9

Using Postman for Testing

A preconfigured Postman .json file collection template is included to make it easy to test the API functions. Server URL, and keys/values, will need to be modified specific to your product and server.

Software Update File Hosting

The file used for software updates can be hosted on the local server, Amazon S3, or from any remote URL. The file download URL is wrapped in a secure URL that expires after the expire time you set.


Reviews

There are no reviews yet.

Be the first to review “WooCommerce API Manager PHP Library for Plugins and Themes”

Your email address will not be published. Required fields are marked *