-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation for content of GOOGLE_SERVICE_ACCOUNT_KEY_FILE #20
Comments
@schumannd did you look further into it? for me it has been a while doing IAP and previously did PHP :P :P. For this new project I've until now succesfully implemented the IOS part and had to fresh up my mind about Android so this is what I found through re-researching which can be helpful (but needs verification) as I will only start implementation in left over hours these Xmas days :) GOOGLE_BUNDLE_ID = the app package name (normally reversed domain eg: org.example.app). GOOGLE_SERVICE_ACCOUNT_KEY_FILE = the Json Web Token file containing a private key which authorises access to a so called "service account" to your Google Play Developer Console / specifically the scope: First step is to "link" a so-called "Google API project" to your Google Play Developer Console. A Google API Project is just an "entity" for accessing API's in Google. You can do this by going to the Google Play Developer Console when navigating to: Final step is to obtain a Google Service Account Key File which the python library needs. The GSAK is a Service User which is attached to the "Google Api project"-entity and thus gets rights to access your developer console and verify IAPs. Obtaining this Google Service Account is explained on the same page but under: "Service Accounts":
Then also I read elsewhere that you need to add this new "service worker"-email-address formatted user to the Google Play Developer users & roles, specifically with the role of reading "financial data". Many more on: https://stackoverflow.com/a/35138885 |
@roelandp I've followed all the steps on your answer and on the StackOverflow link. I'm sure my account is linked in the Google Play Console, but I'm always getting the following error: 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.' Already found this https://stackoverflow.com/questions/25481207/error-the-project-id-used-to-call-the-google-play-developer-api-has-not-been-l Thanks for your help! EDIT: After some time the product was created in the Google Play Console, the SDK started working correctly. So I think it's really important to create a new product after you linked the project! |
@roelandp , can you show example how to use "GOOGLE_SERVICE_ACCOUNT_KEY_FILE", for example on this: from inapppy import GooglePlayVerifier, errors https://github.com/dotpot/InAppPy
i can't understand how to put my .json file here, or to put it as a dict? this is my credentials.json for example, i've changed few symbols on it
|
I think for any inexperienced user this would be a first question. What goes in this variable, and where do I get it?
Docs should at least link to here and here, but better explain the exact steps
The text was updated successfully, but these errors were encountered: