Payment Gateway
LipaNet supports the following gateways:- M-Pesa Paybill
- M-Pesa Till Number
- Bank Account
- Sacco Paybill
Before you begin
Have the following details ready:How to configure
On your account, go to Settings → Gateways.


Complete security verification
Select M-Pesa Paybill
Enter the Daraja credentials
Choose whether this is the default gateway
Choose the validation behavior
Save the settings
Register the C2B URLs
URL registration tells Safaricom where to validate and deliver manual Paybill transactions.Confirm the saved Paybill
Select Register URLs
Wait for confirmation
PPPoE and Static IP payments
PPPoE and Static IP customers use the same account-wide M-Pesa C2B callback registration. Their payment type does not require a separate Daraja callback URL or a separate gateway registration. The customer’s username or account reference is used to match the incoming Paybill payment. Before registering again, remove the old C2B URL registration in the Safaricom Daraja portal. Leaving an old registration in place can cause callbacks to be delivered to the previous application or address.Delete the existing Daraja registration
Save the Paybill gateway in LipaNet
Register the new URLs
Test a PPPoE or Static IP payment
URLs registered with Safaricom
The system builds the URLs from your assigned subdomain:acme and the portal domain is lipanet.com:
How account validation works
When Enable Validation is turned on:- A customer enters the Paybill and account reference in M-Pesa.
- Safaricom sends the transaction details to the validation URL.
- The system checks the account reference against the correct account.
- A recognized customer or hotspot reference is accepted.
- An empty or unknown reference is rejected before payment.
Test the setup
Use a small live payment after registering the URLs:- Open M-Pesa and select Lipa na M-Pesa.
- Select Pay Bill.
- Enter the configured shortcode.
- Enter a valid customer username or account number.
- Pay a small amount.
- Open Finance → Transactions in the portal.
- Confirm that the transaction appears with the receipt, amount, phone number, and account reference.
Updating credentials or URLs
Register the URLs again when:- The account subdomain changes.
- The portal domain changes.
- Safaricom clears or replaces the registered URLs.
- The Paybill shortcode changes.
Troubleshooting
M-Pesa Paybill is not configured. Save credentials first.
M-Pesa Paybill is not configured. Save credentials first.
Consumer key, consumer secret and shortcode are required
Consumer key, consumer secret and shortcode are required
Failed to authenticate with Safaricom
Failed to authenticate with Safaricom
Tenant has no subdomain assigned
Tenant has no subdomain assigned
Safaricom rejected the registration
Safaricom rejected the registration
- The shortcode is not linked to the Daraja application.
- C2B URL registration is not enabled for the Paybill.
- The callback host is not publicly reachable over HTTPS.
- The submitted credentials belong to another shortcode.
A payment was received but not matched
A payment was received but not matched