Scriptorium · X

Add a buy button to your WordPress site

Install the Coin Moebius Buy Button plugin from your WordPress dashboard, connect your store, and add a buy button to any page with a block. No WooCommerce, no checkout plugin, no code.

Install the plugin

The plugin is free in the WordPress plugin directory, so you can install it without leaving your dashboard.

Search for Coin Moebius

In your WordPress dashboard, open Plugins and choose Add Plugin. Type Coin Moebius into the search box, and the Coin Moebius Buy Button shows up first.

Install and activate

Press Install Now. When it finishes, the same button turns into Activate. Press it to turn the plugin on.

Connect your store

A Coin Moebius item now sits in your WordPress menu. Open it and press Connect to Coin Moebius. If you don't have an account yet, use the Create your account link under the button first.

Pick your store

Coin Moebius opens and shows the address of the site that asked to connect. Check that it's yours, pick the store you want to sell from, and press Connect. You land back in WordPress, connected.

Add the buy button block

Edit any page or post and add the Coin Moebius Buy Button block. Pick a product from the list in the block settings. You can change the words on the button there too.

Publish

Publish the page. The button sits where you placed it, and buyers click it to pay you.

Or paste the code yourself

The plugin is the easy way. If you'd rather not add a plugin, these three steps put the same button on your site by hand.

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/v3.3.7/sdk.global.js"
  integrity="sha384-cojsaUZyZ/LprY5umW55XCXezNxmxlP57mt+OtLHwuWiEtpNoGvPuiV2xCWWTOek"
  crossorigin="anonymous"
  defer></script>

Name the product in your dashboard

Open your store, go to Products, 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 store id in the button. 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"
  product-id="t-shirt-medium"
  amount="25.00"
  currency="USD"
  label="T-shirt (medium)">
</coin-moebius-buy>

Publish. The button renders with the page, and the payment popup 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

If you paste the code yourself, put 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 the plugin and custom code out of the box. On WordPress.com, you can install the plugin on any paid plan: Personal, Premium, Business, or Commerce. To paste JavaScript yourself, activate the site's hosting features first. The free plan supports neither option.

Ready when your page is

Your site can start taking payments right where it is. Add the buy button and connect your provider. Flex has no monthly subscription or card requirement at signup.