in-app-purchase
in-app-purchase copied to clipboard
Setup for Google Play store
Sorry I'm new to android and Play store.
I am having difficulty with what I need to provide in the following configurations:
What is meant by client email??? googleServiceAccount: { clientEmail: '<client email from Google API service account JSON key file>', privateKey: '<private key string from Google API service account JSON key file>' },
also what privatekey is this referring to and where could I obtain it????
Lastly, the key paths; I am not sure where I can obtain them, and do I need to provide a path or can I just provide the key info in the script!?
googlePublicKeyPath: 'path/to/public/key/directory/', // this is the path to the directory containing iap-sanbox/iap-live files
googlePublicKeyStrSandBox: 'publicKeySandboxString', // this is the google iap-sandbox public key string
googlePublicKeyStrLive: 'publicKeyLiveString', // this is the google iap-live public key string
Any help would be really appreciated!!!
@famictech2000 you can find clientEmail and privateKey in Google Service Account,
Service Account is part of IAM GCP, to improve security beteween services.
1 - Find/create project in Google Cloud Console
2 - Go to IAM option in left menu.
3 - Create a new Service Account and download JSON file.
Read this article for more.
EDIT:
googlePublicKeyPath, googlePublicKeyStrSandBox and googlePublicKeyStrLive is not necessary if your using Service Account.
@famictech2000 I found this link recently, it should help you
https://stackoverflow.com/a/56390408
Awesome thanks!! I'll take a look at it later today!
Now I just need to understand why my receipt validation always fails, with my other issue I opened up ;)