跟踪用户/谷歌执行的 Google Play 退款 [英] Track Google Play refunds performed by user/google

查看:58
本文介绍了跟踪用户/谷歌执行的 Google Play 退款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望存储何时向用户退还 google play 购买以进行数据分析.

We want to store when a google play purchase is refunded to a user for data analysis.

根据文档,用户可以通过 3 种方式为 Google Play 上的订阅申请退款:https://support.google.com/googleplay/answer/2479637?hl=zh

According to documentation, there are 3 ways for a user to request a refund for a subscription on google play: https://support.google.com/googleplay/answer/2479637?hl=en

如果用户向开发者(我们)要求退款,我们可以在我们的服务器上跟踪它并在我们端管理它,没问题.不过,用户也可以直接向谷歌申请退款.问题是我们找不到有关此类退款的文档.

If the user requests the refund to the developer (us), we can keep track of it on our servers and manage it on our end, no problem. However, users can also ask google for a refund directly. Problem is that we can't find documentation on this kind of refunds.

查看订阅的 API 文档,它没有提供购买是否已退款:https://developers.google.com/android-publisher/api-ref/purchases/subscriptions

Looking at the API documentation for subscriptions, it doesn't provide whether a purchase was refunded or not: https://developers.google.com/android-publisher/api-ref/purchases/subscriptions

还尝试查看实时开发人员通知系统.好像没有退款活动.https://developer.android.com/google/play/billing/realtime_developer_notifications#json_规范

Also tried looking into the realtime developer notifications system. Looks like it doesn't have an event for refunds. https://developer.android.com/google/play/billing/realtime_developer_notifications#json_specification

知道如果谷歌最终退款会发生什么吗?

Any idea what happens if google refunds a purchase on their end?

感谢所有帮助!

推荐答案

根据我目前对实时事件的经验,在退还订阅后会发送两个实时事件.首先,发送 SUBSCRIPTION_CANCELED 事件,然后发送 SUBSCRIPTION_REVOKED 事件.

In my experience with the realtime events thus far, after a subscription is refunded two realtime-events get sent. First, a SUBSCRIPTION_CANCELED event is sent, followed by a SUBSCRIPTION_REVOKED event.

在我的服务器上,我将 SUBSCRIPTION_CANCELED 视为正常取消,然后如果该事件之后是同一订阅的 SUBSCRIPTION_REVOKED 事件,我会将其标记为已退款.

On my server, I treat the SUBSCRIPTION_CANCELED as a normal cancel, then if that event is followed by a SUBSCRIPTION_REVOKED event for the same subscription, I mark it as refunded.

可以在以下链接中找到这两个特定事件的详细信息:https://developer.android.com/google/play/billing/realtime_developer_notifications.html#json_specification

Details can be found for these two specific events, as you also mentioned, at this link: https://developer.android.com/google/play/billing/realtime_developer_notifications.html#json_specification

这篇关于跟踪用户/谷歌执行的 Google Play 退款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆