I'm about to implement In App Purchases (IAP) for a premium-upgrade feature in an app I'm developing, and I've read the official developer guides. There, they mention that
You can use the Play Billing Library to simplify your development process, allowing you to focus your effort on implementing logic specific to your app, such as displaying in-app products and purchasing items.
and refer to the TrivialDrive_v2 sample app for a complete training class on how to implement in-app-billing.
Looking at the sample, and specifically the com.example.billingmodule.billing package, the phrase "simplify your development process" isn't exactly the first thing that comes to mind.
Is this really how we are supposed to implement in-app-purchases for premium upgrades? Seems way more complex than it should be, so I'm thinking maybe I've misunderstood something along the way, and that there is a much easier way to achieve this very common feature?