
Shops selling game keys, gift cards, accounts, courses and other goods get more and more buyers who would rather pay in crypto, most often in USDT. This guide shows how to add crypto as a payment method in WooCommerce: the customer picks Crypto at checkout, pays on the SnapEX Pay page in USDT on TRON, Ethereum, BSC, Solana, TON, Polygon or another network, or in another coin, and the order becomes Processing by itself. You don't run a wallet or a blockchain node — the money lands in your SnapEX Pay merchant balance in USDT.
How a payment goes
customer → Crypto → Place order
plugin → SnapEX Pay: invoice in USD
customer → pays on SnapEX Pay page
SnapEX Pay → signed webhook → shop
plugin → GET invoice via API → paid?
WooCommerce: order Processing
- The customer places the order with the crypto method. The plugin creates a SnapEX Pay invoice for the order total in USD and sends the customer to the payment page.
- The customer chooses a coin and network and pays. When the invoice is paid, SnapEX Pay sends a signed webhook to your shop.
- The plugin re-reads the invoice from the SnapEX Pay API and completes the order only if the invoice is
paidfor the right amount. The webhook body alone never marks anything paid.
An order is marked paid three independent ways, whichever comes first: the signed webhook, the customer returning from the payment page, and a background check (WP-Cron runs it every 5 minutes; each pending order is re-checked at most every 10 minutes, for 5 days). A lost webhook never leaves a paid order unpaid, and an order is never completed twice — even if the webhook, the return page and the check fire at the same moment.
What you need
- WordPress 6.2+ and WooCommerce 8.2+ (tested up to WooCommerce 11.2).
- PHP 7.4 or newer.
- HTTPS on the shop address, so SnapEX Pay can deliver webhooks to it.
- A SnapEX Pay merchant account: sign up at pay.snapex.pro.
The plugin works with the Checkout block and the classic [woocommerce_checkout] page, with "Pay for order" links, and with both HPOS (custom order tables) and legacy order storage.
Step 1. Install the plugin
The plugin is free and listed in the WordPress.org catalog: SnapEX Pay for WooCommerce.
- In the WordPress admin open Plugins → Add New Plugin and search for SnapEX Pay.
- Click Install Now on SnapEX Pay for WooCommerce, then Activate. WooCommerce must already be active.
With WP-CLI:
wp plugin install snapex-pay-for-woocommerce --activate
If the server can't reach WordPress.org, download snapex-pay-for-woocommerce-1.2.2.zip and upload it in Plugins → Add New Plugin → Upload Plugin. Updates then come through the usual WordPress update screen. The plugin needs nothing set up in the database by hand.
Step 2. Get an API key
In the SnapEX Pay merchant cabinet open Developers and create an API key. The plugin needs the invoices.read and invoices.write scopes; a key created in the cabinet gets all Merchant API permissions, these included. The key is shown once — copy it right away. Reissuing the key revokes the old one at once, so update it in WooCommerce at the same moment.
Step 3. Set up the payment method
Open WooCommerce → Settings → Payments and click SnapEX Pay (crypto) (or Settings next to the plugin on the Plugins page). Fill in:
| Setting | What to put |
|---|---|
| Enable | Tick Accept crypto with SnapEX Pay. |
| Title | What the customer sees at checkout; SnapEX Pay — crypto (USDT and other coins) by default. |
| Description | The line under the title at checkout. |
| API key | The key from step 2 (smk_…). Without it, with the exchange Partner API key (spx_…) or with a cut key the method stays hidden at checkout, and the settings say why. |
| Webhook secret | See step 4. |
| Network fee paid by | Merchant — the customer pays exactly the order total, and the fees are taken from what you receive. Customer — the SnapEX Pay fee and the network fee are added on top. More: Who pays the fees on a crypto invoice. |
| Payment window, minutes | How long the payment page stays valid: 1 to 1440, 60 by default. |
| Exchange rate, USD for 1 … | Only if the store currency isn't USD — see step 5. |
| Test mode | See step 6. |
| Partner ID | See step 7. |
| API URL | Leave as is. |
Save the changes. The method now appears at checkout with the SnapEX Pay icon.
Step 4. Set up the webhook
The webhook is optional but recommended: with it, an order becomes Processing as soon as the payment is confirmed, not on the next background check.
- Copy the webhook address shown under the Webhook secret field. With pretty permalinks it looks like
https://<your shop>/wc-api/snapexpay_webhook/. - In the cabinet, on the Developers page, paste it as the webhook URL and save.
- The
whsec_…signing secret is shown once, right after the first save. Paste it into Webhook secret in WooCommerce and save.
How the plugin checks a notification:
- the
Webhook-Signatureheader: HMAC-SHA256 of{Webhook-Timestamp}.{raw request body}with your secret; a missing or wrong signature gets401; Webhook-Timestampwithin 5 minutes of the server clock (older gets400) — keep NTP on;- the invoice itself, re-read from the SnapEX Pay API with your key.
If the API can't be reached at that moment, the plugin answers 502, and SnapEX Pay retries the delivery. The cabinet has one webhook URL per account; events for invoices this shop didn't create are answered 200 and skipped, so the same merchant account can also serve a billing panel or a bot. Opening the webhook address in a browser shows SnapEX Pay webhook endpoint — a quick way to check that nothing (a firewall, a security plugin, a cache) blocks it. More about signatures and retries: Crypto payment webhooks.
Step 5. If the store currency isn't USD
SnapEX Pay invoices are in US dollars. If your store sells in EUR, GBP, RUB or anything else, the settings show Exchange rate (from plugin 1.2.0):
- Auto (the default). Nothing to set up or update: SnapEX Pay converts each order total to USD at its current rate (ECB rates, refreshed hourly) at the moment the customer opens the payment page. The settings page shows the rate in use, and the order note says what was converted at what rate: invoice INV-… for 54.12 USD (49.90 EUR at the SnapEX Pay rate 1.0846).
- Manual. A fixed rate in USD for 1 EUR (with your currency code): how many US dollars one unit of your currency is worth — if 1 EUR is 1.08 USD, put
1.08. Keep it current yourself. - A currency plugin. Convert in the
snapexpay_wc_amount_usdfilter: it gets the amount (ornull), the order total, the currency and the order, and returns the amount in USD. A filter that returns an amount wins over both modes.
Updated from 1.1.0 with a rate already filled in? The plugin keeps it (Manual) until you switch to Auto. If SnapEX Pay has no rate for your currency, the settings page says so and the method is hidden at checkout until you set a manual rate. From 1.2.1 a rate typed into USD for 1 … also works as a fallback with Auto: it is used only while SnapEX Pay has no rate.
If something doesn't work
- The method doesn't show at checkout. From 1.2.1 the plugin says why in a notice at the top of the WordPress admin. Check that it is enabled and the API key is filled in — the merchant key
smk_…from Merchant → Developers, not the exchange Partner API keyspx_…; that test mode is off (or you're logged in as a shop manager); and, for a non-USD store, the message above the settings (the rate in use, or why there is none). - "Could not start the crypto payment: …". SnapEX Pay rejected the invoice — most often a wrong or revoked API key; the reason is in the message and in WooCommerce → Status → Logs (source
snapexpay). - "Crypto payment is not available for this currency". With a Manual rate, the order is in a currency the rate doesn't cover (it applies to the store's base currency only): switch to Auto or convert in the
snapexpay_wc_amount_usdfilter. - "No exchange rate for … right now". SnapEX Pay has no current rate for that currency; set a Manual rate.
- The webhook gets 401. The webhook secret in WooCommerce doesn't match the cabinet one.
- The webhook gets 400 "stale or missing timestamp". The server clock is off.
- The webhook gets 503. The URL is set in the cabinet, but Webhook secret in WooCommerce is empty.
- The webhook gets 403 or a login page. A firewall or a security plugin blocks POST requests to
/wc-api/; allow the webhook address. - A paid order becomes Processing only after a while. No webhook: the payment was picked up by the background check. Set up step 4. WP-Cron runs only when someone visits the site; on a quiet shop, trigger
wp-cron.phpfrom the system cron every few minutes.
Everything the plugin does is in the order notes and in WooCommerce → Status → Logs (source snapexpay). To remove it, deactivate and delete the plugin on the Plugins page.
Cost
1% per payment plus a fixed network fee that depends on the coin and network; no setup fee and no monthly fee. The plugin is free.
Plugin page: WooCommerce, on WordPress.org: SnapEX Pay for WooCommerce. Overview for shops: Crypto payments for online stores. Comparing gateways: SnapEX Pay vs NOWPayments, Cryptomus and CoinGate. Sign-up: pay.snapex.pro.