• Resolved maxi07

    (@maxi07)


    Hi there,
    I am really struggling to find out, how the activation feature works. If the activation limit has been reached, the API simply returns nothing. If the activation limit is not reached, but the expiration has exceeded, you are still able to activate the product (is this a possible bug?).

    Even further, how do I make sure, that activation is only possible one time per pc? Is there any solution to connect a license with a custom field, which might be a pc identifier? Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @maxi07

    thank you for your message and for using my plugin.

    As I explained here:

    https://ww.wp.xz.cn/support/topic/license-expires-but-still-can-be-activated/#post-13442138

    The current activation request is a bit confusing, I admit. It always returns a 200, regardless of what happens. You’d have to look into the body to figure out if it worked or not. I intend to change this in the future v3 API.

    Also, you should not be able to activate a license key if it has expired, I’ll look into that.

    Let me know if you have any other questions.

    @maxi07

    I must correct myself, the activation request does indeed return a 404 status code when the activation limit has been reached, along with the following body:

    {
        "code": "lmfwc_rest_data_error",
        "message": "License Key: 2E626-DZNTZ-SVVG7-Y3RQI-97ZI2 reached maximum activation count.",
        "data": {
            "status": 404
        }
    }

    The deactivation request also gives a 404 response if the license key cannot be deactivated any further, along with the following body:

    {
        "code": "lmfwc_rest_data_error",
        "message": "License Key: 2E626-DZNTZ-SVVG7-Y3RQI-97ZI2 has not been activated yet.",
        "data": {
            "status": 404
        }
    }

    Is it like this for you as well?

    PS: Please continue any further discussions here:

    https://ww.wp.xz.cn/support/topic/when-activation-via-api-fails-the-plugin-returns-the-status-404/

    I will mark this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API license activation’ is closed to new replies.