Android 应用内 onPurchaseStateChange
应用内功能的示例代码具有:
onPurchaseStateChange(PurchaseState purchaseState, String itemId,
int quantity, long purchaseTime, String developerPayload)
它带来了有关应用内购买的信息(ID、金额等)。
我缺少交易中支付的价格。我怎样才能得到它?
The sample code for the in-app feature has:
onPurchaseStateChange(PurchaseState purchaseState, String itemId,
int quantity, long purchaseTime, String developerPayload)
and it brings information on the in-app purchase that was made (id, how much etc.).
I am missing the price that was paid in the transaction. How do I get it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,目前无法从应用程序内的商品查询价格。
您必须将价格离线存储在您的应用程序或您自己的服务器上。
这尤其令人烦恼,因为价格可能因地区和/或货币而异。
afaik there is currently no way to query the price from an in app item.
you have to store the price offline in your app or on your own server.
this is especially annoying since the price can vary by region and/or currency.