Skip to content

PayPerUse validation incorrect #3

@r-brown

Description

@r-brown

According to the wiki page for the PayPerUse licensing model, a validation response will contain valid=true if the sum of quantity of all active licenses (given credits) is bigger than the sum of usedQuantity of these licenses (used credits).

In fact, valid=true is also returned (alongside remainingQuantity=0) if the numbers are equal.

valid=false is only returned if (in pre-payment mode) you issue a validation with reserveQuantity=N and N is greater than the number of remaining credits.
(Note: I have only tried issuing calls with reserveQuantity=1, and only get valid=false if there are no credits remaining. I don't know for sure what would happen if there were 10 credits remaining and you asked for 11.)

So if the current behaviour is intended, the documentation needs to be corrected.
But to say that a PayPerUse license is valid when there are no uses left seems a little strange to me.

source: Labs64/NetLicensingClient-csharp#29
requester: @HappyPathAB

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions