Google Play Billing

Purchase Verification and Acknowledgement

Prepared for app-store review, hosting, and operational reference.

This page describes how Nivaya is intended to handle Google Play subscription purchases for Android builds distributed through Google Play. It is written as a reviewer-facing and operations-facing statement for the billing path implemented in the app and backend.

1. High-Level Policy Position

Digital subscription purchases in the Android app should be processed through Google Play Billing. Entitlement granting should be tied to verified Google Play purchase state, not only to client-side success callbacks.

Razorpay or other payment processors may exist for non-Play or non-digital contexts, but they are not intended to be used for Play-distributed Android digital subscription purchases in this flow.

2. Client-to-Server Verification Flow

  1. The Android app starts the Google Play Billing purchase flow for the matching Play product ID.
  2. After purchase, the app receives a purchase token and related purchase metadata from Google Play.
  3. The app sends the purchase token, product ID, user identifier, and installation/audit metadata to Nivaya's secure backend.
  4. The backend checks that the purchase token has not already been used as an entitlement primary key.
  5. The backend calls the Google Play Developer API to verify the purchase with Google.
  6. The backend grants entitlement only after a successful verification result.
  7. The backend records audit fields such as user, token, product, verification timestamp, purchase state, and acknowledgement status.

3. Google Play Endpoints Intended for Verification

Google states that purchases should be acknowledged within three days or they may be automatically refunded and revoked.

4. Acknowledgement Rules

5. Token Lifecycle and Fraud Controls

6. Required Production-Grade Backend Behavior

7. Current App-State Note

The current Nivaya Android flow includes Google Play Billing, local billing history support, and a deployed backend verification path. Production operation still depends on correct Play Console subscription product configuration, service-account access, and reviewer/test setup.

8. Play Console / Hosting Checklist

9. Official References