Next.js

Integration

Next.js

Plandalf integrates with Next.js as a website, sdk platform.

What it does

Product surfaces

Where Next.js fits in the buying workflow

Integrations work best when the checkout surface, payment state, invoice record, and post-purchase automation all point at the same commercial object. These product screens show the Plandalf controls that should be configured before Next.js receives checkout, payment, tax, or workflow context.

The Numi offer editor showing layout, product, theme, automation, invoice, and settings controls.
The Numi checkout elements palette showing content, interactive, and selling blocks.
The Numi offer editor automation tab showing sequence controls beside the checkout canvas.

Purchase events can start follow-up

Next.js should fit into the work after checkout: fulfilment, records, CRM updates, support context, webhooks, and sequences.

The Numi offer editor showing hosted checkout mode controls.

Overview

Next.js apps load the Plandalf SDK via the framework’s <Script> component in the root layout. Once loaded, the SDK recognises data-plandalf-* attributes on any rendered element — server or client components both work.

Integration methods

How Next.js connects to Plandalf

Each method below is the minimum viable setup. Pick the one closest to how you already use Next.js with checkout, payments, invoices, webhooks, API work, SDK checkout, and integrations.

  1. Method 1

    Embed a Plandalf buy button

    Drop the Plandalf embed script into a Next.js HTML block and tag any element with `data-plandalf-present` to open the configured flow on click.

    <script src="https://cdn.plandalf.com/embed.js" async></script>
    
    <button data-plandalf-present="offer_abc123">
      Buy now
    </button>
Official Next.js docs and sign-up: nextjs.org

FAQ

Common questions about the Next.js integration

Do I need a paid plan to use Next.js with Plandalf?

Plandalf itself is free to connect to Next.js. You only need a Next.js account that allows API access, which is almost every paid plan.

How long does setup take?

Under 10 minutes — paste a webhook URL into Next.js, point it at the Plandalf endpoint, and trigger a test event to confirm.

Can I disconnect Next.js later without losing data?

Yes. Disconnecting only revokes the credentials — historical events Plandalf fired stay in your sequence logs, and Next.js's own records are untouched. You can reconnect any time and resume from the last seen event.

Does Plandalf store Next.js data?

Plandalf stores the minimum IDs needed to address a record in Next.js plus a log of events Plandalf fired. Source-of-truth data stays in Next.js.

What if my website need isn't covered by the actions or triggers listed here?

Drop into the Plandalf REST API and call Next.js directly from your sequence's HTTP action. Anything Next.js's public surface exposes is reachable.

Is there a usage limit?

There's no Plandalf-side limit. Next.js's own plan limits apply.

Where do I find Next.js's own documentation?

Next.js's homepage at https://nextjs.org links to their developer docs. For Plandalf-side questions about the Next.js integration, see the Plandalf docs.

Feature detail