Android购买订阅和介绍价格 [英] Android Purchase subscription and introductory price

查看:123
本文介绍了Android购买订阅和介绍价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

我最近在此链接帐单详细信息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购买订阅和介绍价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆