问题描述
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( https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get )
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
推荐答案
我最近在此链接 https://developer.android.com/google/play/billing/billing_reference.html#billing-codes
帐单详细信息API参考"部分列出了响应中的其他字段,这些字段仅在设置了介绍性价格时才会显示.例如,introductoryPrice
给出类似"$ 9.99"的字符串.您可以只检查是否设置了该字段,如果有,则可以使用介绍费率,还可以获取介绍价格期限和适用的周期数之类的信息.
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购买订阅和介绍价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!