Windows Phone 8应用程序内购买查询 [英] Windows Phone 8 In-App purchasing queries

查看:106
本文介绍了Windows Phone 8应用程序内购买查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在我的应用中设置应用内购买...这将是我允许用户购买的单个耐用商品。

I am just setting up in-app purchasing within my app .. it will be a single 'Durable' item that I am allowing the users to purchase.

我已经开始使用MockIAP项目进行测试了,但它确实提出了一些问题。

I have got it going in testing with the MockIAP project, but it does raise some questions.

我的Durable购买将是'升级到专业'所以我命名为密钥作为模拟初始设置中的'ProUpgrade'。

My Durable purchase will be an 'upgrade to pro' so I named the key as 'ProUpgrade' within the mock initial setup.


  • 当我在我的应用程序中购买产品时,消息询问是否我想买(ProUpgrade)。这是用户可见的唯一名称/描述吗?我认为有更多的描述性术语可以作为将产品与应用程序相关联的一部分输入?

  • when I go to purchase the product within my app, the message asks if I want to buy (ProUpgrade). Is this the only name/description that is visible to the user? I thought that there were more descriptive terms that could be entered as part of associating the product to the app?

这将如何在多语言应用程序中运行?我正在检查的密钥是我的'ProUpgrade'密钥,可能是所有语言的名称。如果可以在描述中输入可翻译的名称(即每种语言的不同名称),那将是很好的,但是根据我的第一点 - 不确定是否会显示。当产品作为提交的一部分添加到应用程序时,这可能更清楚,但我还没有那么远。

how will this work in a multi language app? The Key I am checking for is my 'ProUpgrade' key and presumably that is the name across all languages. It would be nice if a translatable name could be entered in the description (i.e. a different one for each language) but then as per my first point - not sure if that will ever be displayed. Perhaps this is clearer when the product is added to app as part of the submission, but I haven't got that far yet.

因为我有一个产品,我没有检索应用程序的产品列表,并直接检查是否已购买

because I have a single product, i was not retrieving the product list for the app and was going straight in to check if its been purchased

if(!licenseInformation.ProductLicenses [ProUpgrade]。 IsActive)

if (!licenseInformation.ProductLicenses["ProUpgrade"].IsActive)

但是正如我发现的那样,如果没有可用的产品许可证,这有点危险。 (有一个例外)虽然我觉得我可以依赖我的单一产品,但最好是打电话获得所有产品许可证并检查它是否在那里?

But as I found out, this a bit dangerous if its not in available product licenses. (Got an exception) Whilst I feel that I could rely upon my single product being there, presumably best to make the call to get all product licenses and check to see if its there?

推荐答案

在DevCenter中,定义产品(IAP)时,必须输入产品别名,id(密钥)显示名称和描述以及语言列表。在产品定义的后期阶段,根据较早的语言选择,它会询问产品定义的相应翻译等。

In DevCenter, when you define your product (IAP) - you have to enter product alias,id (key) display name and description and list of languages. In the later stages in the product definition, depending on the earlier language selection, it asks for respective translations of the product definition etc.

这是唯一的地方,你在哪里定义所有语言的IAP产品信息(如果您决定翻译它们),否则将显示默认语言内容。

This is the only place, where you define the IAP product info for all languages(if you decided to translate them), otherwise default language content will be displayed.

这篇关于Windows Phone 8应用程序内购买查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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