IP allowlisting and networking
Get your server IPs allowlisted (whitelisted) for Hubtel services that require it, and give serverless apps a static outbound IP address.
Many Hubtel APIs accept requests only from server IP addresses you've allowlisted. Send your servers' public IPv4 addresses to your Retail Systems Engineer.
Services marked "IP allowlist" in the API reference accept requests only from server IP addresses Hubtel has allowlisted (also called whitelisting). That includes payments, payouts, status checks, refunds, balances, verification, commission services and the service fulfilment callback.
Production allowlisting
| Rule | Detail |
|---|---|
| How to request | Send your servers' public IP addresses to your Retail Systems Engineer. |
| Address type | IPv4 only. Hubtel doesn't allowlist domain names. |
| Limit | Up to 4 IP addresses per service. |
| Not allowlisted | Requests get 403 Forbidden, or time out. |
If you still get 403 after your IP was added, your requests are probably leaving from a different address, or your server's IP isn't static. Run curl -4 https://ifconfig.me on the server itself to see the address Hubtel receives.
Get a static outbound IP address
Serverless platforms and many PaaS hosts send requests from changing addresses. To use an allowlist, you need a fixed outbound address:
Configure your host to route Hubtel requests through a static outbound IPv4 address, for example through a NAT gateway or an outbound proxy. Ask your hosting provider which option is supported for your plan and runtime. Check the address from the same runtime that makes the API request before submitting it to Hubtel.
Add every environment that calls Hubtel (production and any staging that uses live credentials), within the limit of 4 addresses per service.
Build a complete integration
Collect a mobile money payment with Direct Receive Money, handle the callback, deal with failed payments and reconcile payments whose callback doesn't arrive.
Go live
What to complete before your first live request: your business on Hubtel, protection against unsolicited prompts, a sender ID, allowlisted server IPs and production credentials.