Your First Paywall in 15 Minutes
See it in the demo — Get oriented on the project dashboard (~60s)See it in the demo — Prove your integration works (~3min)Go from zero to a live, revenue-generating paywall in five steps. This walkthrough uses BillDog's core building blocks — walls, offerings, and placements — so every concept here maps directly to your dashboard.
Upgrading an existing app to SDK 1.1.1-beta.3 or later? Read the breaking changes in the changelog first. In 1.1.1-beta.3, iOS and Android removed ImmediatePaywallHandler, Android plan changes replace exactly the plan you name, the web SDK changed restorePurchases(), the billing portal and log-out, and the Go module path moved.
Sign Up and Create a Project
Head to the BillDog dashboard and create an account. Once you're in, hit New Project — give it a name that matches your app (e.g. "Acme Fitness iOS").
A project is the top-level container for everything: products, offerings, walls, and analytics. Most teams create one project per app, though multi-platform apps can share a single project.
💡 Tip
Your project comes with a sandbox API key (bd_public_test_…) for development and a production key (bd_public_live_…) for release builds, both under Integration & Data → API Keys. The SDK uses whichever key you pass to configure, so switch to the live key in your release build.
Connect Your Store Credentials
BillDog needs to talk to the stores where your products live. Open Project Settings → Settings → Store Setup and add the keys for every store you sell through.
Install the SDK
Pick your platform below. Each guide covers dependency installation, SDK initialization, and verifying the connection back to BillDog.
// Swift Package Manager: in Xcode, File → Add Package Dependencies, paste the URL,
// choose "Up to Next Major Version" from 1.2.0-beta.1, add the BillDogFull product. Or in Package.swift:
// .package(url: "https://github.com/billdogai/billdog-ios-spm.git", from: "1.2.0-beta.1")
import BillDogFull
BillDog.shared.configure(config: BillDogConfig(apiKey: "bd_public_test_YOUR_KEY"))
// Analytics: SDK 1.1.0-beta.3 and earlier record no events without this line.
// Later versions register it in configure(); the line is then redundant, not harmful.
BillDog.shared.use(module: BillDogAnalyticsManager())Full iOS guide ⚡ Prefer a CLI?
Run npx @billdog.io/cli init: it detects your project type, installs the right SDK and scaffolds the configuration file. CLI docs →
🔐 Signing users in
This quickstart shows a paywall to whoever is holding the device. If you also want BillDog to sign users in — password, email or SMS code, Google, Apple, passkeys, second factors — that is a separate SDK. The web package @billdog.io/auth covers the web; on iOS, Android, React Native, Expo and Flutter the auth module is built into the SDK (1.0.2-beta.3 and later). The session it issues carries the user’s entitlements in the token, so your backend gates a paid feature with a claim check instead of a round-trip. Auth quickstart →
Build Your First Paywall
In the dashboard, navigate to Paywalls & Funnels → Create New → Single Paywall. A wall is BillDog's term for a paywall screen — it holds the visual layout, copy, and the offering it presents.
- Name your wall — something descriptive like "Onboarding Pro Upsell".
- Pick a template or start blank — the visual editor lets you drag components, set colours, and switch the canvas between phone, tablet and desktop layouts.
- Attach an offering — an offering bundles one or more product packages (e.g. monthly + annual). If you haven't created one yet, the editor will walk you through it.
- Preview and publish — check each device layout you've built (see Device Layouts), then hit Publish to make the wall available to your SDK.
🧩 What's an offering?
An offering groups store products into a presentation-ready bundle. You can swap offerings on a wall without touching client code — great for running seasonal promotions or A/B tests.
Add a Placement and Go Live
A placement is the spot in your app where a paywall can appear — the onboarding flow, a locked-feature tap, a settings upsell, etc. You define placements in the dashboard, then reference them by identifier in code.
// Show a paywall at a specific placement
BillDog.shared.register(placementId: "onboarding_upsell", from: self) { result in
// handle result
}Because the wall is resolved server-side, you can change which paywall appears at any placement without shipping an app update. Audience rules, experiments, and scheduling all attach at the placement level.
Deep dive into placementsWhat's Next?
Audience Segmentation
Target different user groups with tailored paywalls
Virtual Currencies
Build in-app economies with token grants and debits
API Reference
Full endpoint documentation for server-side work
Webhooks Reference
Incoming store notifications and outgoing event dispatch
BillDog Auth
Sign users in and gate paid features on the session token
Was this page helpful?
Or rate this page: