Explains how you can set up implement usage-based licensing / pay per use / pay per click
By supporting usage-based licenses, we can monetize a group of users that would otherwise not have purchased the product (eg. because it is too expensive).Example project can be found here.
IntValue
to eg. 1000 and if you charge in the end of the billing cycle based on actual usage, you can set it to 0.
IntValue
: using IncrementIntValue
, DecrementIntValue
or SetIntValue
. In your software, you should either use IncrementIntValue
or DecrementIntValue
(remember that you need to create a specific access token that permits use of one of the methods). In other words, you only want the client software to update the counter in one direction only. SetIntValue
allows you to assign an arbitrary value, so it should only be used on the server side (where you have control).
Note that IncrementIntValue
or DecrementIntValue
methods allow you to specify an upper or lower bound, which is especially useful if you have a pay upfront model. For example, if you give your users a certain credit, eg. 1000, you can then specify a lower bound to be 0, so that once it is reached, they won’t be able to use that particular feature.
[{"Name":"credits", "Freq":30, "Default":10}]
. This will set the int value of all data objects associated with a license key that have the name “credits” to 10 every 30 days.[{“Name”:”credit”, “Freq”:1, “Default”:5}, {“Name”:”credit2”, “Freq”:2, “Default”:5}]
.