In order to use Google play In-App purchase, you must authenticate your requests to Google Play with Service Account credentials. open the admin panel and go to Settings page and open Google Play Settings tab and follow the bellow steps to fully Integrate Google play In app purchase.
1. add Googleplay app name same as you google play console.
2. add Googleplay package name same as you google play console.
Requests to the Google Play Developer API requires authentication and scope. To authenticate your server, you will need to create a service account and download a JSON key file google-app-credentials.json
.
It can take up to 36 hours for your Play Credentials to work properly with Google Play Developer API. Yoy may see
Invalid Play Store credentials
error message.
You can skip this step if you already have a Google Cloud Project you want to use.
1. Create a project in the Google Cloud Console.
Once you have set up the Google Cloud Project, you need to enable the Google Play Developer API for this project.
To enable Google Play Developer API:
1. Go to the Google Play Developer API page in Google Cloud Console. 2. Click Enable.
Next, you will need to create a service account.
1. Go to Create service account.
2. Select a project if you have not done so already.
3. In the top menu, click Create new service account.
4. Enter a name for the service account.
5. Add two Roles:
6. Click Done.
7. In the Google Cloud Console, select Actions > Manage keys.
8. Select Add Key > Create new key.
9. Make sure JSON is selected, and click Create.
10. open the Json file and copy the file contains and paste it in the Googleplay credentials field and save.