Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to migrate In-app billing Version 2 to Version 3?

I received an email from Google Wallet on Friday saying:

Our records indicate you are a Play Apps developer who may be using Google Checkout APIs for notifications or reporting. On May 20, we announced that we will be replacing these APIs.

We provided replacement Play APIs, as of July 25, and anyone using the Checkout >notifications or reporting APIs needs to implement the Play APIs by August 22 to prevent >disruption to your scripts.

If you used the Checkout API for notifications, use the Play Purchase Status API. If you >used the Checkout API for reporting, you can automate the download of your estimated sales >and earning reports via the gsutil utility

I assume that the Google Checkout APIs I must be using are in relation to the In-app Billing Version 2 implementation that I have. It relies on the Billing Service to share interprocess communications with the Google Play Store app via local notifications. So I believe that I am supposed to look into the Play Purchase Status API. I looked into it, but I wonder if there are any tutorials or better documentation for the process of transitioning from the old In-app Billing Version 2 to use the new Google Play Developer API.

The Play Purchase Status API page states:

The API is designed to be used from your backend servers as a way of securely managing in-app products and subscriptions, as well as extending and integrating them with other services.

That really adds confusion for me since all of the purchase requests and tokens are handled by the Android app on the device. My back-end server just records the information that my app sends to it via web service call. Is my back-end server now expected to periodically poll the Google Wallet servers via Play Purchase Status API?

like image 352
user2716456 Avatar asked Feb 16 '23 11:02

user2716456


2 Answers

Google has now sent out emails that yes they ARE shutting down V2 of In-App Billing. I wrote a blog post discussing how to migrate (it's more like a re-write than a migration).

http://www.innodroid.com/blog/post/migrating-from-in-app-billing-v2-to-v3

Hopefully this helps others out. V3 is totally different (although much easier to understand and maintain, in my opinion).

like image 105
Greg Ennis Avatar answered Apr 30 '23 15:04

Greg Ennis


This has nothing to do with in-app billing version 2, or what you are using in your app. This is about the Web services formerly offered by Google Checkout, which are being deprecated. Unless your app is accessing those Web services directly, you don't have to do anything at the app side. If you have your own Web application (for reporting,etc.) that pulls data from the Google Checkout API, you have to update it or stop using it.

like image 38
Nikolay Elenkov Avatar answered Apr 30 '23 14:04

Nikolay Elenkov