Android购买订阅和介绍价格 [英] Android Purchase subscription and introductory price
问题描述
Google附带了介绍价格的概念( https://support.google.com/googleplay/android-developer/answer/140504?hl=zh_CN ).
Google came with with the idea of introductory price (https://support.google.com/googleplay/android-developer/answer/140504?hl=en).
我的问题与它的API有关.我找不到如何通过Purchases.subscriptions(
My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions (https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get)
即使我以入门价购买了订阅,并且向Google Play开发者API询问了有关该订阅的信息,我也只看到了全价.
Even when I buy a subscription for introductory price and I asked Google Play Developer API for the information about that subscription, I see only the full price.
即使inappproduct/get中没有与某些产品相关的介绍价格信息.
Even the inappproduct/get does not have any information about introductory price linked to certain product.
您知道如何获得适当的价格吗?谢谢
Do you have any idea how to get proper price? Thx
推荐答案
Listed in the Billing Details API Reference section, there are extra fields in the response that only appear if there is an introductory price set. introductoryPrice
for example gives a string like "$9.99". You can just check if that field is set, and if it is then there is an introductory rate available, you can also get things like the introductory price period and number of cycles it applies to.
这篇关于Android购买订阅和介绍价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!