Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    Paywalls
    Any platform
    Intermediate
    48 min

    Build a paywall from scratch in the visual builder

    To build a paywall from scratch in BillDog, open Paywalls & Funnels → Create New → Single Paywall → Start from Scratch, choose an offering in the Products panel, add a Vertical Products component with Bind to Packages on, and show prices with variables such as {{selectedProduct.price}}. Then give your buttons Purchase, Restore Purchases and Close Paywall tap actions and click Publish. Placements show an offering's default paywall, so no app update is needed.

    Steps last checked against the SDK source on 16 Nov 2026.

    What you'll build

    • A paywall built without a template, with product cards bound to your offering
    • Prices, billing periods and trial text that come from the store on each device
    • Buttons that buy, restore, close and open your legal pages
    • Translations, a tablet layout and a dark theme, published and served by a placement

    What you'll need

    • A product, the premium entitlement, an offering with a package and an onboarding placement (step 2 of the iOS, Android, Flutter or React Native codelab)
    • An app that calls register for that placement, to check the result on a device

    1. Start a blank paywall and pick its offering

    4 min
    1. Open Paywalls & Funnels, click Create New → Single Paywall and choose Start from Scratch.
    2. Click the name at the top left to rename the paywall, then click Save Draft. Publish stays disabled until the paywall has been saved once.
    3. Open the Products panel (the box icon in the left rail) and choose your offering under Offering. This is what the paywall sells, and what makes it that offering's paywall for placements.

    The left rail holds the panels you use in this codelab: Components, Hierarchy, Products, Preview, Theme, Variables and Localization. Hover an icon to see its name.

    If you skip the offering, the paywall uses the project default offering. It then isn't any offering's default paywall, and placements won't show it: the builder warns "Placements won't show this paywall" after you publish.

    2. Lay out the page

    8 min

    Open Components. Base Components are the building blocks (Text, Image, Icon, Button, Stack, Spacer, Divider, Badge). Composite Components are ready-made patterns such as Feature List, Social Proof, Footer and Fixed Footer. Click a component to add it; dragging from the palette doesn't work.

    1. Add an Image or Icon for the header, then a Text for the headline ("Unlock Premium").
    2. Add a Feature List and edit its rows to list three things the subscription unlocks.
    3. Add a Fixed Footer. Anything inside it stays pinned to the bottom while the rest scrolls, which is where the buy button belongs.
    4. Use Hierarchy to check nesting and reorder components. A component in the wrong parent is the most common reason a layout looks different on a device.

    Some components show Web in the palette or are greyed out with "Not available in Native mode". They need the WebView renderer. Leave Change Render Mode on Intelligent (Recommended) and BillDog picks a renderer that can draw everything on the page.

    3. Add product cards bound to the offering

    6 min

    Three components let the user choose a plan: Vertical Products (stacked cards), Horizontal Products (side by side) and Segmented Picker (a tab-style switch). Add Vertical Products above the footer and select it.

    1. Turn on Bind to Packages. The cards now come from the offering's packages instead of placeholder content.
    2. In Packages to Display, choose which packages to show and drag them into order.
    3. Keep Selectable Products on and set Default Selected Index (0 is the first card). Put your recommended plan here.
    4. Keep Update Global Selection on. The selected card becomes the paywall's selected product, which the price text and the Purchase button read.
    5. Use Show Badge and Badge Product Index to mark one card, for example "Best value" on the annual plan.

    If a card binds a package the offering doesn't have, devices show the placeholder card instead of a product, and publishing stops with an error that names the component. Re-pick the packages after you change the offering.

    4. Show prices and trial text with variables

    6 min

    Never type a price. Write a variable in double braces and each device fills in its own store price, in the user's currency. selectedProduct.* follows the card the user selected; primary.* and secondary.* are the first and second packages.

    Text examples
    {{selectedProduct.price}}{{selectedProduct.periodShort}}       → $59.99/yr
    {{selectedProduct.monthlyPrice}} a month                     → $5.00 a month
    {{selectedProduct.trialPeriodText}}, then {{selectedProduct.price}}
                                                                 → 7-day free trial, then $59.99
    Monthly {{primary.price}} · Annual {{secondary.price}}
    • Price fields: price, period ("1 month"), periodShort ("/mo"), monthlyPrice, weeklyPrice, yearlyPrice, title, description.
    • Offer fields: trialPeriodText, trialPeriod, introPrice, introPeriod. They are empty when this user can't take the offer (for example, they already used a trial), so put trial copy in its own Text.
    • Flags such as hasFreeTrial and isTrialEligible are for conditions, not for text: as text they read "true". Show the trial Text only when selectedProduct.hasFreeTrial is true: select it and, under Layer, make Visible a dynamic value that is true when selectedProduct.hasFreeTrial is true. Returning users then see only the price.

    The canvas shows sample values. The real price only appears on a device, after the store returns the product. A device that can't load the store product shows an empty price in variable text (product cards bound to packages show the dashboard's USD price instead), so check prices with real store products.

    5. Wire the buttons with tap actions

    8 min

    A button does nothing until it has a tap action, and that includes buttons you add yourself. Select a component, open Tap Actions in the properties panel, click Add First Action and pick a type. You can chain several actions and set Execution Mode to Sequential or Parallel.

    • Purchase: keep Checkout Mode on Standard (Native IAP) and Product to Purchase on Selected Product, so the button buys whichever card is selected.
    • Restore Purchases: put this on a small text button in the footer. App Review expects a restore control.
    • Close Paywall: for the ✕ or a "Not now" link.
    • Open Terms of Service and Open Privacy Policy: set Link (optional), or leave it blank to use the Privacy policy URL and Terms of use URL from Project Settings → Settings → Privacy. Publishing fails if neither is set.
    • Open URL in Browser opens any URL; Select Product changes the selection from your own buttons.

    The list has more types, such as Show Another Paywall, Show Survey, Open Deeplink, Custom Event, Manage Subscription and Fire Confetti. This codelab uses the ones every paywall needs.

    Next, decide whether users can leave. Click the phone icon in the top bar (Mobile Display Settings) and, under Dismissibility, choose Non-Gated (users can dismiss it) or Gated (they must buy). A Non-Gated paywall without its own close gets a way out from the app (a ✕, or a swipe for a sheet). A Gated paywall must contain a visible purchase or close control, or publishing refuses it as a paywall with no way out.

    6. Translate, add device layouts and dark mode

    10 min

    Translations. Open Localization, click Language and add one or more languages. Each text appears under Texts with a field per language; AI Translate fills them in. Click Save. A device shows the translation that matches its language (fr-CA falls back to fr) and the base language otherwise. Variables like {{selectedProduct.price}} stay as they are; the store formats the price.

    More than one language and AI Translate depend on your plan. When they are locked, the buttons say a plan upgrade is required.

    Device layouts. The device menu above the canvas lists Phone Portrait, Phone Landscape, XL Phone Portrait, XL Phone Landscape, Tablet Portrait, Tablet Landscape and Desktop Web. Pick Tablet Portrait: because it has no layout yet, a dialog offers Simple Clone, Smart Transformation or AI-Optimized. Choose one and click Generate Configuration, then adjust the result. A device whose category has no layout uses the nearest one that exists.

    Dark mode. Open Theme and click the moon button next to Light ("Add dark mode customization"). Switch between Light and Dark to set the dark colors. Devices in dark mode use the dark theme; without one, they use the light theme.

    7. Preview and publish

    6 min

    Open Preview to see the paywall full size. Its toolbar switches light and dark, and it can simulate trial eligibility for components that depend on it. The QR Code opens the same preview in a phone browser. This is a web rendering; the final check is your app.

    When something needs attention, an issues button appears in the top bar. Errors block publishing; Warnings ask you to confirm. Click an issue to jump to its device layout and component.

    1. Click Publish. With unsaved changes, choose Save & Publish.
    2. If there are warnings, a dialog lists them. A warning that nothing on this paywall starts a purchase means the main button has no Purchase action. Fix it, or click Publish anyway.
    3. The first time, tick the confirmation in Paywall Publishing Confirmation and click Accept & Publish.
    4. Read the notice that follows. It names the placements that now show the paywall. If another paywall is the offering's default, it offers Make this the default paywall for your offering.
    5. Open Paywalls & Funnels → All Paywalls and check the paywall shows Live.

    The badge next to the paywall's name in the builder can keep saying Draft after a successful publish. Trust All Paywalls: if it shows Live, the paywall is published.

    Run your app and trigger the onboarding placement. You should see the new design with your store prices. Later edits show as Unpublished Changes until you click Update Published. To compare this design against your old one, run an A/B test.

    Frequently asked questions

    Buttons only act on their tap actions, and template and new buttons have none. Select the button, open Tap Actions, click Add First Action and choose Purchase (or Close Paywall, Restore Purchases and so on). Publishing warns when nothing on the paywall starts a purchase.

    Use a variable instead of typing the price: {{selectedProduct.price}} for the selected plan, or {{primary.price}} for the first package. Each device fills in its own store price and currency.

    Errors block publishing. Common ones: a paywall with no way out (Gated with no visible purchase or close control), a product card bound to a package the offering doesn't have, or a Terms or Privacy action with no link and no URL in Project Settings → Settings → Privacy. The issues button in the top bar lists each one.

    Placements show their offering's default paywall. Check that the paywall sells an offering (Products → Offering), that it is that offering's default paywall, and that the offering is linked to the placement. The notice after Publish tells you which placements show it.

    No. A device without its own layout uses the nearest layout that exists, and a paywall without a dark theme uses its light theme. Add them when the phone layout looks stretched on a tablet, or when your app supports dark mode.

    Reference

    Ship it on a free project

    Create a project, grab your SDK key and follow along. Sandbox purchases and data stay separate from production, so test transactions never mix with real revenue.

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