简体   繁体   English

这可以从 Google Play 商店获得付费应用购买收据吗?

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

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.我们正在开发一个 Xamarin 项目,该项目需要获取在 Android Playstore 中发布的付费应用的购买日期。 I can see iOS providing the direct API for validating the receipt.我可以看到 iOS 提供直接 API 用于验证收据。 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?是否有任何默认的 API 来获取应用购买详细信息?

This code will return the first install (purchased time)此代码将返回第一次安装(购买时间)

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

documentation source 文档来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM