How do we implement in-app purchasing when the documentation is so inconsistent?

Viewed 436

The official documentation is incredibly unclear when it comes how you’re supposed to be handling in-app billing.

For starters there are two versions of TrivialDrive:

github.com/googlesamples/android-play-billing

And then from the official docs:

developer.android.com/google/play/billing/billing_integrate.html

(here it says to import the IInAppBillingService.aidl file and use ServiceConnections / IInAppBillingService)

developer.android.com/training/play-billing-library/preparing-iab-app.html

(here it says to look at Trivial Drive v2, and also use compile 'com.android.billingclient:billing:dp-1' instead of importing the .aidl file, and to use BillingManager)

developer.android.com/training/in-app-billing/preparing-iab-app.html

(here it says to look at Trivial Drive, import the .aidl file, and use the IabHelper + associated listeners for everything instead)

Can anyone clarify why such a crucial part of the Android platform has different explanations for things all over the place? What's the intended / latest framework we need to be using? Which pieces are outdated? Which TrivialDrive should I be referencing?

1 Answers
Related