Accept crypto in WordPress

Estimated reading: 3 minutes views

Summary: Embed the RasterPay checkout in a WordPress page with an HTML block — no plugin required.

WordPress does not need a plugin to take crypto payments. The RasterPay checkout is plain HTML and JavaScript, so it fits in an HTML block on any page or post. You keep full control of the page, and the payment card loads the same way it does on a static site. This article shows the two easy ways to place it and how to test the result.

RasterPay payment card embedded in a WordPress page showing price and coin options

Place the checkout with an HTML block

  1. In the editor, add a Custom HTML block where the payment card should appear.
  2. Paste the widget and the script from your RasterPay panel.
  3. Publish the page and open it in the browser.
<div data-bxc="wp-pro-plan" data-price="49.00"></div>
<script id="bxc-cloud" src="https://console.rasterpay.com/js/client.js?cloud=YOUR-API-KEY"></script>

Take the key from Settings > API keys. The data-bxc value is your own label for the checkout, so name it after the page or product.

Prefer a shortcode?

Many themes ship a shortcode block that prints raw HTML. Register a shortcode in your theme that returns the same two lines, then place the shortcode on any page. Keep the returned markup identical to the snippet, and do not wrap it in a paragraph tag.

Watch out for the block editor

The classic editor and some page builders add line breaks inside code. If the widget does not render, switch the block to Custom HTML and check that the script tag is not broken across lines. Do not paste the snippet into a text block that escapes HTML.

Cache and optimization plugins

Most caching plugins are safe. Problems usually come from JavaScript deferral tools that move or combine scripts. If the card is missing, exclude client.js from defer, delay, and combine, then clear the page cache.

Test the flow

  • Open the page in a private window so cached pages do not hide the result.
  • Confirm the amount matches the page copy.
  • Open the payment card and check the coin list.
  • Enable Settings > Testnets for a full rehearsal with test coins.

When you need the order data in WordPress as well, such as a custom post type or a member area, use a webhook from Settings > Webhook and let your own code record the confirmed payment. There is no native plugin bundled today, but the hosted link and webhook pair covers both simple pages and custom builds.

Share this Doc

Accept crypto in WordPress

Or copy link

CONTENTS