How can I test Bill Payments in Localhost

Updated 2 weeks ago

How to mock bill payments in testing mode

Setting up your local environment is important for mocking your bill payments. We covered the basics of setting up your local environment here.

Here are additional tips to help you mock bill payments locally:

  1. Only test supported payments, some payments are not available in all regions.

  2. Use custom data and testing helpers to mock your payments.

  3. Ensure you include the country code in your request's mobile number (e.g. +234 for Nigerian numbers).

  4. Check that mobile numbers include recognizable telecommunication provider codes (e.g. +234803XXX, +234901XXX, +234816XXX, etc.).

  5. In the unlikely event that an error occurs, ensure that you implement effective error handling as well as useful next steps for your users to resolve the payment errors in the bill payment flow.

  6. Reconcile users' payments using the bill summary and bill history APIs before closing the transactions.

If you encounter any issues with your tests, contact our support team for additional assistance.

We'd like to hear from you

Suggest the type of support articles you'd like to see

Still need help?

Get in touch if you have more questions that haven’t been answered here