Is this possible to get Paid app purchase receipt from Google Play store?

Viewed 85

We are working on a Xamarin project that needs to get the date of purchase of a Paid App that was posted in Android Playstore. I can see iOS providing the direct API for validating the receipt. FYI, I'm not looking for an In-app purchase receipt. I'm looking for an initial paid app purchase/download receipt.

Is there any default API to get app purchase details?

1 Answers

This code will return the first install (purchased time)

context.getPackageManager()
                   .getPackageInfo("com.some.package.name", 0)
                   .firstInstallTime;

documentation source

Related