Enable payments on your PWA with Play Billing using Digital Goods API
summary
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
chapters (9)
- 0:00Start
- 0:51Benefits of Play Billing
- 2:26Play Console
- 3:21Subscriptions
- 3:53Promotional Offers
- 4:25Set Up Your Payments Profile
- 4:52Digital Goods Api
- 8:55Acknowledging a Purchase
- 12:44Real-Time Developer Notifications
related talks
37mWeb Payment APIs
23mWeb Payment APIs
48mStandard Web Payment APIs
34mKilling the checkout or: How I learned to stop worrying and love Payment Request
41mBuilding Easy and Safe Checkout with GooglePay
18mUnified checkout experience using Web Payment API
51mPWA Challenges
33mBuy my mixtape: the Payment Request API in action
