Scriptorium · X

Add a buy button to your WordPress site

WordPress takes the button without a store plugin. You add the script once and drop the button into a block. No WooCommerce, no checkout plugin, no theme surgery.

Add the script tag, once

Add the script tag to the site header. A header-and-footer plugin like WPCode does this without touching your theme. A block theme can also take it in the site editor.

<script src="https://sdk.coinmoebius.com/latest/sdk.global.js"
  crossorigin="anonymous"
  defer></script>

Name the product in your dashboard

Open your project, switch to the Products tab, and add the product: a reference you choose, a name, a price, a currency. From here the dashboard writes both blocks on this page with your real project ID. What you see below is the shape.

Place the button where you sell

On the page or post where you sell, add a Custom HTML block and paste the button into it. The classic editor takes it in a Custom HTML block too.

<coin-moebius-buy
  project-id="proj_YOUR_ID_HERE"
  product-id="t-shirt-medium"
  label="Buy a t-shirt">
</coin-moebius-buy>

Publish. The button renders with the page, and the payment picker loads the first time a buyer clicks it. Each additional product is the same block with a different reference and label.

Watch out for these

Use the Custom HTML block

Paste the button into a Custom HTML block, not a paragraph. WordPress strips unknown tags from regular text. The block is what keeps the button intact.

No store plugin needed

The button is its own checkout. WooCommerce and other store plugins can stay off. Your site stays lighter for it.

Self-hosted, or .com on a plan

Self-hosted WordPress takes custom code out of the box. On WordPress.com, custom code and plugins need a Business plan or higher.

Ready when your page is

Free covers 150 transactions a month. No card to sign up.