Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    Interactive codelabs

    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

    Get startediOS

    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.

    31 min · BeginnerStart
    Get startedAndroid

    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.

    31 min · BeginnerStart
    Get startedFlutter

    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.

    31 min · BeginnerStart
    Get startedReact Native

    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.

    32 min · BeginnerStart
    Get startedWeb

    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.

    26 min · IntermediateStart
    Get startedAny platform

    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.

    27 min · IntermediateStart
    PaywallsAny platform

    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.

    42 min · IntermediateStart
    PaywallsAny platform

    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.

    48 min · IntermediateStart
    MonetizationAny platform

    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.

    34 min · IntermediateStart
    MonetizationAny platform

    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.

    46 min · IntermediateStart
    MonetizationAny platform

    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.

    39 min · IntermediateStart
    MonetizationAny platform

    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.

    39 min · IntermediateStart
    MonetizationAny platform

    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.

    32 min · IntermediateStart
    MonetizationAny platform

    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.

    34 min · IntermediateStart
    Store setupiOS

    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.

    39 min · BeginnerStart
    Store setupAndroid

    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.

    49 min · IntermediateStart
    TestingiOS

    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.

    33 min · IntermediateStart
    TestingAndroid

    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.

    31 min · IntermediateStart
    TestingAny platform

    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.

    17 min · BeginnerStart
    TroubleshootingAny platform

    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.

    29 min · IntermediateStart
    ExperimentsAny platform

    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.

    16 min · BeginnerStart
    ExperimentsAny platform

    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.

    22 min · BeginnerStart
    AuthWeb

    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.

    28 min · IntermediateStart
    AnalyticsAny platform

    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.

    28 min · BeginnerStart
    AnalyticsAny platform

    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.

    37 min · BeginnerStart
    EngagementAny platform

    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.

    43 min · IntermediateStart
    IntegrationsAny platform

    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.

    40 min · IntermediateStart
    MigrationAny platform

    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.

    42 min · IntermediateStart
    MigrationAny platform

    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.

    45 min · IntermediateStart
    AI agentsAny platform

    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.

    16 min · BeginnerStart

    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

    A codelab is a short, hands-on tutorial that walks you through one task end to end, such as showing your first paywall or running an A/B test. Each step has copy-paste code checked against the current SDK source, and the page remembers which steps you have finished.

    Not to start. The Test Store codelab creates sandbox purchases that grant entitlements without any store account, so you can test your entitlements, webhooks and backend first. To see a purchase unlock content inside the app, you need a store sandbox account or a Stripe test checkout.

    Yes. The codelabs are free to read and follow, and you can start them on a free BillDog project. Some features have plan limits, which the docs for each feature list.

    Paywalls and subscriptions on native iOS (SwiftUI), native Android (Kotlin), Flutter, React Native with Expo and the web; App Store and Google Play setup and sandbox testing; troubleshooting; A/B tests and feature flags; sign-in with BillDog Auth; product analytics and funnels; push and in-app messages; migrating from RevenueCat; and building paywalls with an AI assistant over MCP.

    More ways to learn

    Learn

    Guides on pricing, retention and metrics.

    Fixes

    StoreKit and Play Billing errors, solved.

    Docs

    Every SDK, API and integration.

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.