Indie developers selling a template or boilerplate
A buyer of a Next.js starter kit lands in a Customers group, and a MailerLite automation sends the repo invite steps and later release notes.

Checkout embed
Next.js hosts the buying action, Plandalf takes the payment, and MailerLite gets the buyer in a group through native steps.
No credit card required. No coding required.
Next.js
MailerLiteThe checkout and MailerLite connect through Plandalf, not through Next.js. Your app loads the SDK and opens the offer; after payment a Plandalf sequence runs native MailerLite steps to find or create the subscriber and add them to a group. Your app needs no code for the MailerLite side.
| Event | From and to | Through | What happens |
|---|---|---|---|
| Checkout opened | Next.js → Plandalf | A client provider loads the SDK, and a client component renders a button with data-plandalf-present or calls the SDK's present(). | |
| Checkout completed | Plandalf → MailerLite | Native step | Find or Create Subscriber and Add Subscriber to Group run on the server side of Plandalf, so no MailerLite token touches your Next.js bundle. |
| Invoice paid | Plandalf → MailerLite | Native step | Renewals and invoices you send fire this too, which lets Update Subscriber Fields keep a plan field current. |
| Subscriber created | MailerLite → Plandalf | Native step | Plandalf registers the webhook with MailerLite when you save the trigger. A group filter limits which new subscribers start the sequence. |
| Purchase confirmation to your app | Plandalf → Next.js | Webhook | A Send Webhook step can call a route handler of yours when the app itself must grant access, since MailerLite group membership proves nothing about payment. |
Only the MailerLite token and the SDK URL are needed here. Neither lives in your repository.
Add a client component with 'use client' that renders next/script after interaction and hands the ready SDK to context. Mount it under your root layout so route changes reuse one script.
Render the button once the SDK is ready. If the offer or promo can change at runtime, key the component on those values so React builds a fresh bound element.
In MailerLite go to Integrations, MailerLite API, Use, Generate new token. The token appears once, so copy it before closing the dialog.
In Plandalf connect MailerLite under Automation, Marketplace. Start a sequence on Checkout Completed with Find or Create Subscriber (email from {{trigger.customer_email}}), then Add Subscriber to Group using the returned subscriber_id.
Turn on Run on test purchases, buy once with a Stripe test card from your Next.js page, and confirm the group membership in MailerLite. Switch the setting off before launch.
A buyer of a Next.js starter kit lands in a Customers group, and a MailerLite automation sends the repo invite steps and later release notes.
A custom Next.js site sells a yearly pass. The group drives a welcome automation, while your server grants the logged-in area from a verified invoice.
Checked October 26, 2026 against Plandalf's own setup guides and the vendor documentation: Next.js: load and optimize scripts.