Is it necessary to migrate from "Google Play Billing with AIDL" to "Google Play Billing Library"?
L

3

7

I know that "Google Play Billing with AIDL" deprecated, but the app on which I am working is so complex that I don't want to change the core parts of the application.

On the play console, I am getting the below message:-

"We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date."

I checked that "Google Play Billing Library" internally is also using the same "Google Play Billing with AIDL", so I am a bit confused that if the issues could only be resolved only after updating the library.

In my code, I am already using the API version 3 of the billing APIs.

private IInAppBillingService billingService;

Bundle buyIntentBundle = billingService.getBuyIntent(3, packageName, sku, type, developerPayload);
billingService.getSkuDetails(3, application.getPackageName(),
                                    ITEM_TYPE_INAPP, bundle);
billingService.consumePurchase(3, application.getPackageName(), iabOrder.purchaseToken);
billingService.getPurchases(3, application.getPackageName(), ITEM_TYPE_INAPP, null);
billingService.isBillingSupported(3, application.getPackageName(),
                    ITEM_TYPE_INAPP);

Can anyone please help me out in finding the main reason of why is it that I am getting this particular message of using the 3rd version of Google Play Developer API.

Lambertson answered 23/7, 2019 at 9:51 Comment(0)
L
0

I was getting this message because at the backend we were using a library that was using "Google Play Developer API v2" to validate the purchases.

The library which we were

  • library name : in-app-purchase
  • library version : ~1.8.2

Details can be seen over here

So this message will be removed once we update the library to any version above 1.10.0 and follow the steps to get new googleAccToken and googleRefToken to use in the code.

Lambertson answered 24/7, 2019 at 9:23 Comment(1)
This answer is incorrect "We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date." is a message about the Google Play Developer API, which is different than the Google Play Billing Library.Weakwilled
W
1

The Google Play Billing Library is the client API used in your Android app.

The Google Play Developer API is the server API used for managing purchases and managing your app on Google Play.

"We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date." is prompting you to update your Google Play Developer API, NOT the Google Play Billing Library used in your Android app.

https://github.com/android/play-billing-samples/commit/36459a4d015b40f8c6840f202fb1127c6ec95947 is an example of updating the Google Play Developer API to v3

Weakwilled answered 30/1, 2020 at 21:17 Comment(0)
L
0

I was getting this message because at the backend we were using a library that was using "Google Play Developer API v2" to validate the purchases.

The library which we were

  • library name : in-app-purchase
  • library version : ~1.8.2

Details can be seen over here

So this message will be removed once we update the library to any version above 1.10.0 and follow the steps to get new googleAccToken and googleRefToken to use in the code.

Lambertson answered 24/7, 2019 at 9:23 Comment(1)
This answer is incorrect "We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date." is a message about the Google Play Developer API, which is different than the Google Play Billing Library.Weakwilled
W
0

We have a warning message in red informing all developers that AIDL is deprecated and will be removed soon. Please upgrade to the Google Play Billing Library and follow this sample.

Wilma answered 25/7, 2019 at 1:23 Comment(1)
While migrating the billing api, shall I need the InAppBillingService import from the package com.android.vending.billing?Krueger

© 2022 - 2024 — McMap. All rights reserved.