当前位置: 首页 > 知识库问答 >
问题:

AppStore VerifyReceive在沙箱中返回21007

关项明
2023-03-14

我正在尝试为我的应用程序在应用程序购买中实现。我遵循了一些指示,结果陷入了一个问题。文档中说,如果调用生产url的响应中的状态是21007,则调用沙箱url。但问题是我在生产中得到了这种状态,在沙盒中也是如此。是不是我做错了什么?我试图在StackOverflow上找到答案,尽管有一些听起来很相似,但没有一个问题与我的相同。我正在通过Xcode在一个真实的设备上运行我的应用程序。

我在https://sandbox.itunes.apple.com/VerifyReceive上发了一篇文章,正文是:

json prettyprint-override">{
    "receipt-data": "MIITvwYJKoZIhvcNAQcCoIITsDCCE6wCAQExCzAJBgUrDgMCGgUAMIIDYAYJKoZIhvcNAQcBoIIDUQSCA00xggNJMAoCAQgCAQEEAhYAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgEDAgEBBAMMATkwCwIBCwIBAQQDAgEAMAsCAQ8CAQEEAwIBADALAgEQAgEBBAMCAQAwCwIBGQIBAQQDAgEDMAwCAQoCAQEEBBYCNCswDAIBDgIBAQQEAgIAoDANAgENAgEBBAUCAwIkDDANAgETAgEBBAUMAzEuMDAOAgEJAgEBBAYCBFAyNTYwGAIBBAIBAgQQhJTtdA2QnZiO2bZ5K/bzgDAbAgEAAgEBBBMMEVByb2R1Y3Rpb25TYW5kYm94MBsCAQICAQEEEwwRYnIuY29tLmZpYnVsYXdhcnMwHAIBBQIBAQQUIzyXh+IHWSCjzFDjDxc23MV62g0wHgIBDAIBAQQWFhQyMDIxLTAzLTEyVDE0OjQxOjE3WjAeAgESAgEBBBYWFDIwMTMtMDgtMDFUMDc6MDA6MDBaMEACAQcCAQEEOLAaNn3uYpD1tRJcikkstXUFHzLd7X26KlBepdSj+Ga5b52LJ5cIpCrV5owxqwfasRiK3YJ8Umg1MFkCAQYCAQEEUdbuBj9bC9mkGppg0KOIbDDjBk74CjamkdiJgUeCShr/wIwG8CSoCnGYWdmAb6S1KYkvy9pvtgxzMcqaqxjbYtkXhss2MDx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CJBIqxw8dtk2cXmPIS4AXUKqK1drk/NAJBzewdXUhMYIByzCCAccCAQEwgaMwgZYxCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkCCA7rV4fnngmNMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEAbDpDODu7GRGiXQ77npmog2UHs5Yqyuf5tYfDhJ1peRpzMs+W7XKZ2pOZBSJFNzdloblUo+K3lwVLcZa9nCE3uQ4XV98uNF+LhdoBIzrgPnHtVYDLesUIEzc3m+vMUCdGaJoadMB2gD8Gu6WaOAATNezSY1ykq5O/0eID2GF8nBH2xVkusoMIRzFOBoDFNQgn7ItixlGZkF6tJBQNJmB5uOPisU3GaWHJoME0XkDFyK05C7ahCu8KLDVOqiMETZaM1ZIm2Zqmq/uFBM9Sxt5isW/QrKUxLqv5uwP3Ez7UY4xtk8jLD/xlSE3M00npxHqnnnk1muxTUJ1tWbAF2l17uA=="
}

但我收到的答复是:

{
    "status": 21007
}

使用邮递员进行复制是非常容易的。我得到的响应与调用生产url(https://buy.itunes.apple.com/VerifyReceive)相同。

我是不是缺了什么?或者可能是虫子?

共有1个答案

商同
2023-03-14

这正是应用程序商店的一个问题,请参阅官方开发者论坛中的这篇文章:21007状态码被沙箱验证回执端点返回

您可以看到许多开发人员都有相同的问题。

 类似资料:
  • 从昨天晚上开始,我的“Express-Checkout API”出现了问题。 每次如果我调用uri https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=ec-0w349....... 请联系服务器管理员webmaster@paypal.com,并通知他们错误发生的时间,以及您所做的可能导致错误的任何事情

  • 安全是Chromium最重要的目标之一。安全的关键在于理解下面这点:在我们完整地理解了系统在所有可能的输入组合下表现出的行为之后,我们才能够真的保证系统安全。对于像Chromium这样庞大而多样化的代码库,推理它的各个部分可能的行为的组合几乎是不可能的。沙箱的目标是提供这样一种保证:不论输入什么,保证一段代码最终能或不能做的事情。 沙盒利用操作系统提供的安全性,允许不能对计算机做出持久性改变或者访

  • Jinja2 沙箱用于为不信任的代码求值。访问不安全的属性和方法是被禁止的。 假定在默认配置中 env 是一个 SandboxedEnvironment 实例,下面的代码展示 了它如何工作: >>> env.from_string("{{ func.func_code }}").render(func=lambda:None) u'' >>> env.from_string("{{ func.fu

  • Jinja2 沙箱用于为不信任的代码求值。访问不安全的属性和方法是被禁止的。 假定在默认配置中 env 是一个 SandboxedEnvironment 实例,下面的代码展示 了它如何工作: >>> env.from_string("{{ func.func_code }}").render(func=lambda:None) u&"" title="jinja2.sandbox.Security

  • 问题内容: 我想创建一个Web应用程序,该应用程序将允许用户上传一些C代码,并查看其执行结果(该代码将在服务器上编译)。用户不受信任,这显然会带来巨大的安全隐患。 因此,我需要为应用创建某种沙箱。在最基本的级别上,我想将对文件系统的访问限制在某些指定的目录中。我无法直接使用chroot jails,因为Web应用程序未以特权用户身份运行。我想设置监狱的suid可执行文件是一个选择。 上载的程序会很

  • 我编写了一个简单的RMI服务器,并为它提供了一个默认的: 以下是服务器的代码(来自Oracle RMI教程,但我添加了RMISecurityManager): } 我这样做: