2

I try to make a validation of purchases on the server, but it can't to make a request to Google Play Android Developer API. After a request it shows this one:

Error calling GET https://www.googleapis.com/androidpublisher/v1.1/applications/my.app.id/inapp/my_in_app_purchase/purchases/purchase_token: (403) Forbidden

If I make a validation of this purchase by the test form in Developers Console, everything is OK and Google API would send a response.

Requests to other API (for example Books API) works fine.

To work with API I use Google APIs Client Library for PHP. Authorization goes by Service Account. In Developers Console access to Google Play Android Developer API is on.

  • Can you provide some information about your code? This looks similar (not identical) to my issue I posted today: http://stackoverflow.com/questions/24323207/use-service-account-to-verify-google-inapppurchase – glutorange Jun 20 '14 at 09:20

1 Answers1

2

Ok I found the solution!

You must to connect your API with your app. You must go to your Google Play publish page (https://play.google.com/apps/publish) and invite a user with the service account email in Settings->User account & rights->Invite new user and give it the privileges of "View financial reports".

Thanks works for me, good luck!

frieser
  • 729
  • 6
  • 8