How to realize ionic in-app purchases?


Hi. I need to realize in-app purchases of Apple Store and Google Play. I’m already installed this lib:

The promise return for me success, but in this success I’m not have a products from Google Play (I created 2 products). And I’m not have an AJAX request from my app. When I debug, my phone see inapppurchase object with methods.
I don’t understand is it this library works? What library I need to use for supporting in-app purchases. Thank you