Google Play setup
Service account
- Google Cloud Console → the project linked to Play → IAM & Admin → Service accounts → Create.
- Open it → Keys → Add key → JSON → download.
- Enable the Google Play Android Developer API for that Cloud project.
- Play Console → Users and permissions → Invite new users → the service account's email → View financial data and Manage orders and subscriptions (for this app or all apps).
- Upload the JSON when you add the app in Appwind Pay and press Test credentials. New service accounts can take up to a day before Google accepts them.
Real-time developer notifications (RTDN)
- Google Cloud → Pub/Sub → Topics → Create topic (e.g.
play-appwind-pay). - On the topic → Permissions → add
google-play-developer-notifications@system.gserviceaccount.comas Pub/Sub Publisher. - Create subscription → Delivery type Push → Endpoint URL: the app's notification URL from Appwind Pay (it contains a secret token).
- Play Console → your app → Monetize → Monetization setup → Real-time developer notifications → the topic name → Send test notification. It shows under Events & webhooks → Store notifications.
Backup server tip: add a second push subscription on the same topic pointing at your second Appwind Pay server. Google sends to both; Appwind Pay drops the duplicate, and nothing is lost if one server is down.
Acknowledgement
Google refunds purchases not acknowledged within 3 days. Appwind Pay acknowledges every purchase it receives (consumables are consumed), retries every 15 minutes if Google refuses, alerts you after 2 days, and the SDK acknowledges on the device if Appwind Pay can't be reached.
What Appwind Pay handles
Purchased, renewed, recovered, cancelled, restarted, on hold (no access), in grace (access), paused, pause schedule, revoked (refund + access removed), expired, deferred (new expiry), price change, pending purchases (no access until paid), upgrades/downgrades with linkedPurchaseToken, prepaid plans, installment plans, add-ons, and voided purchases (refunds and chargebacks with Google's reason). Prices come from Google's subscription record (recurringPrice); one-time product prices come from the SDK.