Lic Url parameter

Hi Guys,
I have created a Jira App.
Now I want to enable the licensing in my Jira App. I have gone Through the documentation of Cloud App Licensing . But I want to know that where should I write the code to check the lic URL parameter for all incoming requests and apart from that what changes I need to make to enable the licensing in my app.
Thanks