aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

"code": 403, Android #120

Closed zigou13 closed 4 years ago

zigou13 commented 4 years ago

Hello, I have a problem with Android with service account here is the error below

{
  "error": {
    "code": 403,
    "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
    "errors": [
      {
        "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
        "domain": "androidpublisher",
        "reason": "projectNotLinked"
      }
    ]
  }
}

Do you have an idea of my problem? Thank You

Stafox commented 4 years ago

@zigou13 hi. I have misssed this issue. Looks like configuration problem. Did you solve it?

Stafox commented 4 years ago

This happens when your project are not linked with service account. In that case you should just link it in google console.

Sometimes, when issue still exist need to add/remove in-app product. Sometimes, upload a new APK may help.

In other cases need to contact Google Support.

Some links: https://stackoverflow.com/questions/25481207/error-the-project-id-used-to-call-the-google-play-developer-api-has-not-been-l https://stackoverflow.com/questions/44342740/message-the-project-id-used-to-call-the-google-play-developer-api-has-not-be https://github.com/googleapis/google-api-php-client/issues/1529#issuecomment-597613634