无效的 IAP 产品标识符 [英] Invalid IAP product identifiers

查看:34
本文介绍了无效的 IAP 产品标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解,对于应用内购买,我向商店提出请求,然后应用加载 UI,用户点击购买"并进行购买,然后应用交付.

I understand that, for In-App Purchases, I make a request to the store, and then the app loads the UI, and the user taps "buy" and makes their purchase, and then the app delivers it.

这是关于第一步的问题:提出请求.

This is a question about that first step: making the request.

对于我的游戏,我制作了一个 IAP 来移除广告,价格为 1.00 美元.

For my game, I'm making an IAP to remove advertisements for $1.00.

我的困惑在于产品标识符.在这种情况下我不能使用我的 Bundle ID,因为它包含连字符.我放什么?反向域?任何字母数字标识符?

My confusion lies in the product identifier. I can't use my Bundle ID in this scenario, because it contains hyphens. What do I put? Reverse domain? Any alphanumeric identifier?

我尝试在 iTunes Connect 和我的代码中使用类似 noads 的东西,但返回无效.

I tried using something like noads in both iTunes Connect and my code, but this returns invalid.

我会使用 com.example.noads 吗?

与我的困境相关的其他一些信息:

Some other information related to my predicament:

  • 我正在 iPhone 6 上进行测试.我已退出iTunes 和 App Store".(截图如下)
  • 我在我的代码和 iTunes Connect 之间使用相同的东西.
  • 我有一个测试帐户.我想我会在购买时登录.

推荐答案

确保您的销售合同有效.在我设置之前,它一直将标识符返回为无效.

Make sure that your sales contracts are in effect. It kept returning the identifiers as invalid until I set that up.

这篇关于无效的 IAP 产品标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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