Skip to content
Intents Checkout plugins

WHMCS

The Intents Checkout payment gateway module for WHMCS, set up in test mode first.

Download Intents Checkout for WHMCS (always the latest version)

Build File Released Tested on SHA-256
WHMCS 1.0.1 intentsfi-whmcs-1.0.1.zip 2026-11-26 WHMCS (not yet tested on a live install), PHP 8.3 (unit tests only) 4b77c4b1dcd2b357dc88147d379eadb3631bc3fe616507dff05d7db84892acf3

Each versioned file never changes once published, so its link and checksum are safe to pin.

  1. Download the zip above and unzip it onto your WHMCS root. It adds modules/gateways/intentsfi.php, modules/gateways/intentsfi/ and modules/gateways/callback/intentsfi.php.
  2. In WHMCS admin, System Settings → Payment Gateways → All Payment Gateways, activate Intents Checkout.
  3. Press Connect to Intents, sign in to (or sign up for) the dashboard and approve. You come back to WHMCS connected in test mode, with the key and the payment notifications set up. Nothing to copy. See Plugin Connect for what a connection can do.
  4. Open an unpaid USD invoice as a client and press Pay $… with crypto. On the hosted page, a test invoice has a Complete the test payment button. Press it, and the WHMCS invoice is marked Paid when the webhook arrives.

The module has not yet been tested on a live WHMCS install, so we don’t name a WHMCS version: its unit tests run against WHMCS function stubs on PHP 8.3. It needs a public https System URL so webhooks can reach it. It costs 0.4% of each completed payment, with no per-payment limit; test mode is free.

  1. In the dashboard, check your settlement asset and address, and copy your test API key (ik_test_…).
  2. Paste it into Test secret key, and copy the read-only webhook URL shown in the settings: https://<your WHMCS>/modules/gateways/callback/intentsfi.php.
  3. Add that URL as a webhook endpoint for the same key, subscribed to the invoice.* events, either on the dashboard’s Webhooks page or with the API, and paste the whsec_… secret it returns into Test webhook secret:
curl
curl https://api.intents.fi/v0/webhooks \
-X POST \
-H 'authorization: Bearer $INTENTS_SECRET_KEY' \
-H 'content-type: application/json' \
-d '{
"url": "https://northwood.example/hooks/intents"
}'
TypeScript
const response = await fetch("https://api.intents.fi/v0/webhooks", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.INTENTS_SECRET_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
"url": "https://northwood.example/hooks/intents"
}),
});
if (!response.ok) {
const { error } = await response.json();
throw new Error(`${error.code}: ${error.message}`);
}
const data = await response.json();
Python
import os
import httpx
response = httpx.post(
"https://api.intents.fi/v0/webhooks",
headers={"authorization": f"Bearer {os.environ['INTENTS_SECRET_KEY']}"},
json={
"url": "https://northwood.example/hooks/intents"
},
)
response.raise_for_status()
data = response.json()
  1. Leave Test mode on, Save Changes, and press Test connection. The status line also shows the mode and the settlement wallet payments go to.

The settings hold a test pair and a live pair; Test mode picks which one is used, and with it off and no live key nothing falls back to the test key. A key in the wrong slot, or a publishable pk_ key, is refused. A key you paste over a connected one wins, and Disconnect never touches it. There is no fee setting.

Invoices must be in USD. On an invoice in any other currency, the client sees a message to choose another payment method instead of the button, and the settings page lists the currencies affected. Nothing is converted. Leave Convert To For Processing unset for this gateway: an invoice WHMCS converts for processing is refused rather than recorded in the wrong currency.

  1. When a client opens an unpaid invoice, the module creates an invoice for the balance due with reference = whmcs-<install>-<invoice id> (…-test in test mode) and shows the pay button. Later views reuse it.
  2. The client pays on the hosted page. The module takes no part in this step.
  3. intents.fi sends signed invoice.* webhooks to the callback URL. Only invoice.paid adds a payment, through addInvoicePayment, with the intents.fi invoice ID as the transaction ID.

<install> is a short hash of your System URL, so two WHMCS installs on one account never share a reference, and an invoice that belongs to another install or WHMCS invoice is never linked or paid. The -test suffix keeps test and live references apart at a glance in the dashboard. If the WHMCS balance changes, or the invoice expires or is cancelled, the next view creates a new invoice (-r2, then -r3) and the old one is cancelled through the API. While a payment is on its way, no second invoice is offered.

Event WHMCS
invoice.paid checkCbInvoiceID, checkCbTransID, logTransaction, then addInvoicePayment for the invoice amount
invoice.processing, invoice.underpaid a Gateway Log entry
invoice.expired, invoice.canceled a Gateway Log entry. The WHMCS invoice stays Unpaid, and the next view starts a new payment
invoice.needs_review a Gateway Log entry marked Needs review

Deliveries can repeat and arrive out of order. The module records each event ID, never records the same payment twice (checkCbTransID checks again), and ranks events. So a late invoice.expired after invoice.paid changes nothing, while a late invoice.paid still records the payment.

The module does not record the payment itself, and logs Needs review instead, when:

  • the paid amount, mode or currency differs from what it asked for
  • the WHMCS invoice is no longer Unpaid (for example, it was paid another way or cancelled)
  • the payment landed on an invoice the WHMCS invoice has since replaced

Check these entries in Billing → Gateway Log and add the payment by hand if it is right.

There is no refund button. The API has no merchant-initiated refund: a payment that fails is returned to the client automatically, and you refund a completed one from your own wallet, then record it in WHMCS.

Live payments need a verified email and a payout wallet in the dashboard.

  1. Press Go live on the gateway’s settings and approve. WHMCS switches to live only when that round trip finishes. Before the two steps are done, you are told what is missing and stay in test mode. Go live fills the live key and secret and turns Test mode off; the test pair stays.
  2. With manual keys instead: register the webhook URL for the live key, paste the live key and its secret into the live fields, untick Test mode, then Save Changes.
  3. Pay a real $5 invoice from a phone, on the network your clients use, and check that WHMCS marks it Paid and that the money reaches your address.

Disconnect revokes the keys and webhooks Connect made, clears those fields and turns Test mode back on. You can also disconnect from the dashboard: Integrations → Connected stores.

  • Invoices stay Unpaid after paying. The webhook is not arriving or not verifying. Check that the secret is for the same key, and that the System URL is reachable over https from the internet. A delivery whose signature does not verify gets a 400 and is retried, and nothing is recorded. Billing → Gateway Log shows each delivery.
  • Test connection or the status line says the key check failed. The key is wrong or revoked. Press Connect to Intents again, or paste a current key.
  • Connect says the System URL is needed. Set System Settings → General Settings → System URL to this site’s https address.
  • Pressing a Connect button says your role is not allowed. Connect is for admins whose role can configure payment gateways.
  • Clients see “available for invoices in US dollars only”. The invoice is not in USD, or WHMCS is converting it for processing.

Support is by email: support@intents.fi.