> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenarch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WooCommerce

> Take USDC and USDT at WooCommerce checkout on Base, Ethereum, BNB Chain, Monad and Tron. Buyers pay from their own wallet or an exchange straight to yours, and the order moves to Processing on its own.

The Xenarch WordPress plugin adds a crypto option to your WooCommerce checkout. The buyer pays the order total in USDC or USDT, from their own wallet or from an exchange, straight to your wallet. Xenarch never holds the money. When the payment lands, the order moves to **Processing** on its own, with the transaction in the order notes.

| Network | USDC | USDT | Buyer pays from |
| - | - | - | - |
| Base | always on | not issued | wallet or exchange |
| Ethereum | optional | optional | wallet or exchange |
| BNB Chain | optional | optional | wallet or exchange |
| Monad | optional | optional (USDT0) | wallet or exchange |
| Tron | not issued | optional | exchange or wallet app, exact amount |

## Requirements

* WordPress 6.0 or later, PHP 7.4 or later, and the Xenarch plugin 1.16 or later
* WooCommerce, with the store currency set to **USD** (USDC and USDT are dollar tokens, so the option only shows in a USD store)
* A Xenarch account: sign in at [dash.xenarch.dev](https://dash.xenarch.dev) with your wallet
* A site reachable over HTTPS, so Xenarch can send payment notifications to it
* For USDT on Tron: a Tron receiving address (it starts with `T`)

## 1. Install the plugin

Download `xenarch-<version>.zip` from the latest [GitHub release](https://github.com/xenarch-ai/xenarch-plugins/releases). In WordPress, go to **Plugins > Add New > Upload Plugin**, upload the ZIP and activate it.

On a new install the plugin asks which features you want. Choose **Crypto checkout (WooCommerce)**. You can change it later under **Settings > /xenarch > Features**; turning checkout off removes the option from checkout but keeps your connection.

## 2. Create a pay link and a merchant key

In the Xenarch dashboard:

1. Create a **checkout** pay link with an **open amount**. Leave it reusable, and leave the return URL empty: the plugin sends each buyer back to their own order page. The link's receiving wallet is where your sales are paid on Base, Ethereum, BNB Chain and Monad.
2. On your **Profile**, create a **merchant key** (`xm_live_…`). Copy it now: it is shown once.

Use this link for this store only. Xenarch sends the link's payment notifications to one site.

## 3. Connect

1. In WordPress, go to **Settings > /xenarch > Checkout**. (**WooCommerce > Settings > Payments > Xenarch** links there too.)
2. Paste the merchant key and the pay link URL, then click **Connect**. The plugin checks the link, points its payment notifications at your site and stores the signing secret. The key and the secret stay on your server.
3. Turn on **Offer USDC at checkout**. You can change the **Label** buyers see. It reads "Crypto: USDC", or "Crypto: USDC or USDT" once USDT is on, unless you set your own.

Your logo and brand colour on the pay page come from your Xenarch profile, not from the plugin.

## 4. Choose networks

Under **Checkout > Networks**, USDC on Base is always on. Turn on each other coin and network you want to take. The plugin saves the choice to your pay link.

* On Ethereum, BNB Chain and Monad, payments go to the link's own wallet. Xenarch checks that it is a regular wallet on that network: a smart-contract wallet usually doesn't exist at the same address on another chain, so it is refused.
* For USDT on Tron, enter your **Tron address**. Xenarch checks it before saving.

## What the buyer sees

1. At checkout the buyer picks the crypto option and places the order.
2. They land on the Xenarch pay page for the order total, locked to that amount. It has two tabs:
   * **Connect wallet:** the page finds the buyer's USDC and USDT that cover the order across your networks, shows each network's fee, and picks the cheapest. Their wallet sends an ordinary transfer, and they pay that network's fee in its own coin.
   * **Send to address:** for an exchange or any wallet app that can't connect. The buyer picks a coin and network and gets an exact amount (for example 101.8537), your address and a QR code. The amount is held for 60 minutes.
3. The page counts the network's confirmations (Base 1, Ethereum 12, BNB Chain 15, Monad 2, Tron 19), then returns the buyer to the WooCommerce order-received page, which shows the payment: amount, network, transaction and time.

Classic and block checkouts are both supported.

## How orders are marked paid

The plugin never trusts the redirect back from the pay page. Xenarch detects the transfer on its network and sends a signed notification to your site. The plugin then checks that:

* the notification is signed with your link's secret and is recent;
* it is for your connected link, and the money went to your wallet on that network (your Tron address on Tron);
* it names a real order on your store;
* the amount received on-chain covers the order total.

If all checks pass, the order moves to **Processing**. The order note names the amount, coin and network, with a link to the transaction on that network's explorer. Each transaction can pay only one order, once.

## Short and late payments

Exchanges often take their withdrawal fee out of what they send. A Send-to-address payment that arrives up to about \$6 short, with the same last two digits, still finds its order. The order goes **On hold** with a note giving both amounts, so you can ask for the rest or refund. The buyer's page says the store has the order on hold.

An amount stays reserved for 72 hours after its 60 minutes run out, so a withdrawal that arrives late still lands on the right order.

## Disconnect

**Settings > /xenarch > Checkout > Disconnect** turns the option off, stops notifications for the link and removes the key and secret from your site. Your confirmed Tron address is cleared too.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.