~/talk

The joys and challenges of building a paywall with BillingClient 5

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android]
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction and agenda
  2. 1:12What is Google Play Billing
  3. 2:57Why upgrade to BillingClient 5
  4. 5:22Subscription model changes
  5. 6:45Paywall migration overview
  6. 8:55BillingClient 4 paywall code
  7. 10:41BillingClient 5 paywall code
  8. 12:26Challenges in migration
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.