How to Set Up a DashNex Embeddable Checkout (Overlay or Inline)
Embed a DashNex checkout as an overlay popup or an inline iframe, with no redirect. Here is the setup order, the snippets, and how to test without a sandbox.
Some links in this post are partner or affiliate links. Unified WebTech is a DashNex Authorized Partner and may earn a commission if you sign up, at no extra cost to you. See our disclaimer.

On this page
A DashNex embeddable checkout lets visitors buy from a button on any website, in a popup over the page or an iframe inside it, with no redirect. Build in this order: product, offer, checkout, then the Deploy snippet. We recommend overlay mode for most sites and one checkout per campaign.
When to use this, and when not to#
The embed suits sites you can't or won't rebuild on DashNex. The trade-off is that the buying experience lives inside someone else's page, and you inherit its quirks. Deciding whether DashNex fits? Read the review.
Use it when:
- Your marketing site lives on another builder and you only need a working Buy button.
- You want visitors to stay on the page, with no redirect and no custom domain (embed docs).
- You run several campaigns against one offer and want a checkout for each.
Skip it when:
- You are sharing the offer by email or social post. The direct link from the Deploy tab needs no script.
- Your page blocks custom scripts. Use the direct link there too.
- You are starting a site from scratch. Building the page inside the WebApp removes a moving part.
What you need first#
- The Products, Offers and Checkouts modules in your WebApp admin. The pages we used don't say which plan includes them, so check current pricing.
- Your WebApp domain. The script and the inline iframe both load from it.
- A card processor set in business settings: DashNex MoR or Stripe Standard (checkouts docs). Our MoR vs Stripe guide covers the choice.
- Credits. The docs don't say whether running a checkout costs any. Check current pricing, and read how DashNex credits work.
Set up the checkout, embed it and test it#
The order is fixed: products feed offers, offers feed checkouts, checkouts produce purchases (offers docs).
- Create the product. In the WebApp admin, open Products and click Create Product. Add a name, a description (up to 500 characters), a type (Software, Digital or Reseller) and a unique tag (products docs). You should see it listed as Active. Gotcha: the tag lands on every buyer's contact record, so choose one you will recognise in the CRM.
- Add a variant. Open the product, choose Manage Variants, then Create Variant. Name it as customers should see it, such as "Pro Plan", and set its values or module toggles. You should see it on the product page. Gotcha: reset periods apply only to numeric limits, not on/off flags.
- Create the offer. In Offers, set an internal name, an invoice name, currency, price type (One Time or Subscription) and price. Add an item linked to your variant and pick a guarantee: none, 7, 14, 30, 60 or 90 days. You should see the offer in the list with its type and price. Gotcha: the guarantee appears on every checkout for that offer, so set it deliberately.
- Decide on an order bump. An offer can carry one bump, with its own invoice name, price and items. You should see the bump saved with the offer. Gotcha: its price type is independent of the main offer, so a one-time offer can carry a subscription bump. Read the invoice wording for that mix.
- Create the checkout. Click the offer's name in the Offers list, then Create. Name it (internal only), pick a timer, and set custom pricing, bump behaviour and form fields. You should see a new row with name, status, timer, guarantee and bump. Gotcha: Evergreen shows no countdown, Session counts down per visitor, and Fixed Deadline shows everyone the same date, so a Fixed timer on a rolling campaign looks fake.
- Set the access path and tags. Leave the access path on Default unless you have a strong reason. Add checkout-specific tags so you can tell which checkout produced a sale. You should see both in the checkout's settings. Gotcha: with Custom Page or Custom URL, you own the whole post-purchase experience, including making sure buyers can reach what they bought.
- Open the Deploy tab. Open the checkout and click Deploy. It holds ready-to-paste snippets for both modes and a Copy Link button for the direct URL. You should see snippets for overlay and inline. Gotcha: the docs' examples use a placeholder domain, so confirm the code you paste points at your WebApp domain.
- Add overlay mode. Paste the script tag anywhere on the page, then wire a button to it:
<script src="https://your-webapp.com/api/public/offers/checkout-embed.js"></script>
<button onclick="DnxCheckout.open('YOUR_CHECKOUT_ID')">Buy now</button>
You should see a centered modal over a dimmed page. It closes on success, on Escape or on the close button, and the script loads asynchronously without blocking rendering. Optional onComplete(purchaseId) and onError(message) callbacks let your page react. Gotcha: to prefill the customer's email, pass an email option to DnxCheckout.open. The pages we used don't show the exact call shape, so test it on a staging page.
- Or use inline mode. Add an iframe pointing at
https://your-webapp.com/checkout/YOUR_CHECKOUT_ID?embed=1, 100% wide with no border. Load the script, then callDnxCheckout.listen(iframe, { onResize, onComplete }). You should see the checkout sit inside your content. Gotcha: you setiframe.style.heightyourself insideonResize. The raw resize message carries a height, but the docs don't say what the callback receives, so log it first. Keep theunlisten()function it returns if your page swaps content without reloading.
In a site builder the pattern is the same. Put the button or iframe in a custom HTML or embed block, and the script in a site-wide header or footer code area, since it can sit anywhere. Some visual editors strip onclick attributes or script tags from ordinary text blocks, so use a dedicated code element. Your builder's docs have the exact menu names.
- Test without a sandbox. The docs describe no test mode, so we combine three checks:
- Preview and direct link. Use the checkout's Preview action, then open Copy Link in a private window to check the page, timer, bump and guarantee text.
- Disabled state. Toggle the checkout off and reload your embed. The docs don't say what visitors then see, so find out before a campaign ends.
- One real, low-value purchase. Clone the checkout, set a small custom price, enable the clone (it starts disabled) and embed its ID on a hidden staging page. Then check the contact for product and checkout tags, the entitlements and the buyer's invoice.
You should see the order as Completed with its payment details. Gotcha: the docs don't cover refunding a test order, whether Stripe test keys work, or any minimum charge, so confirm those in your account first.
Common mistakes#
- Leaving the Basic checkout live. It works, but the docs advise against it. Disable it once your own is ready.
- Choosing a custom access path without a plan. Default handles post-purchase access automatically. The other paths leave it to you.
- Forgetting to enable a clone. A cloned checkout starts disabled, so switch it on before you embed its ID.
- Using a Fixed Deadline on a rolling offer. Session or Evergreen suits ongoing campaigns.
How we set this up for clients#
We map the offer and its tags before touching a checkout, because the CRM and later automations hang on those tags. Then we build one checkout per campaign, so every sale traces back to its source. We test on a hidden staging page with one small real purchase and check the contact, tags and invoice. Only then do we hand over the Deploy snippet, with a one-page note on which button uses which checkout. If a flow needs something the stock modules lack, we scope a custom DashNex module. Our website launch checklist covers the rest of the pre-launch checks.
FAQ#
Does DashNex have a sandbox or test mode for checkout?#
The docs we used describe none. The practical route is to preview the checkout, open the direct link, and make one real purchase at a small custom price on a staging page. Then check the contact record, tags and invoice. Confirm in your own account how to refund that order.
Does an embedded checkout need a custom domain?#
No. The embed docs say neither a redirect nor a custom domain is required. The script and the inline iframe load from your WebApp domain, which you swap into the snippet. Visitors never leave the page, so there is no separate checkout domain to configure, and your marketing site can stay wherever it lives.
Does DashNex charge credits for checkout use?#
The checkout and embed docs don't mention a credit charge, so check current pricing before you assume anything. Customers can pay with DashNex Credits through the wallet option, but that is the buyer's payment method, not a stated fee for running a checkout. Our credits guide explains more.
How do I prefill the customer's email in the checkout?#
Pass an email option to DnxCheckout.open for overlay mode, or to DnxCheckout.listen for inline. It is sent by postMessage, stays out of the URL, and the customer can still edit it. For a hand-built iframe, post a dnx:checkout:prefill message to your WebApp origin once the iframe reports it is ready.
Want this set up for you, or need a custom module? Request a scope.
Sources#
Deciding whether DashNex fits? Read the review
Get new posts by email
One email when something new is published. Unsubscribe any time.

