I'm developing a jira plugin, on my license manager page i try to show some buttons:
if (uriFactory.isPluginBuyable()) {
this.velocityParameters.put("licenseUriBuy", uriFactory.getBuyPluginUri(licenseUri));
showButtons = true;
}
if (uriFactory.isPluginTryable()) {
this.velocityParameters.put("licenseUriTry", uriFactory.getTryPluginUri(licenseUri));
showButtons = true;
}
if (uriFactory.isPluginRenewable()) {
this.velocityParameters.put("licenseUriRenew", uriFactory.getRenewPluginUri(licenseUri));
showButtons = true;
}
i always get "false", my plugin it's not on the market yet, does it need to be on the market for this to work?
regards,
Community moderators have prevented the ability to post new answers.
Hi Carlos,
These methods do not connect to external systems in order to determine whether the plugin is tryable or buyable. They simple check the status of the installed license. For example, if there is no license installed, isPluginBuyable will return true.
I can't think of a scenario that would cause all of these methods to return false. I might suggest creating a fresh plugin with atlas-create-jira-plugin, and using atlas-create-jira-plugin-module to automatically generate licensing code. That will certainly behave as expected, and from there it might be possible to determine what your plugin is doing differently that causes the problem.
cheers,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.