Showing posts from May, 2021

Using google play voided purchase API in flutter

Google's voided purchase API can be used to find the purchases which are either refunded , cancelled, charged back  by the user and use the same to take action against the purchased item(in-app purchases) in your app. you can get more information about the API here: before using the API you need to set up API access clients: 1) create or use an existing API project in google play console: =>play console=>menu=>settings=>developer account=>API access 2)  create a service account and grant it necessary permissions ("view financial reports" permission) 3) create credentials for using the API: =>google cloud console =><your project>=>API & services=>credentials=>create credentials=>service account =>ensue to copy the service account credentials in the form: { "private_key_id": ..., "private_key": ...,