DEV Community

SolPay Kit
SolPay Kit

Posted on Originally published at solpay-kit.pages.dev

Solana Pay on WordPress: Accept SOL & USDC Without a Plugin

The WooCommerce Solana Pay plugins have come and gone, and many are unmaintained. For digital products, memberships or tips you don't need a plugin. A Custom HTML block and a small verification endpoint are enough.

Steps

  • Deploy the verification Worker on Cloudflare's free tier. It creates order references and confirms payments.
  • In WordPress, add a Custom HTML block to your product page.
  • Paste the checkout snippet: a button, a QR container, and a script that calls /api/order and polls /api/verify.
  • Set your wallet address and price in the Worker, and keep your private key out of the code.
  • Test with a small real payment.

Why not a plugin?

Plugins add attack surface and break on updates, and some route funds through third parties. A Solana Pay link pays your wallet directly, and the verification code is about 60 lines you can read.

WooCommerce?

For physical-goods stores with carts, use the Worker as a payment step: create the order in WooCommerce, show the QR code on the thank-you page, and mark the order paid with a webhook when it's verified.


Originally published at https://solpay-kit.pages.dev/guide/solana-pay-wordpress. The Solana Pay Drop-In Checkout Kit packages all of this into a ready-to-deploy checkout.

Top comments (0)