Test your PurchaseKit integration with license testers and internal testing tracks.
License testers can make purchases without being charged. This is the easiest way to test during development.
License testers must use the same Google account on their test device.
For full end-to-end testing with real Play Store downloads:
Testers must accept the invite and install from the Play Store to test purchases.
To test real Google Play webhooks locally:
Expose your local Rails app with Cloudflare Tunnel:
bash
cloudflared tunnel --url http://localhost:3000
In the PurchaseKit dashboard, set your app's Sandbox Webhook URL to your tunnel URL:
https://example-tunnel.trycloudflare.com/purchasekit/webhooks
Make a test purchase with a license tester account
Watch the webhook arrive in your Rails logs
Google Play doesn't have a separate sandbox environment like Apple. Instead:
PurchaseKit detects test purchases via Google's testPurchase flag and marks them as sandbox environment.