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.
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 |
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."
- Insert an Embed where the button should sit.
- Paste both lines of the code into its HTML section.
- 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."
- In the Designer, add a Code Embed element where the button goes.
- Paste the code and save.
- 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."
- 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