Scriptorium · IX

Add a buy button to your Notion site

Notion will not run custom code on its own. So the button needs a host that adds it. Tools like Super and Simple.ink publish your Notion pages and let you drop in code. With one of them, the button works the same as anywhere else.

Add the script tag, once

Add the script tag once in your host's site-wide code setting. In Super it is Settings, then Code. In Simple.ink it is the Custom code panel in the sidebar.

<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

Where you want the button, add a Notion code block. In Super, put super-embed: on the first line, then the button under it. In Simple.ink, wrap the button between two #EMBED lines. The host turns that block into the live button.

<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

Plain Notion will not do it

A site published straight from Notion cannot run custom code. A host like Super or Simple.ink is what adds that ability.

The button goes in a code block

You do not paste the button into the page like plain text. You put it in a Notion code block with your host's marker. That is super-embed: for Super, or #EMBED for Simple.ink. The host renders it from there.

Free to try

Simple.ink has a free tier you can launch on. You can wire up the button and take a test sale without paying anyone. Super offers a trial to do the same.

Ready when your page is

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