Purchase verification
Apple and Google, optional.
The server can ask the stores whether a purchase is real and record it in the Revenue page. It is off by default; the app works without it.
01What it does
When on, the app sends the purchase proof to POST /v1/purchases/verify: the App Store signed transaction (JWS) or transaction id, or the Google Play purchase token. The server checks it with the store and records an event (store transaction id, gross price, time). It stores no install id with it. Credentials are write-only in the console and encrypted with ADMIN_SECRET_KEY.
With it off the server answers 501 verification_off and the app trusts the purchase result from the store on the device. Verified purchases appear under Console, Revenue. That is a record of what the stores confirm, not a payout statement: it excludes store fees and tax.

02Apple
- Console, Purchases: turn on App Store verification and enter your iOS bundle id.
- A signed transaction (JWS) is checked against Apple's public root certificate; no key is needed for that.
- To also look up a transaction by its id you need an App Store Server API key: in App Store Connect, Users and Access, Integrations, generate a key. Download the
.p8file once (Apple shows it once) and note the Key ID and the Issuer ID. - Paste Key ID, Issuer ID and the contents of the
.p8file into the secret fields.
03Google Play
- In Google Cloud (the project linked to your Play account) create a service account and download a JSON key. Enable the Google Play Android Developer API for that project.
- In Play Console, Users and permissions: invite the service account's email with View app information and View financial data (the second shows the amount paid).
- Console, Purchases: turn on Google Play verification, enter the Android package name, and paste the whole JSON into the service account field.
Permissions can take some time to apply after you invite the account.
04What is not verified
The store calls were checked only against mocked responses in the server tests. Run one real purchase with a test account on each store and check that it appears under Revenue before you rely on it.