Purchase verification
Apple and Google, optional.
The server can ask the stores whether a purchase is real and record it under Revenue. 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, as receipt. The server checks it with the store and records a revenue 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.
Verified purchases then appear under Console, Revenue. This is a record of what the stores confirm; it is not a payout statement and does not include store fees or 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, and note the Key ID and the Issuer ID. - Paste Key ID, Issuer ID and the contents of the
.p8file into the secret fields.
The server tries Production first, then Sandbox. Sandbox purchases are accepted as valid but not recorded as revenue.
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 and give it View app information and View financial data for your app.
- Console, Purchases: turn on Google Play verification, enter the Android package name, and paste the whole JSON into the service account field.
Acknowledgement is done by the app, not the server. Permissions can take some time to apply after you invite the account.

04What is not verified
The store calls were only tested against mocked responses by the author. Run one real purchase with a test account on each store and check that it appears under Revenue before you rely on it.