Context
This was a feature in the mobile learner app that ships under each school's own brand. I implemented it in November 2026 so Android store builds can sell courses the way Google Play's rules require.
The problem
Android store builds that sell digital courses need Google Play Billing for policy compliance. Play Billing rules also had to fit the existing checkout. International learners needed prices in their own currency.
What I did
I added a path to sell courses through Google Play Billing on Android, enabled per school as an opt-in.
I added a per-school flag in the app build system so only schools that choose it get the billing path in their build.
I made checkout-bypass fixes alongside the new purchase path.
I added a geo-currency price on the paywall so the price shown matches the learner's region.
Key decision
I made it opt-in per school, not a switch for everyone. Schools differ in how they sell, and a store-only path would break those that sell through other gateways.
The cost is a flag to manage in every build, but a wrong default would affect every app.
Result
The store-compliant Android sales path shipped behind the per-school opt-in.
What I learned
I would again close bypass cases in the same change as the new purchase path, since a compliant checkout is only compliant if it cannot be skipped. Next I would track opt-in and purchase counts per school.
Stack
- React Native
- Google Play Billing
- Android
- Node
