Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android inapp-billing - find out API version

I'm pretty sure that i'm using Inapp-billing v3 in my app ("IInAppBillingService.aidl" is v3 as far as i know - "IMarketBillingService.aidl" would be v2 according to the google-documentation).

however, i received an email from google asking me to update my app from v2 to v3 as at least one purchase was made using the old API in the past 3 months.

Also - i never had V2 implemented in my app so an old version should not be the case.

Is this a mistake by google, or was one of my uses purchasing something using a old play-store, so some kind of support/compatibility-mode was activated?

Or am i mistaking and i'm really using v2 of the api?? how can i find out (for sure)which version i have implemented?

this may be a stupid question, however, the email from google confused me...

like image 758
Matthias Avatar asked Sep 13 '14 08:09

Matthias


People also ask

What is V3 in-app billing API version?

In-app Billing API version goes with the Google Play Store and v3 is actually quite old (at least 3 years old) PBL will check user's client version and will return this error message if their devices have a very old Play Store installed on their devices.

How to check if in-app billing is available?

Before any usage it's good practice to check in-app billing services availability. In some older devices or chinese ones it may happen that Play Market is unavailable or is deprecated and doesn't support in-app billing. Simply call static method BillingProcessor.isIabServiceAvailable (context):

What is V3 billing library in Android?

Android In-App Billing v3 Library. This is a simple, straight-forward implementation of the Android v3 In-app billing API. It supports: In-App Product Purchases (both non-consumable and consumable) and Subscriptions. You project should build against Android 2.2 SDK at least.

Why am I getting a billing API version error when upgrading PBL?

If you're migrating from AIDL to PBL and you didn't check client's billing API version before, you could end up with seeing users reporting this issue. You shouldn't expect this error message if you're upgrading from PBL 1.x to 2.0 because PBL 1.x is newer than v3 and it will also do this check.


1 Answers

I got the same email as well and am confused by it.

I also use IInAppBillingService.aidl and within IABHelper there's a method launchPurchaseFlow which calls getBuyIntent with the first parameter being version, which is set to 3 so I'm pretty certain I'm using v3.

The IABHelper I'm using is littered with v3 checks and comments.

Suggest you check the same piece of code to make sure and put it down to a Google error otherwise.

like image 54
CodeChimp Avatar answered Sep 30 '22 19:09

CodeChimp