RequestProductPurchaseAsync中有哪种ID? [英] What kind of ID goes into RequestProductPurchaseAsync?
问题描述
Windows Phone 8上的 CurrentApp.RequestProductPurchaseAsync
的 ProductID
参数的含义是什么?这是我在属性页面上的开发人员中心注册产品时提供的产品标识符吗?或者它是商店内部使用的应用内商品的GUID?
What's the meaning of the ProductID
parameter of CurrentApp.RequestProductPurchaseAsync
on Windows Phone 8, please? Is that the "Product identifier" that I provide when registering a product in the Dev Center on the Properties page? Or is it the GUID of the in-app product that the Store is using internally?
我之所以要问,一些与商店相关的API确实需要一个GUID 。
The reason why I'm asking, some Store-related APIs do expect a GUID.
我的应用只有一个产品;没有选择过程。我宁愿用硬编码的productId调用 RequestProductPurchaseAsync
而不先检索列表。
My app only has one product; there's no selection process. I'd rather call RequestProductPurchaseAsync
with a hard-coded productId without retrieving the listing first.
编辑:只有答案请从经验中获取。我读过MSDN;它允许两种解释。
only answers from experience, please. I've read the MSDN; it allows for both interpretations.
推荐答案
从真实手机上测试:该方案有效。无需拉动上市。 productId应该是您在开发人员中心键入的字符串Product identifier。
From testing on a real phone: the scenario works. No need to pull the listing. The productId should be the string that you type in the Dev Center as "Product identifier".
这篇关于RequestProductPurchaseAsync中有哪种ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!