Server-Side In-App Purchases in Dart
summary
Shows how to build a Dart REST server that verifies receipts via Android Publisher and the App Store Server API, stores order IDs, expiration times and subscription state in a database, and polls for updates rather than relying only on webhooks. Uses shelf_route for endpoints and the Google APIs plus App Store Server SDK packages. Implements Pub/Sub pulls to receive Google Play notifications, calls purchase endpoints to get full details, and notes hosting and async-trigger limits compared with Firebase functions.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:46In-app purchases overview
- 2:13Purchase process and actors
- 5:21Store APIs and event handling
- 7:48Building the Dart server
- 10:58Google setup and configuration
- 12:23Apple setup and configuration
- 13:48Purchase verification with Google
- 15:12Subscription updates with Pub/Sub
- 16:16Purchase verification with Apple
- 17:19Pros and cons of Dart
- 18:41Key implementation steps
related talks
37mIn-App Purchases in Flutter — Complete Unification for Android and iOS
14mServer-Driven UI in Flutter
42mThe recurring nightmare. Implementing cross platform in-app subscription purchases
06mIn-App P{payment,urchase}s
08mDart: the return
34mBuild reactive mobile apps with Flutter
42mDart: I'm your Flutter
48mDart, I'm your Flutter
