Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there webhook to get notification about cancelled inapps in Google Play?

In my app, I need to handle cancelation of in-app purchases (not subscriptions) on the backend. In the best case, I'd like to get some notification when a user cancels in-app.

So I've found this API: https://developer.android.com/google/play/billing/realtime_developer_notifications . But this thing seems to be suitable only for subscriptions.

This API has sense: https://developers.google.com/android-publisher/api-ref/purchases/voidedpurchases/list . I can check it periodically, but this task can become too time-consuming as the count of users grows.

So is there some more clean way to get notifications about canceled in-apps? Or do I have to check statuses all the time?

like image 358
VasyaFromRussia Avatar asked Mar 25 '19 08:03

VasyaFromRussia


People also ask

How to configure notifications for webhooks?

Log in to your Customer Area. If you want to configure notifications at merchant level, switch to your merchant account. Go to Developers > Webhooks. In the upper-right corner, select the + Webhook button. Next to Standard notification, select Add. URL. Your webhook server's URL. It must be a public URL. SSL (TLS) Version. Select TLSv1.2. Method.

What happens when I trigger a webhook in actions?

When you trigger a webhook in your Actions, Google Assistant sends a request with a JSON payload to your fulfillment, which contains the name of the handler to use to process the event. Your fulfillment endpoint can route the event to the appropriate handler to carry out logic and return a corresponding response with a JSON payload.

When to call the Google Play developer API after receiving notifications?

Note: You must call the Google Play Developer API after receiving Real-time developer notifications to get the complete status and update your own backend state. These notifications tell you only that the purchase state changed. They do not give you complete information about the purchase.

How do I set up notifications for managed Google Play apps?

Sign in to managed Google Play. From the Apps menu, click My managed apps. Click any app to open an app details page. Click Approval Preferences. Click the Notificationstab. Enter the email address to receive the notifications (under Add Subscriber), and click Add. You can add as many subscribers as you need.


1 Answers

Currently voidedpurchases is the only answer. If you use the startTime parameter it shouldn't be that messy to track when last you called the API and just ask for voided purchases since then.

like image 192
Femi Avatar answered Oct 20 '22 09:10

Femi