You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,15 +55,15 @@ Each configuration option is illustrated in the [configuration section](#configu
60
55
# Configuration
61
56
62
57
## Google Application Credentials
63
-
Requests to the Google Play Developer API, requires authentication and scopes. To authenticate your machine create a service account, then upload the downloaded JSON file `google-app-credentials.json` to your server, and finally set the `google_application_credentials`to the path of that file.
58
+
Requests to the Google Play Developer API, requires authentication and scopes. To authenticate your machine create a service account, then upload the downloaded JSON file `google-app-credentials.json` to your server, and finally add `GOOGLE_APPLICATION_CREDENTIALS` key to your `.env` file and set it to the path of JSON file.
64
59
65
60
1. In the Cloud Console, go to the [Create service account](https://console.cloud.google.com/apis/credentials/serviceaccountkey?_ga=2.92610013.131807880.1603050486-1132570079.1602633482) key page.
66
61
2. From the **Service account** list, select **New service account**.
67
62
3. In the **Service account name** field, enter a name.
68
63
4. From the **Role** list, select **Project** > **Owner**.
69
64
5. Click **Create**. A JSON file that contains your key downloads to your computer.
70
65
6. Upload the JSON file to your storage directory, or any other protected directory.
71
-
6. Set the config key `google_application_credentials` to the JSON file path.
66
+
6. Set the `.env` key `GOOGLE_APPLICATION_CREDENTIALS` to the JSON file path.
72
67
73
68
## Routing
74
69
This package adds a `POST` endpoint `/purchases/subscriptions/google` named `purchase.developerNotifications.google` to handle the **Real-Time Developer Notifications** pushed from Google which reflects any changes or updates of the subscription state.
0 commit comments