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). I'm currently making my test and when I refund a test in google like that : 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? Thanks in advance. 回答1: Have to tried this function PurchasesUpdatedListener Listener interface for purchase