---
title: "How do you add a buy button to a Framer, Webflow, Carrd or Wix site when Stripe-based tools won't take you?"
description: "Where each site builder lets you paste checkout code, which plan it needs, where it strips or frames the script, and the plain link that works on any plan."
url: "https://railbed.com/insights/add-a-buy-button-to-framer-webflow-carrd-or-wix/"
markdown: "https://railbed.com/insights/add-a-buy-button-to-framer-webflow-carrd-or-wix/?format=md"
published: "2026-11-23"
author: "Railbed"
publisher: "Railbed, LLC"
section: "Insights"
reading_time: "10 min"
language: "en"
---

# How do you add a buy button to a Framer, Webflow, Carrd or Wix site when Stripe-based tools won't take you?

> Each builder's own rules for pasting a buy button, the step where scripts get stripped or framed, and the plain link that still reaches the checkout.

Source: https://railbed.com/insights/add-a-buy-button-to-framer-webflow-carrd-or-wix/ · Published: 2026-11-23 · 10 min read · Railbed, LLC

For AI assistants: the company overview is https://railbed.com/llms.txt, and the developer docs index, with the rules for an integration, is https://railbed.com/docs/llms.txt

Paste the buy button's code into the builder's own code element: Framer's Embed, Webflow's Code Embed, Carrd's Embed or Wix's Embed HTML, then publish and test the live page, not the editor. Where a builder strips or frames the script, the plain link inside the code still reaches the checkout.

A buy button is a small script plus an HTML element, and each builder treats scripts differently: some run them on the published page, some wrap them in a frame, and some need a paid plan first. This guide takes each builder's own help pages, as of November 2026, and pairs them with the code from [Railbed's widgets and buy buttons guide](https://railbed.com/docs/user-guide/widgets-and-buttons/), using a $29.00 template pack as the example product.

## Key takeaways

- Webflow's Code Embed needs a Core, Growth, Agency or Freelancer Workspace or an active Site plan, and Carrd's Embed needs Pro Standard or higher; Framer's help pages don't name a plan for embeds.
- Webflow shows a placeholder for any script in its Designer and Carrd's builder shows nothing at all, so the published page is the only place to judge the button.
- Wix says its HTML element is an iframe, so a script pasted there runs inside a box on your page rather than on the page itself.
- The code you paste carries an ordinary link to the checkout page; if the script never runs, that link is what buyers see and click.
- A builder button that links to the hosted checkout page is the fallback that works on every builder, with no code at all.

## The code you paste, and the line that keeps it working

A Railbed buy button is two lines of HTML. The first loads the script; the second is the button, with a normal link inside it:

```html

<railbed-button checkout="template-pack" label="Buy the template pack" shape="rounded">
  <a href="https://pay.railbed.io/c/template-pack">Buy the template pack</a>
</railbed-button>
```

`template-pack` is an example slug; yours comes from the checkout's **Share** tab, under **Add it to your site**, where the code is generated for you. `label` sets the button's words and `shape` takes `pill` or `rounded`. The page needs no API key, and Railbed's [no-code guide](https://railbed.com/docs/guides/no-code/) notes the script has no dependencies, sets no cookies and stores nothing in the buyer's browser.

The `<a>` line matters most on a site builder. Railbed's docs put it plainly: "The link inside the element is what shows if your site strips or blocks the script, so buyers can still reach the checkout." When the script runs, it draws the button over that link and opens the checkout in a dialog; when it doesn't, the plain link opens the same checkout page.

If you'd rather show the checkout itself on the page than a button, swap the element for `<railbed-checkout checkout="…">` with the same kind of link inside. It takes up room, up to 440 pixels wide for a payment widget, so it suits a dedicated buy page better than a header. [Hosted page, embedded checkout or your own UI](https://railbed.com/insights/hosted-page-embedded-checkout-or-your-own-ui/) compares those three shapes in more depth.

## Where each builder lets you put code

The four builders differ on where code goes, what plan allows it, and whether the editor runs it. The table below sums up each builder's own help pages, read on 23 November 2026.

| Builder | Where the code goes | Plan its help page names | Before you publish |
|---|---|---|---|
| Framer | An Embed component's HTML section | None stated | Not stated |
| Webflow | A Code Embed element, up to 50,000 characters | Core, Growth, Agency or Freelancer Workspace, or an active Site plan | A placeholder for any script |
| Carrd | An Embed element, Type Code, Style Inline | Pro Standard or higher | Nothing until you publish |
| Wix | Embed Code, then Embed HTML, which is an iframe | None stated for Embed HTML | Not stated |

![Webflow and Carrd run the button script on the page itself, Wix runs it inside a frame, Framer's help pages don't say, and a plain link to the checkout page works on all four.](https://railbed.com/insights-art/add-a-buy-button-to-framer-webflow-carrd-or-wix/where-the-script-runs.webp)
*A frame keeps the button working but confines any dialog to the frame's box, which is why the link comes first on Wix.*

### Framer

Framer's help article on [adding an iframe or embed script](https://www.framer.com/help/articles/how-to-add-an-iframe-or-embed-script/) has you open the **Insert** menu, search for **Embed**, drag the Embed component onto the canvas and add the `` tag in its **HTML** section. It also warns that "Depending on the integration, you may need to manually wrap the script in additional code to ensure proper functionality."

1. Insert an Embed where the button should sit.
2. Paste both lines of the code into its HTML section.
3. Publish, open the live page, and click the button.

Framer's help pages don't say whether an HTML Embed runs inside a frame, and they name no plan for it. Treat the published page as the answer: if the checkout dialog covers the whole window, the script is on the page; if it only fills the Embed's box, or only the plain link shows, use a Framer button linked to the checkout page, described below. Framer's [custom code guide](https://www.framer.com/help/articles/how-to-add-custom-code/) covers adding site-wide scripts under **Project Settings**, **Custom Code**, but a script loaded there can only reach the button if the Embed's HTML sits on the page itself, which Framer doesn't document.

### Webflow

Webflow's [Code Embed article](https://help.webflow.com/hc/en-us/articles/33961332238611-Custom-code-embed) says the element is available "If you have a Core, Growth, Agency, or Freelancer Workspace, or if your site has an active Site plan", and that any `` shows as a placeholder until you "preview, publish, or export your site."

1. In the Designer, add a **Code Embed** element where the button goes.
2. Paste the code and save.
3. Publish, then test the published page, not the canvas. Railbed's [embedded checkout guide](https://railbed.com/docs/guides/embedded-checkout/) says the same: "Webflow's canvas doesn't run custom scripts."
4. Using the button on several pages? Put the `` line once in **Site settings**, **Custom code**, **Footer code**, which Webflow's [head and body code article](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags) says "appears before the closing </body> tag" on every page, and paste only the element on each page.

### Carrd

Carrd's [embed documentation](https://carrd.com/docs/building/embedding-custom-code) says the Embed element "Requires Pro Standard or higher", a plan Carrd's [plans page](https://carrd.com/docs/pro/plans) prices at $19 a year as of November 2026. Set Type to Code and Style to Inline so the code lands exactly where the element sits; the Hidden style puts it in the page's head or body instead, which suits a lone script but not a button. Carrd adds that "the embed element will not actually output anything in the builder so you'll need to publish" to see it.

Add the Embed, paste the code, publish and test the live page. On the Pro Lite plan or the free Basic plan, use a Carrd Button with the checkout's address as its link. Carrd's [URL flags](https://carrd.com/docs/building/url-types) let you add `||blank` to a link to open it in a new tab, if you want buyers to keep your page open.

### Wix

Wix's help page on [embedding a site or a widget](https://support.wix.com/en/article/wix-editor-embedding-a-site-or-a-widget) is direct: "The HTML and URL elements in our editor are iFrames", and "Only HTTPS codes and URLs are displayed." It names no plan for the HTML element.

1. Choose **Add Elements**, **Embed Code**, **Popular Embeds**, then **Embed HTML**.
2. Click the element, choose **Enter Code**, paste both lines and click **Apply**.
3. Size the box to fit the button, or for `<railbed-checkout>`, to the widget's width.
4. Publish and test on the live domain.

Wix's dashboard **Custom Code** setting is not a way around the frame. Its [custom code article](https://support.wix.com/en/article/wix-editor-embedding-custom-code-on-your-site) says those snippets "are always invisible to your site visitors", that the site must be "published and has a connected domain", and that "Wix does not provide support for technical issues with third-party code snippets." A script added there loads on the page, while the button sits in the Embed HTML frame, a separate document the script can't reach. The same article notes that "In December 2025, Wix introduced new frontend security measures for custom code" that may block snippets that used to work.

Because the element is a frame, the script runs inside it, and a dialog it opens can only fill that box. Some frames also stop content from opening a new tab, which the card provider's page needs; Railbed then shows the buyer **This site can't open the card provider from here** with a link to open the checkout in a new tab. That works, but it's an extra step. On Wix, a Wix Button that links straight to the checkout page is usually the smoother path for buyers. It also makes testing simpler: Railbed's one-hour test link (next section) is read by the script from the page's address, and inside Wix's frame the script sees the frame's address instead, so try a Test checkout through its own page rather than through the embed.

## The check that catches a stripped script

Every builder can drop a script without telling you, so the last step on all four is the same: open the published page in a private window and click the button. The table below matches what you see to what happened and what to do, using the fixes in Railbed's [troubleshooting list](https://railbed.com/docs/user-guide/widgets-and-buttons/#troubleshoot-an-embed).

| What you see on the live page | What happened | What to do |
|---|---|---|
| A plain underlined link | The script didn't run, so the fallback link shows | Leave it, it works; or move the script to site-wide custom code |
| Nothing at all | The element or script was removed, or a security policy blocked it | Confirm the builder keeps custom elements; allow `https://pay.railbed.io` in `script-src`, `frame-src` and `connect-src` |
| A dialog that fills only a small box | The code runs inside the builder's frame | Use a builder button linked to the checkout page |
| "This site can't open the card provider from here" | The frame can't open new tabs | Link to the checkout page instead |
| "This checkout isn't live yet" | You pasted the Test checkout's code | Copy the Live checkout's code from its Share tab |

![Paste, publish, open the live page, then either keep the button or switch to a plain link.](https://railbed.com/insights-art/add-a-buy-button-to-framer-webflow-carrd-or-wix/the-live-page-check.webp)
*The editor can't tell you whether the button works; only the published page can.*

Before you go live, try a real run in Test mode. On the checkout's Share tab, **Test on your site** takes your page's address and gives you a test link; for one hour, the tab it opens in can try Test payments on your published page without charging a card. Without the link, a Test checkout shows **This checkout isn't live yet**, to your own team too.

## The fallback: a plain link on any plan

A link needs no code element and no paid plan. Every checkout has its own page at `https://pay.railbed.io/c/<slug>`, so for the example that's `https://pay.railbed.io/c/template-pack`. Put it behind the builder's own button component and style the button however the site's theme allows.

The buyer leaves your page for the checkout, enters an email, picks a card provider and pays on that provider's page, which opens in a new tab. For a one-off sale you can send an invoice link instead of a checkout; [from payment link to first sale](https://railbed.com/insights/payment-link-to-first-sale-without-a-website-complete-workflow/) walks through that from start to finish.

What the link gives up is the dialog over your page, a small price on Carrd's lower plans, Wix's framed HTML or a Framer page where the embed misbehaves.

## Why the builder's own checkout may not be an option

The usual first answer is the builder's built-in store, and that only helps if a processor will take you. Webflow's [payment provider article](https://help.webflow.com/hc/en-us/articles/33961361368979-Connect-a-payment-provider) says its Ecommerce "supports two payment providers" and that both "may restrict the sale of certain types of goods and services". Wix's [payments overview](https://support.wix.com/en/article/accepting-payments-an-overview) offers Wix Payments and "over 70 other providers", which vary by country.

So a seller whose processor said no needs a button beside the builder, not inside its cart. The same idea works for apps built with AI tools; [adding card checkout to a Lovable, Bolt, Replit or v0 app](https://railbed.com/insights/add-card-checkout-to-a-lovable-bolt-replit-or-v0-app-without-stripe/) covers that version.

## Why Railbed fits a site-builder store

Railbed is card checkout for online merchants that mainstream processors turn away. There's no underwriting and no application to pass: sign-up needs an email, your website and a payout wallet. Buyers pay by card through independent, licensed card providers, and each sale settles to a wallet you control, almost always as USDC on Polygon. Railbed never holds the money.

Fees come out of each sale: the Railbed fee, from 0.9% and shown in your dashboard before a payment starts, a 1% network fee, and the card provider's own fee and exchange rate, which the buyer sees on the provider's page. There's no setup fee, no monthly fee and no reserve. The smallest card payment is about $2, and prices of about $10 or more give buyers the widest choice of providers, so a $29.00 template pack sits comfortably above both.

Good to know before you start. Each provider decides whether to ask a buyer for identity details, and Smart Routing tries the providers least likely to ask first; it can't promise none will. Refunds are yours to send, because Railbed can't pull a settled sale back from your wallet, and card disputes go to the provider that charged the card. Sales arrive as USDC in your wallet, and moving them to a bank is one step through an exchange or a wallet app.

```railbed-cta
{"heading": "Make the template pack's checkout, then paste its button", "description": "Create a checkout, copy the code from its Share tab, and test it on your published page with a one-hour test link before you go live.", "buttons": [{"label": "Create your checkout", "url": "https://app.railbed.io/signup"}, {"label": "Read the buy button guide", "url": "https://railbed.com/docs/user-guide/widgets-and-buttons/"}]}
```

## More from Insights

- [Hosted page, embedded checkout or your own UI: which fits when the card is entered on a provider's page?](https://railbed.com/insights/hosted-page-embedded-checkout-or-your-own-ui/): Who draws each screen in a hosted page, an embedded checkout and your own UI, a decision table, the code each needs for a $22 order, and what stays the same in all three.
- [How do you add card checkout to a Lovable, Bolt, Replit or v0 app when Stripe won't take your business?](https://railbed.com/insights/add-card-checkout-to-a-lovable-bolt-replit-or-v0-app-without-stripe/): Where the secret key and server routes go in each builder, the hosted-page route for apps with no server, and the webhook rule that keeps orders honest.
- [What is Railbed, and how is it different from a payment processor?](https://railbed.com/insights/what-is-railbed/): Railbed runs the checkout; licensed providers charge the card; each sale settles to the merchant's own wallet. What it costs, what it won't do, and how to check it.
