~/talk

Enable payments on your PWA with Play Billing using Digital Goods API

Talkat Google I/O 2021 · 2021-05-18..05-20· [pwa, web-platform]
name:Joyce Toh
github:joycetoh8
slides:none on file

Demonstrates concrete integration: use Digital Goods API (Chrome origin trial, available for PWAs running as a TWA) plus the Payment Request API to launch Play Billing UI, get a purchase token, call complete, then call acknowledge within 72 hours; Play returns item details via getDetails and listPurchases returns owned items. Backend verifies tokens with the Play Developer API, tracks entitlements, and uses Google Cloud Pub/Sub RTDN for real‑time subscription updates. Step‑by‑step code and a working end‑to‑end sample show the full flow and fraud‑prevention hooks.

AI-written summary · about

  1. 0:00Start
  2. 0:51Benefits of Play Billing
  3. 2:26Play Console
  4. 3:21Subscriptions
  5. 3:53Promotional Offers
  6. 4:25Set Up Your Payments Profile
  7. 4:52Digital Goods Api
  8. 8:55Acknowledging a Purchase
  9. 12:44Real-Time Developer Notifications
~/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.