Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel and refund ALL google play subscriptions

We have an app in the Google Play Store that we will no longer support in the future.

Users were able to buy subscriptions for the app's content.

We want to cancel all running subscriptions and refund the users.

The Google Play Developer Api offers the revoke method that expects the details (subscription id, token) for a single subscription and will cancel & refund that subscription.

We would have to do that for a couple of thousands of users (probably via a script).

Is there a better way to revoke all subscriptions? Has someone probably faced a similar scenario?

like image 784
fweigl Avatar asked Nov 09 '22 07:11

fweigl


1 Answers

I did not find a method of revoking all subscriptions at once so I wrote a little program that reads subscription data from a file and revokes them, one after another. You can check it out here: https://github.com/asco33/reimburser

like image 122
fweigl Avatar answered Jan 04 '23 01:01

fweigl