The joys and challenges of building a paywall with BillingClient 5
summary
Migrates a paywall from Billing Library 4’s flat model (hardcoded six products) to Billing Library 5’s hierarchical model with two products and base plans, using queryProductDetails and offer tags; sample Catflix paywall and code on GitHub demonstrate weekly/monthly/yearly base plans and in-app offers (prepaid plans and per-country pricing across 173 countries). Major snag: Subscriptions V2 omits explicit price and some payment/promotion states so backend must ingest the SDK’s pricingPhases and infer revenue (receipt expires after 90 days); migration works after adding that server logic.
AI-written summary · about
chapters (8)
- 0:00Introduction and agenda
- 1:12What is Google Play Billing
- 2:57Why upgrade to BillingClient 5
- 5:22Subscription model changes
- 6:45Paywall migration overview
- 8:55BillingClient 4 paywall code
- 10:41BillingClient 5 paywall code
- 12:26Challenges in migration
related talks
18mThe joys and challenges of building a paywall with BillingClient 5
26mThe joys and challenges of building a paywall with BillingClient 5
17mMigrating to Billing Library 5
19mMigrate to Google Play Billing
30mWhat's new with Play Billing
44mTaking your users’ money: In-app billing from start to best practices
49mTaking your users’ money: In-app billing from start to best practices
44mThe State off in app purchases on Android
