WHMCS Crypto Payments: Accept USDT & Bitcoin for Hosting Invoices
FlatCryptoPay does not have a native WHMCS module yet; it is on our roadmap. Today hosting providers can accept USDT, USDC and Bitcoin on WHMCS invoices with a payment link or by creating FlatCryptoPay invoices through the API, with funds going straight to their own wallet.
Requirements
- A WHMCS installation with admin access.
- A FlatCryptoPay account with payout addresses added.
- For the API route: a developer comfortable with PHP and WHMCS hooks or the WHMCS API.
- An API key and a webhook signing secret for automatic invoice updates.
Setup steps
- 1
Choose your approach
Start with a payment link if you want something working in minutes. Use the invoices API if you want exact amounts and automatic payment recording.
- 2
Payment link route
Create a payment link with a customer-chosen amount in the FlatCryptoPay dashboard. In WHMCS, enable a manual-style payment gateway such as Bank Transfer, rename it to Crypto (USDT, USDC, Bitcoin) and put the link and the instruction to include the invoice number in its instructions.
- 3
API route
Use a WHMCS hook on invoice creation, or a small custom page, to call POST /api/v1/invoices with the WHMCS invoice total, currency and invoice number as order_id. Show the returned hosted_url as a Pay with crypto button on the invoice.
- 4
Record payments
Receive the invoice.paid webhook, verify the X-FCP-Signature header, then call the WHMCS AddInvoicePayment API with the transaction hash as the transaction ID. With the payment link route, record payments manually from the dashboard.
- 5
Test first
Use an fcp_test_ key and the Simulate payment button to confirm your webhook handler records payments before switching to a live key.
Why hosting companies accept crypto
Hosting, VPS and domain businesses have long been among the biggest users of crypto payments. Customers are international, often technical, and many prefer to pay without sharing card details. Stablecoins such as USDT on TRON are popular because fees are low and the value does not move between invoice and payment.
Most hosting gateways charge a percentage on every renewal. With FlatCryptoPay you pay a flat monthly price instead: $0 up to $2,000 processed per month, $29 up to $50,000 and $99 unlimited. Renewals do not get more expensive as your customer base grows.
Automating WHMCS with the invoices API
The cleanest setup today is a small integration that creates one FlatCryptoPay invoice per WHMCS invoice. Pass the WHMCS invoice number as order_id and any client reference in metadata. Set expires_in to match your payment terms, up to 10,080 minutes (7 days). Store the returned invoice ID against the WHMCS invoice so repeat clicks reuse the same pay page; an Idempotency-Key header based on the WHMCS invoice number prevents duplicates.
When the payment confirms, your webhook handler receives invoice.paid with the payment details, including asset, network, amount and tx_hash. Verify the signature over the raw body, reject timestamps older than five minutes, deduplicate on X-FCP-Event-Id, and add the payment in WHMCS. WHMCS then handles service activation or renewal as it does for any other gateway.
Recurring billing
Crypto is push-only, so there is no automatic card-style charge. WHMCS generates a renewal invoice; your integration creates a matching FlatCryptoPay invoice and WHMCS emails the client the invoice with the pay link. The client pays from their wallet. This is the same experience customers know from other crypto gateways.
WHMCS module roadmap
A native FlatCryptoPay gateway module for WHMCS, with automatic invoice creation and payment callbacks, is on our roadmap. Until it ships we will not claim otherwise. The API approach above uses the same endpoints the module will use, so work you do now will not be wasted.
Frequently asked questions
Is there a FlatCryptoPay WHMCS module?
Not yet. It is on our roadmap. Today you can use payment links or the invoices API with a small WHMCS hook.
Can renewals be paid in USDT?
Yes. Each renewal invoice can have a FlatCryptoPay pay link where the client chooses USDT, USDC, Bitcoin or Litecoin.
How do payments get recorded in WHMCS?
With the API route, your webhook handler calls the WHMCS AddInvoicePayment API after verifying the invoice.paid webhook. With the payment link route, you record payments manually.
Do you charge a percentage on hosting renewals?
No. FlatCryptoPay charges a flat monthly plan price with 0% platform fee.
Do my clients need an account?
No. Clients pay from any wallet or exchange that supports the chosen network.
Related
Start accepting crypto in minutes
Create a free account, add your wallet addresses and send your first invoice. No business documents, no percentage fees, no custody.