Hubtel
Collect payments with Hubtel
HUBTEL sends the payer to Hubtel’s checkout page through its Online Checkout
API, into the ISP’s own Hubtel merchant account. The payer chooses how to pay on
that page, and Hubtel confirms the result on a callback.
Available to ISPs in Ghana (GH), alongside MTN MoMo, PawaPay, Paystack, PayPal, and DPO.
Before you start
- Complete Hubtel merchant onboarding in an account owned by the ISP.
- In the Hubtel dashboard open API & Integrations → API Credentials and collect the client ID and client secret.
- Note your merchant account number, which Hubtel also calls the POS Sales ID. Every charge is made to this account, and Hubtel refuses charges that do not name it.
- Confirm your workspace has a public HTTPS domain, so Hubtel can reach the callback.
Configure the gateway
Open Settings → Payments → Hubtel
Select Hubtel from the payment marketplace.
Enter the client ID
Hubtel client ID (required) comes from API & Integrations → API Credentials.
Enter the client secret
Hubtel client secret (required) is stored as a secret and is not echoed back into the form after saving. The pair is sent as HTTP basic authentication on every request.
Enter the merchant account number
Merchant account number (required) is your Hubtel POS Sales ID.
Run a controlled test payment
Pay a small amount from the captive portal and confirm Hubtel’s page opens and the payment reaches the ledger.
Credentials
| Field | Required | Notes |
|---|---|---|
| Hubtel client ID | Yes | API & Integrations → API Credentials. |
| Hubtel client secret | Yes | Secret. |
| Merchant account number | Yes | Your Hubtel POS Sales ID. |
Callback URLs
Settings → Payments shows https://<your-host>/api/hubtel/callback. It is also
sent with every payment request as the primary callback, so there is normally
nothing to register — but confirm it is not blocked by a firewall or WAF rule.
What the payer must provide
A phone number. Checkout needs one to create the payer’s account, and the payer picks their network on Hubtel’s page.
Unpaid devices must reach Hubtel’s page, so once Hubtel is your gateway and its
client ID, client secret and merchant account number are saved, Centipid adds
pay.hubtel.com, designs.hubtel.com, tools.hubtel.com, code.jquery.com and
challenges.cloudflare.com to your routers’ walled garden. Hubtel’s page needs all
five before its Pay button works. They are
removed if you switch to another gateway or clear those credentials.
How a payment completes
Request
Centipid Billing creates a checkout for your merchant account, with the amount and a unique client reference, and sends the payer to Hubtel’s page.
Authorization
The payer pays on Hubtel’s page, then returns to a page that waits for the result and logs a hotspot payer in.
Confirmation
Hubtel posts the outcome to the callback, which records the payment and applies the subscriber’s package.
Troubleshooting
| Symptom | What it means | What to do |
|---|---|---|
| “Hubtel credentials are not configured.” | The client ID or secret is missing. | Enter both in Settings → Payments. |
| “Hubtel merchant account number (POS Sales ID) is not configured.” | The merchant account number is missing. No request was sent. | Enter your POS Sales ID in Settings → Payments → Hubtel. |
| “A phone number is required to initiate a Hubtel payment.” | Checkout had no phone number. | Collect one before retrying. |
| A message from Hubtel on a failed request | Hubtel refused the charge and its own error is shown. | Read the message — it usually names the credential or the wallet at fault. |
| “Hubtel did not answer. No money was taken. Please try again in a moment.” | Hubtel did not answer in time, so the payer never reached its page. | If it keeps happening, check outbound connectivity from the application host. |
| Hubtel’s page does not open on the hotspot | The router has not picked up the walled-garden hosts. | Sync the router’s walled garden. |
| Paid on Hubtel’s page, ledger stays empty | The callback did not arrive. | Confirm https://<your-host>/api/hubtel/callback is publicly reachable, then see Payment troubleshooting. |
For every gateway’s fields in one place, see the credential reference.
