Purchase App and offer one or other functionality depending on it?

I want to include in my app the option for purchasing it and, depending on if a user has purchased or not, offer new functionalities.

How can I use IronSource API to offer the purchase for the app and also detect if the user has purchased or not, in order to show the basic or the complete functionality?

Thank you.

The Unity LevelPlay segments tool helps you create these dynamic groups, control their ad journeys, and get valuable insights on revenue and engagement so you can continuously improve your strategy.

Not sure if above is what you need.