Integration
Last updated
Was this helpful?
Last updated
Was this helpful?
After you’ve developed your app, go to the and add a product you will be integrating licensing to. You will need to do three things:
Save the product as a draft
Note the ID for the product at the top of page
Add licensing into your assembly, compile and upload files
You will need to download the and add it as a reference in your app.
External libraries might be a subject of tampering by hackers to work around the licensing infrastructure. It's a good practice to validate its origin by comparing the code signature and making sure it hasn't tampered before executing any functions.
This doesn't apply to the cTrader platform and trying to validate its origin using the method above won't work.
Those attributes serve as important data during communication with our licensing server. Make sure that these attributes are correct, and the version is up to date.
At the beginning of your app life cycle, you need to create an item license object where you pass your main class object with item attributes as a parameter.
The next thing you need to do is to check the license status. If the license is not valid, then a window will pop out asking for . If the user fails to validate his purchase, you will want to terminate the app or take some other action.
Optionally, you might want to check if the user is running the and make some features not available or limited to demo trading accounts only.