如何使用Google BillingClient库检测退款 [英] How to detect refund with google billingclient library
问题描述
我想知道如何检测退款或任何类型的应用内购买取消(不是订阅,也不是消耗品).
I was wondering how to detect a refund, or any type of cancelation of an in-app purchase(not a subscription and not a consumable).
我目前正在测试,当我在Google退还测试费用时:
I'm currently making my test and when I refund a test in google like that :
该购买仍然存在于billingClient.queryPurchaseHistoryAsync()
(甚至在queryPurchase()
中).
The purchase is still present in billingClient.queryPurchaseHistoryAsync()
(even in queryPurchase()
).
如何检测到此类更改以及如何为退款用户禁用我的应用?
How can I detect such changes and how can I disable my app for refunded users?
谢谢.
推荐答案
我确实了解您对退款项目的担心.
I do understand your concern regarding refunded items.
如果您提供应用内商品,则可以使用无效购买API 请求您的应用内商品的无效购买清单.当用户要求退款以进行应用内购买时,您可以查看已购买的商品并从该用户那里取回已退款的数字商品.
If you offer in-app products, you can use the Voided Purchases API to request a list of voided purchases for your in-app products. When a user requests a refund for in-app purchases, you can see what was purchased and take back the refunded digital goods from that user.
为保护您的应用程序免遭退款滥用,请使用保护您的应用程序退款滥用帮助指南中的内容,以获取保护应用内应用产品的最佳做法.
To protect you app from refund abuse please use the Protect your apps from refund abuse help guide, for the best practises in protecting your app’s in-app products.
这篇关于如何使用Google BillingClient库检测退款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!