Learn BillDog by building
Codelabs are short, hands-on tutorials that take you from an empty project to a working result: a paywall on screen, a free trial or win-back offer live, a store connected and tested, webhooks verified on your server, a feature flag rolled out, users signed in, or revenue and funnels read correctly. Each one lists what you need, gives copy-paste code checked against the current SDKs, and tracks your progress step by step.
Browse the codelabs
Show your first paywall in a SwiftUI app
Add the iOS SDK with Swift Package Manager, show a dashboard-controlled paywall, unlock content with an entitlement and add Restore Purchases.
Show your first paywall in an Android app
Add the Android SDK from Maven Central, configure it in your Application class, show a placement's paywall and unlock content with an entitlement.
Add a paywall and subscriptions to a Flutter app
Install billdog_flutter, raise the platform minimums, show a placement's paywall on both stores and unlock content with an entitlement.
Add a paywall to a React Native or Expo app
Install the SDK with npm or the Expo config plugin, build a development client, show a placement's paywall and gate content on an entitlement.
Build a headless web paywall with Stripe checkout
Connect Stripe, fetch a placement's offering with @billdog.io/web, render prices in your own UI, send buyers to checkout and unlock with an entitlement.
Keep your app's purchase state current
Listen for customer info changes on every platform, understand what the SDK refreshes for you, and know when to call sync, restore or a forced refresh.
Build your own paywall UI in a native app (headless)
Ask BillDog which offering a placement sells, draw the paywall with your own SwiftUI, Jetpack Compose, Flutter or React Native code, buy a package, and keep analytics and holdouts honest.
Build a paywall from scratch in the visual builder
Go past templates: lay out a paywall, bind product cards to an offering, show live prices and trial text, wire every button, translate it, add tablet and dark layouts, and publish.
Offer a free trial on your paywall
Create a free trial in both stores, show trial text only to users who can take it, read whether a customer is in a trial and test the full trial lifecycle.
Win back lapsed subscribers with an offer
Create a discount for former subscribers in both stores, serve it from a dedicated win-back paywall, show it only to lapsed users and test the full flow.
Recover failed subscription payments
Keep subscribers whose card failed: store grace periods, an in-app banner while access lasts, a message as soon as the payment fails, and webhooks for your server.
Run a scheduled sale with promo codes
Schedule a sale paywall on a placement with start and end dates, add a countdown, create Stripe promotion codes for web checkout and let iOS users redeem offer codes.
Sell on the web and unlock in the app with redemption links
Open Stripe checkout from your app, come back through a redemption deep link, and let the SDK redeem the token, grant `premium` and report expired or used links.
Sell coins and credits with virtual currency
Create a coin currency, link a consumable pack that grants it, show the balance in your app and spend coins from your server.
Connect the App Store to BillDog
Create subscriptions in App Store Connect, give BillDog your In-App Purchase key, point Apple's server notifications at your project and map products to an entitlement.
Connect Google Play to BillDog
Create a Google Cloud service account, upload its JSON key, wire real-time developer notifications through Pub/Sub, and map Play base plans to BillDog products.
Test real App Store purchases in the sandbox
Buy, renew, restore and cancel a real App Store subscription with a sandbox Apple Account and a BillDog test key, and check each step in the dashboard's Sandbox view.
Test real Google Play purchases
Add a license tester, install your internal testing build, buy with a Play test card and watch the purchase and its fast renewals land in BillDog's sandbox.
Test purchases without an App Store or Play account
Create sandbox purchases, trials, failed renewals and refunds in the Test Store, then watch your app unlock, all before any store setup.
Fix a paywall that doesn't show or has no products
Turn on SDK logging, read what `register` returned, then walk the chain from placement to store products until you find the broken link.
Run your first paywall A/B test
Split traffic between two published paywalls, check significance on conversion rate, compare revenue, and ship the winner without an app update.
Ship a feature behind a feature flag
Create a flag in the dashboard, read it in your app, roll it out by percentage, target it by user attribute, switch it off instantly and check who saw it.
Add sign-in with BillDog Auth
Turn on BillDog Auth, build email and password sign-in with `@billdog.io/auth`, link the session to the user's purchases and verify the token on your Node backend.
Track events and build your first funnel
Send custom events from your app, confirm they arrive in the dashboard, then build a funnel from your own event to BillDog's automatic paywall and purchase events.
Read your revenue: MRR, churn, refunds and LTV
Find each revenue and subscription metric in the dashboard, learn exactly how it is calculated, and pull it into a CSV or an AI assistant.
Send push notifications and in-app messages
Connect APNs and FCM, register the device token in your iOS or Android app, turn on in-app messages, then send a test push and a targeted in-app message from the dashboard.
Receive BillDog webhooks on your server
Add a webhook endpoint, verify every delivery's HMAC signature in Node or Python, handle retries safely, and test with a sandbox event.
Move from RevenueCat to BillDog
Connect your stores, recreate the catalog, import RevenueCat subscribers, swap the SDK calls and point server notifications at BillDog without anyone losing access.
Move from raw StoreKit or Play Billing to BillDog
Connect your stores, bring existing subscribers across, point App Store and Play notifications at BillDog, then hand purchases to the SDK or keep your own code in observer mode.
Build and publish a paywall with an AI assistant
Connect Claude Code, Claude, Cursor or another MCP client to BillDog, and have the agent design, preview, publish and place a paywall for you.
Install the SDK
Already know what you're building? Each SDK guide has the full API reference, configuration options and platform notes.
Frequently asked questions
More ways to learn
LearnGuides on pricing, retention and metrics.
FixesStoreKit and Play Billing errors, solved.
DocsEvery SDK, API and integration.