Website guides

How to Accept Payments in Webflow Without an Ecommerce Plan

By the Chargedeck team 6 min read

The short answer

You can accept payments on a Webflow site without an Ecommerce plan by adding one custom attribute to a button you have already designed and one script to your site's footer code. The button then opens a hosted checkout in an overlay, and the payment goes to your own Stripe, PayPal or Square account.

This guide covers the attribute method step by step, how to keep your own button styling, how to give every CMS item its own buy button, and what to do if your site cannot run custom code.

The idea: your design stays, the checkout sits on top

Webflow Ecommerce builds products, a cart and a checkout into your Webflow project. That is the right structure for a store. It is a lot of structure if you have a finished site and want to sell one template, one workshop or a short run of prints from it.

The lighter approach leaves your project alone. You tag a button you have already designed, load one small script, and that button opens a hosted checkout page over your layout. Nothing about your classes, interactions or page structure changes.

The attribute and script below belong to Chargedeck, a checkout page builder that runs on your own processor account. The plain-link fallback further down works with any hosted checkout or payment link.

Step by step: one attribute, one script

First create the checkout page and note its slug, which is the last part of its link. If the link is https://chargedeck.app/p/brand-kit, the slug is brand-kit. Then, in Webflow:

  1. Select the button or link block you want to sell from.
  2. Open Element settings.
  3. Under Custom attributes, add the name data-chargedeck with your page slug as the value.
  4. Open Site settings, then Custom code, and paste this line into Footer code: <script src="https://chargedeck.app/embed.js" defer></script>
  5. Publish.

The script goes in once for the whole site. After that, any element carrying the attribute is a buy button. To sell a second product, tag a second button with a different slug. There is no more code to add.

Keep your own button styling

By default the script gives a tagged element a simple button style. If you have already styled the button in Webflow and want it left exactly as designed, add a second custom attribute: name data-cdk-raw, value 1. Your hover states and typography stay yours.

Worked example: a CMS collection where every item sells

Say you run a small print studio and your Webflow site has a "Prints" collection with a template page per print. You want a buy button on each one without building twelve buttons by hand.

  1. In Chargedeck, create a checkout page for each print and note each slug.
  2. In the Webflow CMS, add a plain text field to the collection. Call it "Checkout slug" and fill it in for every item.
  3. On the collection template, select your buy button and add the custom attribute data-chargedeck. Instead of typing a value, bind the value to the "Checkout slug" field.
  4. Publish.

On the published site each item now carries its own value:

CMS item"Checkout slug" fieldWhat the button carries when published
Harbor at Dawnharbor-at-dawndata-chargedeck="harbor-at-dawn"
Pine Ridgepine-ridgedata-chargedeck="pine-ridge"
Low Tidelow-tidedata-chargedeck="low-tide"

One button design, and every item opens the right checkout. Two details save trouble later:

  • The price lives in two places. The price in your Webflow design is text. The price the buyer is charged is the one on the checkout page. When you change one, change the other.
  • Options belong on the checkout page. If a print comes in two sizes, add them there as variants with stock per option. A size that runs out shows as sold out without you touching Webflow.

The arithmetic on limited stock is worth doing before launch. An edition of 25 prints at $40 in one size and 10 at $90 in a larger size can bring in at most 25 x $40 + 10 x $90 = $1,900. Set stock to 25 and 10 on the checkout page, and each size shows as sold out once its edition is gone.

If your site cannot run custom code

Custom code in Webflow needs a paid site plan or workspace. If it is not available to you, use a plain link: select any button or link block and paste your full checkout link as its URL. The checkout opens as a full page instead of an overlay. Everything on the checkout is the same.

There is also a middle route for single pages. Drag a Code Embed element onto the page, paste the ready-made buy button snippet from the embed generator, save and publish. That keeps the button and its script together in one element, which suits a one-off landing page. Code Embed counts as custom code, so expect the same plan requirement.

The three placements compared

PlacementWhat the buyer seesWhat it needsUse it when
Custom attributeYour own button opens the checkout in an overlayCustom code enabled on the siteYou have a designed site and want buy buttons anywhere, including CMS items
Code Embed elementA ready-made button that opens an overlayCustom code enabled, one element per buttonYou need a single button on a single landing page
Plain linkThe checkout opens as a full pageNothing extraCustom code is not available, or you want no setup at all

The Webflow setup guide has each snippet ready to copy.

Check it on the published site before you share it

  1. Publish, then open the published site in a normal browser tab.
  2. Click the button. The overlay should show the right product name, price and options.
  3. Repeat on a phone.
  4. On a CMS template, check two or three different items to confirm each opens its own product.
  5. When the first real order arrives, confirm it shows in your processor account.

If a click does nothing, check three things: that the script is in Footer code, that the site was published after the change, and that the slug exactly matches the last part of the checkout link.

When Webflow Ecommerce is the better choice

This method is for selling a few things from a site whose main job is something else. It is the wrong choice in these cases:

  • You want to design the checkout itself. Here you style the button, not the checkout. A Chargedeck page uses one of six themes with your accent color and logo. If the cart and checkout must match your site pixel for pixel, build them in Webflow Ecommerce.
  • You need the checkout on your own domain. Chargedeck does not offer custom domains for checkout pages. In overlay mode the buyer stays on your page, but the checkout is served by Chargedeck.
  • You sell with subscriptions or discount codes. Chargedeck does not do recurring billing or coupons.
  • You need tax worked out at checkout. Chargedeck does not calculate sales tax or VAT, so you would set tax-inclusive prices or handle it in your accounting.
  • You run a large catalog and want products, stock and orders managed inside Webflow.

On cost, compare like with like. Chargedeck is a flat monthly fee from $9.99 and takes 0% of your sales, and your own processor's card fee still applies. Webflow's plan prices change, so check Webflow's pricing page against Chargedeck's for your own case.

Prefer to see the raw snippets outside Webflow? The guide to adding a buy button to any website lists every embed method, and the same attribute works in a WordPress Custom HTML block.

FAQ

Common questions

Do I need Webflow Ecommerce to sell a single product?

No. A hosted checkout handles the payment, so a button with one custom attribute, or a plain link, is enough. The money goes to your own Stripe, PayPal or Square account.

Will the script change how my Webflow button looks?

By default it applies a simple button style. Add the attribute data-cdk-raw with the value 1 and your own Webflow styling is left untouched.

Can I do this on a Webflow site without a paid plan?

The plain link works without custom code. The attribute method and the Code Embed element need custom code, which in Webflow requires a paid site plan or workspace.

Can I sell digital downloads from a Webflow site this way?

Yes. Add a delivery link to the checkout page and buyers receive it after paying. Keep the file wherever you already store it and paste that link in.

Keep reading

Related guides

Turn your Webflow button into a buy button

Build a checkout page in Chargedeck, then add one attribute and one script to your site. Free for 7 days, no card.

See pricing