The Google Play Licensing service is primarily intended for paid applications that wish to verify that the current user did in fact pay for the application on Google Play.
After downloading the LVL to your computer, you need to set it up in your development environment, either as an Android library project or by copying (or importing) the library sources directly into your existing application package.
https://alexdisler.com/2016/02/29/in-app-purchases-ionic-cordova/
https://github.com/AlexDisler/cordova-plugin-inapppurchase
https://github.com/cranberrygame/cordova-plugin-payment-iap
Security concern hacking risk especially with Android https://developer.android.com/google/play/licensing/index.html
Setting Up for Licensing https://developer.android.com/google/play/licensing/setting-up.html
Setting Up the Licensing Verification Library
https://developers.google.com/android-publisher/#subscriptions