licenses

I will present a software project to be sold on the platform. How can I obtain the license keys that the platform will provide to buyers in advance, so that I can add these licenses to my license verification system, where the buyer places the license and it is verified directly?

You can’t - that’s not how it works.

Check this from @baileyherbert How to verify a purchase code using the Envato API

1 Like

Can you explain more?
I searched the link and explanation
The link that enables me to create a license code compatible with the platform was not found

Envato doesn’t allow you to bring your own license codes, so what you’re trying to do is not possible, and you’ll need to change your strategy.

Envato issues their own license codes in a UUID format for each purchase. These are called “purchase codes” and they are randomly generated at the time of purchase. There is no way to obtain them beforehand.

If you’re going to implement a license verification system, you must ask the buyer to enter their purchase code, and use the Envato API to check the validity of that purchase code in real-time. The link above is a tutorial for doing exactly that.

This also gives you a lot more information about the purchase than you would have if you brought your own license codes – such as the buyer’s username, the date of purchase, and the expiration date of their support entitlement.

1 Like

As mentioned by @charlie4282 this is not how it works. Everytime a purchase is made envato grants a purchase code to the buyer and you can build a verification system inside your app which will allow the user to enter that purchase code as license. Once that code is entered and sent to Your Server (or any other way you like to build this) you can use Envato API to get the sale connected with that purchase code. if you are using your API key (directly inside the project sold to user which is highly not recommended or your own server) it will respond with the item details or else an error code (400 or 404 depends) using which you can either respond with valid or invalid.

Another valid and more appropriate approach would be to use OAuth, you can use OAuth to fetch the buyer’s purchase against the purchase code (make sure to check if the response returned has your username in author’s username because this can easily be exploited if this check is missing). Moreover this will prevent rate limits as well as it will be very much helpful if you plan to develop a CRM for your clients in future as you will already have the clients data available with you.

If you are using Laravel this gets more easier, let me know if you use Laravel I will provide you with helpful resources.