Documentation/Integrations/Payment gateways

Payment gateways

Accept online payments against your invoices and see them recorded automatically.

AdvancedAbout 25 minutesVersion 1.0Updated 17 November 2026

Overview

A payment gateway lets customers pay your invoice online. The payment is recorded against the invoice automatically, so you do not match it by hand.

Gateways available to you depend on your plan and region. Ask Hesabu ERP support which ones we have prepared for your workspace, and use that setup rather than building your own where possible.

Prerequisites

An account with the payment provider, such as Paystack, with test and live keys. A bank account or wallet set up in your chart of accounts to receive the money. See The chart of accounts.

Steps

  1. Search for the gateway's settings, for example Paystack Settings, in the Integrations workspace.
  2. Enter your public key and secret key, starting with test keys.
  3. Search for Payment Gateway Account, add one, choose the gateway, the payment account and the currency, and save.
  4. Create a test invoice, then click Create > Payment Request. Send the payment link to yourself and pay with a test card or wallet.
  5. Check that a Payment Entry was created and the invoice shows as Paid.
  6. Replace the test keys with your live keys when everything works.

Practical example

A wholesaler emails each invoice with a Pay now link. Customers pay by card or mobile money, and the receipt and payment entry appear within a minute.

Important notes

  • Never share your secret key or paste it in an email.
  • Gateway fees are charged by the provider. Record them as an expense, or ask your accountant how to book them.
  • Keep the gateway's own statement. Reconcile it with your bank. See Bank accounts and bank reconciliation.

Common mistakes

  • Using live keys while testing, which creates real charges.
  • Choosing the wrong payment account, so money posts to the wrong place.

Troubleshooting

If a payment was taken but the invoice is still unpaid, check Error Log and the gateway's dashboard. A webhook may have failed. Contact support with the payment reference.

Next steps

To send a payment prompt straight to a customer's phone, read Requesting M-Pesa and Airtel Money payments from an invoice. Then read API keys and webhooks.

Was this article helpful?