Purpl Docs
Connect Google Play
Configure an Android package for Google Play verification and notifications.
Register the app
- In Purpl, open the application and go to Stores > Google Play.
- Under Google Play app settings, register the package name from Play Console.
Grant purchase access
Purpl looks up purchases with your own service account when one is registered in Purpl, and with the Purpl shared account otherwise. The Quick start and My service account switch beside the Purchase lookup connection section only changes the guide.
- Open Play Console → Manage account → Users and permissions → Invite new users.
- For Quick start, enter google-play@purpl-sh.iam.gserviceaccount.com.
- Under App permissions, select your app and grant View app information (read-only), View financial data, and Manage orders and subscriptions.
- Select Invite user, then select Test connection in Purpl to verify purchase access.
Purpl uses View financial data to verify purchases and check subscription status. Manage orders and subscriptions is required to refund orders or cancel subscriptions.
To use your own service account, enable the Google Play Android Developer API in your Google Cloud project and create a service account. On its Permissions tab, grant Service Account Token Creator to connect@purpl-sh.iam.gserviceaccount.com. In Play Console, invite your own service account with the app permissions above. Finally, register your service account email in Purpl. Purpl checks token issuance and purchase access, and switches to that account only if the check succeeds. Remove it to go back to the shared account.
Real-time developer notifications
- Copy the shared Pub/Sub topic name from the Google Play settings in Purpl.
- Open Play Console → Select your app → Monetize with Play → Monetization setup.
- Under Google Play Billing, find Real-time developer notifications and select Enable real-time notifications.
- Paste the copied topic name into Topic name.
- Under Notification content, select Subscriptions, voided purchases, and all one-time products.
- Save your changes, then select Send test notification.
Verify the connection
Refresh the Google Play settings in Purpl. Under Real-time developer notifications, check that the Last received time has updated. This confirms that Purpl received the test notification. Complete a test purchase and verify its transaction and entitlement.