Obtaining the Online Store URL Correctly

In order to direct extension users to the online store that sells licenses for this extension, the URL for the online store is placed on the screens of the extension. For an example, see the “License required” messages in previous sections. This URL can be manipulated by the Reseller/Service provider depending on how they wish to sell licenses to their customers (see the Administrator’s Guide section Reselling extensions for information). Therefore, it is important to correctly obtain the online store URL that is actual for this specific Plesk installation.

Note: Do not hardcode the specific online store URL into the extension GUI.

Use the pm_Context::getBuyUrl() method to get the actual online store URL.