Some hosting customers would rather pay in Bitcoin or USDT than by card. The usual route is a crypto payment processor: it collects the coins, takes a cut, and pays you out later. That means a third party holds your money for a while, on its fees and payout schedule.

The alternative is to have customers pay straight into a wallet you control, with WHMCS doing the bookkeeping. This post covers the decisions involved, whatever tool you use.

Why "here's our address" isn't enough

Printing a wallet address on the invoice and marking invoices paid by hand falls apart quickly:

  • the customer has to work out the amount in crypto at today's rate;
  • you have to work out which invoice a transaction belongs to;
  • someone has to wait for confirmations before trusting it;
  • short payments, overpayments and late payments all become support tickets.

A proper setup quotes an exact crypto amount, watches the blockchain, and credits the WHMCS invoice once the payment is confirmed.

A WHMCS invoice checkout on a test network, with the exact amount, address, QR code and status

Decision 1: where the money lands

Three sensible destinations give software very different powers:

  • A watch-only wallet. You hand over public information only (an extended public key, or receiving addresses). The software can see payments arrive but can never spend them. Never paste a recovery phrase or private key for this.
  • A hot wallet. A key held encrypted on your own server, so the software can send as well: refunds, or sweeping the balance to cold storage. Convenient, but keep only small sums there, and protect it with spending limits and an approved-destinations list.
  • Your own exchange account. Use a deposit address from the exchange as the destination. The exchange holds those funds under its own terms, which is not the same as self-custody, but it suits hosts who convert to pounds anyway.

Wallet choices: create a new wallet, use an existing receive-only wallet, or one that can also send

Decision 2: how to tell invoices apart

  • A fresh address per payment. With an extended public key (xpub or zpub), Bitcoin and Litecoin wallets can derive a new address for every invoice. Matching is unambiguous.
  • A pool of addresses you provide. Most Ethereum wallets don't export an extended key, so supply a list of your own addresses instead. Each open invoice borrows one exclusively until it's paid or expires. Keep enough spare addresses for the payments you expect.
  • One address for everything. The simplest to set up, but then the amount alone separates invoices. An odd amount that could belong to several open invoices needs a human to allocate it. Also, anything sent to an address is public: every customer who has paid it can read your takings on a block explorer.

Prefer separate addresses wherever your network and wallet allow it.

Decision 3: the quote

The customer needs one exact number: a live rate, locked for a payment window (30 minutes is a reasonable start), plus rules for when pricing goes wrong:

  • use more than one price source (CoinGecko, Kraken and CoinMarketCap, for example) in a set order, so one outage doesn't stop checkout;
  • refuse to quote on a rate older than a few minutes;
  • hold a coin if two sources disagree sharply, rather than quoting either figure;
  • add a small markup to the crypto amount to cover rounding, later network fees and price movement.

Decision 4: confirmations and late payments

A transaction on the chain isn't yet a settled one. Set how many confirmations each coin needs.

A customer who sends with seconds to spare may confirm after expiry. Keep watching an expired quote for a day or so: a payment first seen inside the window gets credited when it confirms, and one that turns up later is held for a person to review.

Decision 5: short and over payments

Exchanges often deduct a withdrawal fee, so payments can arrive a fraction short. Pick a tolerance (say 1%) below which a shortfall is accepted as payment in full, and ask for a top-up beyond that. Keep your markup above the tolerance, so a payment at the bottom of the band still covers the invoice.

For overpayments, choose between adding the surplus to the client's credit balance and holding it for review. Decide before the first one arrives.

Refunds are new transactions

A crypto refund can't reverse the original transfer. It's a fresh send, and WHMCS's "Refund through Gateway" has no field for the destination address. So:

  • confirm the refund address with the customer; the address a payment came from may belong to their exchange, not to them;
  • from a watch-only wallet, send it yourself and record it against the invoice with the transaction ID;
  • from a hot wallet, the software can sign and send it, within your safeguards;
  • a full refund should mark the invoice Refunded, and a partial one leaves it Paid.

Customer emails and the cron

Two short emails save a lot of "did you get my payment?" tickets: one when the payment is first seen, one when it's credited. Staff should hear about short, excess and late payments too.

Payment detection is background work. On the standard WHMCS cron that usually means every five minutes; a dedicated one-minute cron gets a confirmed payment onto the invoice within a minute or two.

Rehearse on a test network

Before taking real coins, switch to a test network (Sepolia for Ethereum, or the Bitcoin and Litecoin testnets) and pay a fresh test invoice end to end. Try a short and a late payment too. When you switch back to live, check the live wallets and coins again: a working testnet setup proves the workflow, not your mainnet addresses.

Watch the walkthrough

A full WHMCS tutorial covering the setup, the settings and a real test-network payment:

The module we built for this

We make PD Crypto Pay, a WHMCS payment gateway that does all of the above. Payments go straight to your wallet or exchange account, and PD takes no commission on them. It handles BTC, LTC and ETH, networks such as Tron, Polygon and Base, and ERC-20 or TRC-20 tokens like USDT and USDC. You get all three address strategies, the payment rules above, refunds from the payment record, and a test mode. It runs inside the free PD Modules panel, which also offers that one-minute cron.

See the PD Crypto Pay for WHMCS page for details. Questions are welcome in the comments.

PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.