1天耐用的应用内商品=>到期日9999/12/31 [英] 1-day durable In-app product => ExpirationDate 9999/12/31

查看:113
本文介绍了1天耐用的应用内商品=>到期日9999/12/31的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的社区,



我在主应用程序中添加了几个产品。所有这些都是耐用的,仅在一生中有所不同。首先,我测试了一个30天的产品。到期日期是正确计算的。但如果我选择1天产品,则到期时间设定为9999/12/31。


生命周期由我认为的商店计算。我正在使用

 CurrentApp.LicenseInformation.ProductLicenses [product.Key] .ExpirationDate 

来检索所需的信息。


感谢您的帮助!


Oliver


解决方案

您好Oliver,


据我所知,您可能会选择不正确的产品类型。请查看耗材和耐用品之间的差异。


在您为应用内商品提供别名后,请选择
产品类型
您希望它。



  • 消耗品 购买,使用(消耗)并再次购买的产品,例如游戏中的1000件金币。
  • 耐用 买方永远购买和拥有的产品,如游戏级别。耐用产品不会被消费。

请检查1天产品的类型,根据您的描述,它应该是耐用型。  For更多信息,请参阅

http://msdn.microsoft.com/en-us/library/windows/apps/jj206721(v=vs.105).aspx


问候,


Dear community,

I added several products to my main application. All of them are durable and differ only by lifetime. First of all I tested a 30-day product. The expiration date was calculated correctly. But if I choose the 1-day product, the expiration was set to 9999/12/31.

The lifetime is calculated by the store I think. I am using

CurrentApp.LicenseInformation.ProductLicenses[product.Key].ExpirationDate

to retrieve the needed Information.

Thank you for your help!

Oliver

解决方案

Hi Oliver,

Based on my knowledge, you may choose the incorrect type of product. Please see the differences between Consumable and Durable.

After you've given your in-app product an alias, select the Product Type you’d like it to be.

  • Consumable A product that’s bought, used (consumed), and bought again, like 1000 pieces gold in a game.
  • Durable A product that’s bought and owned by the buyer forever, like a game level. Durable products aren’t consumed.

Please check the type of 1-day product, according to your description, it should be Durable type. For more information, please see http://msdn.microsoft.com/en-us/library/windows/apps/jj206721(v=vs.105).aspx.

Regards,


这篇关于1天耐用的应用内商品=>到期日9999/12/31的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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