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.

By
Railbed
Published
Reading time
10 min
A tall web page made of blocks with a cursor dragging a big buy button into an empty slot, beside page templates.

Press the card to run an example sale.

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, using a $29.00 template pack as the example product.

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:

<script src="https://pay.railbed.io/embed.js" async></script>
<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 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 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. 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 has you open the Insert menu, search for Embed, drag the Embed component onto the canvas and add the <script> 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 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 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 <script> 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 says the same: "Webflow's canvas doesn't run custom scripts."
  4. Using the button on several pages? Put the <script> line once in Site settings, Custom code, Footer code, which Webflow's head and body code article says "appears before the closing tag" on every page, and paste only the element on each page.

Carrd

Carrd's embed documentation says the Embed element "Requires Pro Standard or higher", a plan Carrd's plans page 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 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 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 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.

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. 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.

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 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 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 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 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.

Make the template pack's checkout, then paste its button

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.

Create your checkoutRead the buy button guide