Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play In-App Billing and Web

I have an app that uses Google Play In-App billing. This functions correctly, we have a subscription and this subscription can only be processed from within the app.

We also allow the users to check the same information from our website.

We are wondering if there is a way to get status of the subscription of the in-app billing from Google via the web. From in app billing, we know the following information about the order:

purchaseToken, packageName, purchaseState, orderId, purchaseTime, productId

Basically we would want to know if the subscription was still active from the web without using the In app billing.

like image 986
user2158259 Avatar asked Oct 31 '25 17:10

user2158259


1 Answers

Yes, there is a Purchase Status API to get the status of the in-app billing from Google via http.

Google Play provides an HTTP-based Purchase Status API that lets you remotely query the status of a specific in-app product or subscription, or cancel an active subscription. 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.

You can get an overview on the Android Developer Site and a reference on Google Developers.

like image 174
NerdyTherapist Avatar answered Nov 02 '25 09:11

NerdyTherapist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!