Skip to content

OVAC Hubtel Payment

Posted in News

The best and most comprehensive PHP Client for consuming the Hubtel Payment API and for sending and receiving Mobile Money Payment from a PHP application with an elegant Write as it sounds syntax.

This is a guest post from Ariama Victor (ovac4u). Article first appeared on ovac4u.

“Ariama Victor (ovac4u). I’m a Fullstack Developer/Programmer, Usability Consultant, UI Designer and Entrepreneur and 3d Visualiser based in East Legon, Accra. Ghana. I’m into all things web, 3d and mobile.”

What is it?

OVAC/Hubtel-Payment is a comprehensive PHP client for consuming the Hubtel Mobile Money Payment server API. It’s a full-on PHP toolbelt sugar-coated by an elegant syntax directly inspired by the Laravel framework.

It features a good set of methods and tests for accessing the Hubtel Mobile Money Payment with a Write as it sounds syntax. Oh, also it is growing all the time.

What’s the cherry on top? It wraps nicely around native Guzzlehttp client and uses most of PHP best practices in relation to usability and security. What does this mean? This means that Pay::receiveMoney()->from(0553577261)->run(); actually places a dynamic call behind the scene in a very secure manner using the phone number as the Customer’s idn as required by the Hubtel’s Mobile Money Receive Money API and prompts the owner of the phone number as an agent.

Install OVAC\Hubtel-Payment

To install OVAC\HubtelPayment library, simply run

OVAC\Hubtel-Payment Basic Usage

First Obtain a Hubtel Developer Account Number, ClientID and ClientSecret from

The ReceiveMoney class may be used to send a prompt to the customer’s phone to receive money from a mobile-money agent as follows:

The SendMoney class may also be used to send money to any mobile money customer as follows:

The Refund class may also refund money a customer paid in a previous transaction:


You can find a detailed summary of all classes and methods on the official page. The changelog is available in the CHANGELOG file.

You can find a detailed summary of all classes and methods in the repo’s wiki or the official page. The changelog is available in the CHANGELOG file.


if you have PHPUnit installed globally

$ vendor/bin/phpunit

or use the composer script

$ composer phpunit

Code analysis tools

lint/checkstyle with phpcs:

$ composer phpcs

mess detector with phpmd:

$ composer phpmd

copy & paste detector with phpcpd:

$ composer phpcpd

phpunit, lint, mess detector in one command:

$ composer test


A simple ci bash script exists under bin folder

$ bin/


Thank you for considering contributing to Laravel Hackathon Starter. The contribution guide can be found in the Contribution File


If you discover any security-related issues, please email instead of using the issue tracker.



  • Licence: MIT


How can I thank you?

Why not star the Github repo? I’d love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don’t forget to follow me on instagram and twitter

Thanks! Ariama Victor (ovac4u).