应用内的Windows 10 UWP购买的麻烦 [英] In-App purchase trouble on Windows 10 UWP

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

问题描述

我想我的应用程序(已在Windows 10店)允许一个应用程序内购买的项目,而是试图买这个项目时,我总是收到相同的错误消息:

I'm trying to enable an in-app purchase item on my app (already on Windows 10 store), but I always receive the same error message when trying to buy this item:

本应用程序内购买产品不再MyAppName可用

This in-App Purchase item is no longer available in MyAppName

代码是相当简单的,只是什么样的文档建议:

The code is fairly simple and just what the docs recommend:

var itemName = "app.advanced_items.full";
if (CurrentApp.LicenseInformation.ProductLicenses[itemName].IsActive) {
    return true;
}
var results = await CurrentApp.RequestProductPurchaseAsync(itemName);

if (results.Status == ProductPurchaseStatus.Succeeded ||
    results.Status == ProductPurchaseStatus.AlreadyPurchased) {
    return true;
} else { 
    return false;
}



更多信息:

More information:


  • 我创建和构建软件包之前submited的应用内商品的商店,如文档告诉我

  • 项目的名称都一样在存储和应用程序( ITEMNAME 的代码)

  • 我提交到店里品尝过

  • 我试过这个提交到店(我的应用程序已经被停止那里! - 无法购买物品)后

  • I created and submited the in-app item to the store before building the package as the documentation told me
  • The name of the item is the same both on the store and the app (itemName on code)
  • I tried this before submitting to the store
  • I tried this after submitting to the store (My app is currently broken there! -- unable to buy the item)

我怀疑问题可能与以下有关:

I suspect the problem might be related with the following:


  • 这个应用程序显示名称(在 Package.appxmanifest )不是在商店(我想这个名字是不可用,所以我做到了更长的时间,但一旦安装该应用程序将显示原始名称)相同的应用程序名称。这较短的名称是一个错误消息...

  • The app display name (on Package.appxmanifest) is not the same app name on the store (The name I wanted was not available so I made it longer, but the app once installed will display the original name). This shorter name is the one in the error message...

我改变了显示名称,以应用程序的全名的,但该错误是相同的。我不知道这是否发送到商店可能会改变这种(我又不想只是部署其他越野车的版本,以验证这一理论)

I changed the "display name" to the full name of the app, but the error was the same. I don't know if sending it to the store might change this (I and don't want to deploy another buggy version just to test this theory)

附加:
中的唯一资源,我在网上找到这个问题是没有用处的与Windows 8的链接

建议?

推荐答案

2个月后谈论微软的支持,但最终定格在自己身边的东西,我的IAP开始工作。

After 2 months talking to Microsoft support they finally fixed something on their side and my IAP started working.

我认为修复是全球性的,但如果你的IAP仍然不能正常工作,请他们重新发布。

I believe the fix was global, but if your IAP still do not work, contact them to republish it.

下面是他们给我发电子邮件的摘录:

Below is an excerpt from the email they sent me:

我们已经发布了在此应用程序的单边行动计划重新发布。这应
一旦该过程完成纠正这一情况。你可能想
定期检查在接下来的几个小时,看看你能
确认修正为你工作。让我知道你看到的。

We have issued a republish for your IAPs in this app. This should correct the situation as soon as the process completes. You may want to check periodically over the next few hours to see if you are able to confirm the fix worked for you. Let me know what you see.

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

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