Google服务帐户:androidpublisher权限不足,无法执行所请求的操作

时间:2018-12-28 13:27:37

标签: php android google-play-console android-inapp-purchase google-api-console

我知道这里已经问过几次这个问题,但是没有一个解决方案对我有用。

以下是我创建服务帐户所遵循的步骤:

  • 登录到Google Play控制台帐户。
  • 然后从左侧面板导航到“设置”>“ API访问”。
  • 向下滚动到“服务帐户”部分,然后单击“创建服务帐户”。
  • 按照打开的对话框中提到的说明进行操作。
  • 在Google API控制台上创建服务帐户时,选择“服务帐户权限”为“项目”>“所有者”
  • 创建密钥并以json格式下载。
  • 现在返回Google Play控制台,然后单击“授予访问权限”以管理员身份授予权限。

现在,我正在使用该服务帐户来验证服务器上的In App Purchase,但出现此错误:

{
  "errors": [
   {
    "domain": "androidpublisher",
    "reason": "permissionDenied",
    "message": "The current user has insufficient permissions to perform the requested operation."
   }
  ],
  "code": 401,
  "message": "The current user has insufficient permissions to perform the requested operation."
 }
}

我正在使用此php lib和服务帐户方法来验证购买。

0 个答案:

没有答案