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

    Web

    The web SDK: a placement’s paywall on your site

    2:15
    web
    intermediate
    Recorded 2026-11-17

    Watch this on YouTube

    For web developers, @billdog.io/web draws the paywall published for a placement inside a React 18+ page, the same wall the app shows. You install the package, configure it with your public key, and call presentPaywall with the placement’s name. Closing the paywall calls your onDismiss, a purchase is confirmed by the server before purchase_completed fires, and access comes from an entitlement check.

    What this video covers: Filmed with @billdog.io/web 1.1.1-beta.5, which bundles the session-replay recorder and loads it only when enableSessionReplay is on. The checkout itself isn’t filmed.

    Transcript

    This paywall is on a website. It isn’t a lookalike rebuilt in CSS. It’s the wall published for this placement, drawn from its own configuration by the web SDK.

    If you have two paywalls, the app’s, drawn by an SDK, and the website’s, drawn by whoever owns the marketing site, they drift. Different copy, a different plan order, a sale that ran on one and not the other. And it’s easy to miss, because the two are rarely on screen at the same time.

    Here, the site asks for a placement by name, the way the app does, and gets the same published wall.

    With npm 7 or later, it’s one install. The core and the paywall renderer come with it, as peer dependencies. Session replay is built in, and off until you turn it on. A/B testing and notifications have their own packages.

    In the ES module build, its recorder loads only after you turn it on. That matters on the web, because your dependency weight is something your customers download.

    Configure it with your public key. Then, presentPaywall asks the placement for its wall, and mounts the paywall renderer straight into your page.

    Closing it calls your onDismiss. You hear about the outcome; you don’t have to interpret the DOM.

    Purchases work the same way. When a web purchase comes back from checkout, the SDK confirms it with the server first, and only then publishes purchase_completed. The unlock follows the purchase, not a visit to a thank-you page.

    And access comes from the entitlement, read fresh from the server. This visitor hasn’t bought anything, so it answers false, and the page stays on Lumen Free.

    One configuration, one renderer on the web, one wall to change. The drift that comes with two paywalls has nowhere to come from, because there’s only one.

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