How to Add Crypto Payments to Your WooCommerce Store
Crypto payments have moved from "should we accept them" to "how do we set them up." For WooCommerce merchants the answer is now short: the official Xcash for WooCommerce plugin is listed in the WordPress.org plugin directory. Search, install, paste two credentials, and you accept USDT, USDC and other stablecoins. This guide walks through every step, then covers custom e-commerce stacks on the REST API and the realistic options for Shopify merchants.
Updated October 2026
Xcash for WooCommerce has passed review and is live on WordPress.org. Install the official plugin straight from your WordPress admin — there is no need to hand-write a payment gateway in functions.php any more, and new releases arrive in your dashboard's update list.
Why E-Commerce Stores Add Crypto Payments
Start with the math. A store doing $50,000 a month on Stripe pays 2.9% + $0.30 per card transaction. At an $80 average order that is about 625 orders and roughly $1,638 in fees every month — and PayPal adds currency conversion fees on cross-border sales.
Crypto payments open a second rail. Customers pay in USDT or USDC, and once the transaction confirms on-chain (tens of seconds on EVM chains, about 3 seconds on Tron) the funds land in your own address. No two-to-three-day bank settlement, and no card chargebacks. Xcash's official cloud service waives fees on your first $500 of volume each month, with plans and progressive rates after that — see pricing.
For cross-border sellers there is an underrated bonus: stablecoins sidestep capital controls and card restrictions on foreign purchases. One more way to pay means fewer abandoned orders.
Three Approaches at a Glance
| Approach | Best for | Technical effort | Time to go live |
|---|---|---|---|
| WooCommerce + official plugin | Existing WordPress / WooCommerce stores | Low, no code | About 10 minutes |
| Custom stack + REST API | Laravel, Django, Next.js and other custom stores | Medium, backend work | Half a day to a few days |
| Shopify workarounds | Shopify merchants | Medium to high, platform-limited | Depends on the path |
All three run on the same gateway: funds flow through a smart contract straight to your collection address (or directly into your own wallet with direct-to-wallet invoices). Xcash only matches invoices and sends notifications — it never touches the money.
Approach 1: WooCommerce + the Official Plugin
WooCommerce is the most widely used open-source e-commerce platform. If your store runs on it, this is the easy path: the official plugin already handles invoice creation, signature verification, idempotency, block checkout and HPOS compatibility. You only configure it.
Step 1: Create a project in the console
Sign in to the Xcash console, create a project and set up:
- Where funds go: smart-contract invoices need a collection address (written into the contract and permanent, so a multisig is recommended). You can also add direct-to-wallet addresses so buyers pay straight into your wallet.
- IP allowlist: add your WordPress server's outbound IP.
- Notifications: keep them enabled, or orders will not update automatically.
Then copy the project's App ID and HMAC key — you need them next.
Step 2: Install the official plugin
In your WordPress admin go to Plugins → Add New, search for Xcash for WooCommerce, click Install Now and then Activate. You can also read the details on the WordPress.org plugin page. Requirements: WordPress 5.8+, WooCommerce 5.0+, PHP 7.4+.
Install the official build from WordPress.org rather than a ZIP from an unknown source. Directory plugins are reviewed, and new versions show up in your dashboard for one-click updates.
Step 3: Configure the gateway
Go to WooCommerce → Settings → Payments, enable Xcash and click Manage:
- App ID / HMAC key: paste the credentials from step 1.
- Gateway URL: defaults to
https://pay.xca.sh— leave it as is. - Invoice currency: follows your store currency; USD, CNY, EUR, JPY and HKD are supported.
- Allowed payment methods (optional): JSON that limits the coin-chain pairs buyers see, e.g.
{"USDT": ["ethereum", "tron"]}. - Payment duration: invoice lifetime of 5 – 30 minutes, 20 by default.
There is no webhook URL to enter: the plugin passes https://your-site.com/?wc-api=xcash_webhook to Xcash as the notification URL on every invoice.
Step 4: Test, then go live
Save, then click Test Configuration. The plugin checks your credentials, store currency and payment methods without creating a real order. Once it passes, place a small order yourself and confirm the order status, notification handling and received funds before opening checkout to customers.
What your buyers see
- They choose Xcash crypto payment at checkout and place the order.
- They land on the Xcash payment page, pick a coin and chain, and pay by QR code or copied address.
- Once the payment confirms, Xcash sends your store a signed webhook and the order is marked paid.
- The order screen shows the chain, coin, amount and transaction hash for reconciliation and support.
The plugin works with both WooCommerce block checkout and the classic shortcode checkout. Every setting and troubleshooting step is in the WooCommerce plugin docs.
Approach 2: Custom Stores on the REST API
If you run your own e-commerce stack, call the Xcash REST API directly. There are only two jobs: create an invoice at checkout, and update the order when the webhook arrives.
Create an invoice with POST https://pay.xca.sh/v1/invoice, signed with the four HMAC-SHA256 headers XC-Appid, XC-Timestamp, XC-Nonce and XC-Signature:
{
"out_no": "ORD-7842",
"title": "Order #7842",
"currency": "USD",
"amount": "49.99",
"duration": 20,
"methods": { "USDT": ["tron", "ethereum"], "USDC": ["base"] },
"notify_url": "https://shop.example.com/xcash/webhook",
"return_url": "https://shop.example.com/orders/7842"
}
The response includes a pay_url — redirect the buyer there. When the payment confirms, Xcash posts an invoice webhook to your notify_url. Key design points:
- Verify first: check the HMAC signature against the raw request body; never re-serialize parsed JSON.
- Idempotency:
XC-Noncestays the same across retries of one event — deduplicate on it plus your order number. - Respond correctly: return HTTP 200 with the body
ok, or the delivery is retried. - Reconcile: query
GET /v1/invoice/{sys_no}as a fallback. A payment broadcast before expiry that confirms afterwards still moves the invoice tocompleted.
Full parameters, signing examples and error codes are in the API docs. If your system already speaks EasyPay V1, use the EasyPay compatibility endpoint and change almost nothing.
Approach 3: What About Shopify Users?
Shopify tightly restricts third-party payment gateways, and its crypto options are essentially approved custodial processors. Three workarounds:
Path A: Manual flow. Show your address and amount on the order confirmation page; the customer pays and submits the transaction hash, and you verify it by hand. Only practical under about 50 orders a month.
Path B: Middleware bridge. Build a small service that, after a Shopify order, calls the Xcash API to create an invoice and sends the buyer to pay, then marks the order paid through the Shopify Admin API when the webhook arrives. It takes real development work and is bounded by what Shopify's checkout extensions allow.
Path C: Move to WooCommerce. If crypto payments and processing fees really matter to your business, WooCommerce lets you use the official plugin directly — the lowest-maintenance option in the long run.
One note: do not use Shopify's "manual payment method" for crypto. It was built for bank transfers and cash on delivery, never detects on-chain transactions, and never updates order status on its own.
Custodial Processors vs Xcash: The Real Gaps for E-Commerce
| Dimension | Custodial processors | Xcash |
|---|---|---|
| Fund flow | Into the platform's account, then settled to you | Through a smart contract straight to your address |
| Settlement | T+1 to T+3 | On-chain confirmation |
| Chains | Varies by provider | Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Base, Avalanche and more EVM chains, plus Tron |
| Account freeze risk | A freeze locks your pending balance | No balance held on the platform to freeze |
| On-chain risk screening | Rarely exposed to merchants | MistTrack risk score on every payment |
| Multiple stores | Usually one account per store | Isolated projects under one account, separate credentials per store |
Checkout Experience Is Conversion Rate
Plenty of merchants add crypto and then see almost nobody use it. The cause is usually the checkout: popups that break on mobile, forced sign-ups, confusing amounts and coins. A few lessons:
- Offer the pairs your customers actually use — Tron USDT plus Base USDC covers a lot.
- Do not make invoices too short; 15 – 20 minutes covers most exchange withdrawals.
- Say "Pay with USDT / USDC" on product or checkout pages so the customers who want it see it.
Pricing: Quote in Fiat, Collect in Stablecoins
Volatility is the concern merchants raise most. Xcash invoices are priced in fiat (USD, CNY, EUR, JPY or HKD) and converted into the exact crypto amount when the invoice is created, so the buyer sees one fixed number.
Practical advice: stores should collect stablecoins only. Keep just USDT and USDC in the plugin's allowed payment methods and you receive dollar-pegged assets — no exchange-rate exposure and none of the support disputes volatile coins bring.
FAQ
- Q: Where do I get the WooCommerce plugin?
- It is in the official WordPress.org plugin directory. Search for Xcash for WooCommerce under Plugins → Add New in your WordPress admin, or visit wordpress.org/plugins/xcash-for-woocommerce. The plugin itself is free.
- Q: What does Xcash cost?
- The official cloud service waives fees on your first $500 of volume each month; beyond that, plan subscriptions and progressive rates apply. Gas for on-chain sweeps is billed at actual usage, and direct-to-wallet invoices need no sweep. See pricing.
- Q: Do funds pass through Xcash?
- No. Smart-contract invoices hard-code your collection address as the destination, and direct-to-wallet invoices are paid straight into your wallet. Xcash only matches invoices and sends notifications; it never holds or touches your funds.
- Q: Does it support block checkout and HPOS?
- Yes. The plugin works with WooCommerce Checkout Blocks and the classic shortcode checkout, and declares compatibility with HPOS (high-performance order storage).
- Q: Can one account run several stores?
- Yes. Create one project per store, each with its own App ID and HMAC key; invoices and notifications stay isolated.
- Q: An order did not switch to paid. What now?
- Check that notifications are enabled for the project in the console and that your site is reachable over public HTTPS, then review the plugin log under WooCommerce → Status → Logs. Failed notifications can be resent from the console.
Accepting crypto is no longer a development project. For a WooCommerce store it is a plugin install: add the official plugin from WordPress.org, grab your credentials from the console, and ten minutes later your checkout offers a payment method that settles on-chain with no intermediary account in between.