Why the stores' own billing
Google Play and the App Store both require apps to sell digital access — such as removing ads — through their own billing. WorldRadios uses the official libraries on both: the listener pays in the store's own sheet, the store handles prices in every currency, taxes, trials, renewals and refunds, and anyone with an active purchase is VIP: no ads, and recording when you keep it for VIPs.

1 · Create the products
Google Play Console
- Upload a signed build to a testing track first (products can only be created once an app with the billing permission exists — the app includes it).
- Monetize with Play → Products: Subscriptions such as
vip_monthlyandvip_yearly, each with a base plan (e.g.monthly) and, if you like, a free-trial offer; or a one-time product such asvip_lifetime. Activate them.
App Store Connect
- Accept the Paid Apps agreement (Business section).
- Your app → Monetization → Subscriptions: create a subscription group and the subscriptions; or In-App Purchases → Non-Consumable for a lifetime product.
- Use the same product IDs as on Google Play when you can. If Apple's differ, enter them in the App Store ID column in the admin panel.
2 · List them in the admin panel
Admin → Mobile App → Subscriptions:
- Switch on Offer ad-free access in the app; set the heading and the line under it. Leave the benefits empty and the app lists them itself, in the listener's language: no ads (when ads are on), record your favourite shows (when recording is kept for VIPs) and support the stations. Or write your own, one per line.
- Enter the Android package name exactly as in the Play Console.
- Press Find my products on Google Play (it needs the service-account key from step 3): every active subscription base plan and one-time product in the Play Console is added, named Monthly, Yearly… with the longest plan starred. Or, under Products, add each product ID by hand with its type, an optional base plan, the App Store ID if different, the name shown in the app and a short note. A subscription with several base plans gets one row per plan. Star the one you recommend — it gets the “Best value” badge.
A copy of the app installed from outside the store (for example an APK installed by hand) cannot take payments: its VIP screen lists the plans and asks the listener to install the app from Google Play or the App Store.
The app shows the store's own price and period (and a free trial on Google Play), e.g. “Yearly · $19.99 / year”.
3 · Check purchases with Google and Apple (recommended)
With a key saved, the site asks the store about every purchase, so a modified app cannot switch ads off for free, and refunds, cancellations and renewals are seen. The hourly cron re-checks subscriptions whose paid period has run out.
Google Play — service account
- In Google Cloud Console (the project linked to your Play Console) enable the Google Play Android Developer API.
- IAM & Admin → Service accounts → Create, then Keys → Add key → JSON. Paste the file's contents into the admin panel.
- In the Play Console → Users and permissions invite the service account's e-mail with View app information, View financial data and Manage orders and subscriptions.
- Switch on Check every purchase with Google and press Test the connection (a new account can take up to a day to be accepted).
App Store — In-App Purchase key
- App Store Connect → Users and Access → Integrations → In-App Purchase → +. Download the
.p8file (only possible once). - Copy the Key ID and the Issuer ID; with the app's bundle ID, enter them in the admin panel and paste the
.p8contents. - Switch on Check every iPhone purchase with Apple and press Test the key. Sandbox purchases (TestFlight, sandbox testers) are found automatically.
Every purchase appears in the Purchases list with its store and state (active, cancelled, expired, refunded…).
4 · Testing
- Google Play Billing only works in an app installed from Google Play (any testing track). Add yourself under Settings → License testing — test subscriptions renew every few minutes and nothing is charged.
- On iPhone use TestFlight or a sandbox tester (App Store Connect → Users and Access → Sandbox).
- “Restore purchases” on the VIP screen finds an earlier purchase on a new phone with the same Google or Apple account.
