Hello @gokuale,
thanks for the input, I’m really happy that you find my plugin useful.
Let me just break down your points to see if I understood your scenario correctly:
- User purchases license on external site
- External site makes an API request to the plugin
- Plugin saves the license key and external order ID inside the database
Please correct me if I misunderstood something. The API is currently in a small rework process, I am adapting the structure of the response and adding some more routes. That’s also why I have been delaying the API documentation. However, you can download the current Postman collection here:
https://www.bebic.at/assets/lmfwc.postman_collection.json
The response currently returns the object with the data, for example lmfwc/v1/licenses/{id} will return:
{
"id": "36",
"order_id": null,
"product_id": "28",
"license_key": encrypted license key,
"hash": hashed lciense key,
"created_at": "2019-03-25 11:44:04",
"expires_at": null,
"valid_for": "120",
"source": "2",
"status": "3"
}
This will be changed, the requests will have the following format and all license keys will be sent out DECRYPTED instead of ENCRYPTED.
{
"success" => true,
"data" => {
"id": "36",
"order_id": null,
"product_id": "28",
"license_key": decrypted license key,
"created_at": "2019-03-25 11:44:04",
"expires_at": null,
"valid_for": "120",
"source": "2",
"status": "3"
}
}