You are not authorised to make purchases of this InApp in Sandbox at this time.
You are not authorised to make purchases of this InApp in Sandbox at this time.

You are not authorised to make purchases of this InApp in Sandbox at this time.

Apple应用测试内购时,如果购买商品提示:

You are not authorised to make purchases of this InApp in Sandbox at this time.
This Apple Account does not have permission to make In-App Purchases.
You can change account permissions in App Store Connect.

[Environment: Sandbox]

提示信息表示,当前你使用的 Apple ID(沙盒测试账号)没有权限进行内购测试。

这是 StoreKit 2 沙盒环境(Sandbox) 的限制问题。

常见原因

1、使用了普通 Apple ID,而不是 Sandbox 测试账号。

沙盒测试必须用 App Store Connect → 用户和访问→ 沙盒,创建测试账号并在设备上登录。

如果使用的是自己的 Apple ID 登录设备,会出现这个错误。

2、设备未正确登出正式 App Store 账号。

打开设备的设置 → App Store → 沙盒账户,确认登录的是 Sandbox 测试账号。

若没有这一项,可以先登出普通 Apple ID,再在测试购买时输入沙盒账号。

3、沙盒账号未启用或被锁定。

登录 App Store Connect → 用户和访问 → 沙盒,检查账号状态。

如果长时间未使用或密码错误次数多,账号可能失效,重新创建一个新的沙盒账户。

4、App 没有设置好内购项目或未通过审核。

在 App Store Connect 的 In-App Purchases 部分确保项目状态是 “准备提交” 状态。

沙盒购买也需要产品在 App 内被正确请求到。

解决方案

1、在App Store Connect → 用户和访问→ 沙盒中,创建或确认沙盒账号。

在创建沙盒账号时,需要注意使用未绑定Apple账号的新邮箱,如果沙盒的邮箱已经绑定过Apple账号,就会报错。

这个报错的解决方案为注册新的邮箱作为沙盒账号

2、 打开设备的设置 → App Store → 沙盒账户,确认登录的是 Sandbox 测试账号。

3、再次尝试购买操作。

相关文章

1、This email address is not available. You may already have an Apple Account associated with this address. Please try again or sign in using your existing Apple Account. :https://fangjunyu.com/2025/10/06/this-email-address-is-not-available-you-may-already-have-an-apple-account-associated-with-this-address-please-try-again-or-sign-in-using-your-existing-apple-account/

   

如果您认为这篇文章给您带来了帮助,您可以在此通过支付宝或者微信打赏网站开发者。

欢迎加入我们的 微信交流群QQ交流群,交流更多精彩内容!
微信交流群二维码 QQ交流群二维码

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注