Question

Detect refunds thorugh Google

  • 14 May 2023
  • 3 replies
  • 60 views

Badge +1

How to detect refunds that were made through Google? 

I tried Purchases.getCustomerInfo but this does not get updated. I thought of using Purchases.syncPurchases but the doc says “You should not call this programmatically on every app launch for every user. This can increase latency in your app and can unintentionally alias users together.”

So the solution would be to call it sometimes? Or is there a better way?


3 replies

Userlevel 4
Badge +8

If a refund is granted by Google or initiated through the Google Play console, it will not be detected as a refund in RevenueCat and the subscription will remain active until the end of the current billing period.  For more details, please see our docs for how we handle refunds: https://www.revenuecat.com/docs/refunds

Badge +1

I see, so after the current billing period will Purchases.getCustomerInfo have the updated information that there was a refund? 

Maybe I should have also mentioned that I am talking about a one-time lifelong purchase.

Badge +4

Can you explain why revenuecat cannot detect refunds processed by google?

Is there a workaround?

Can we use the google play billing api directly to determine if user’s subscription expired?

https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptionsv2

Reply