PHPackages                             codelords/ssentezo-wallet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. codelords/ssentezo-wallet

ActiveLibrary[Payment Processing](/categories/payments)

codelords/ssentezo-wallet
=========================

A package to help integrate ssentezo wallet into your php application

v2.0.04(1y ago)27011MITPHPPHP &gt;=5.6

Since Dec 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/code-lords/ssentezo-wallet)[ Packagist](https://packagist.org/packages/codelords/ssentezo-wallet)[ Docs](https://github.com/code-lords/ssentezo-wallet)[ RSS](/packages/codelords-ssentezo-wallet/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (9)Dependencies (2)Versions (21)Used By (0)

ssentezo-wallet
===============

[](#ssentezo-wallet)

A package to help integrate ssentezo wallet into your php application

Getting started
---------------

[](#getting-started)

1. Create a ssentezo wallet account

[Ssentezo Wallet](https://wallet.ssentezo.com/)

Installation
------------

[](#installation)

The recommended way to install ssentezo wallet is through [Composer](http://getcomposer.org):

```
$ composer require codelords/ssentezo-wallet

```

After ssentezo wallet installs, you can copy an example file to the project root.

```
$ cp vendor/code-lords/ssentezo-wallet/resources/example.php .

```

Making tranasactions
--------------------

[](#making-tranasactions)

To make transactions you only need to create an instance of the ssentezo wallet

```
use Codelords\SsentezoWallet;

$username = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$password = "zzzzzzzzzzzzzzzzzzzzzzzzzzzz";
$wallet = new SentezoWallet($username, $password);
```

With the wallet object you can easily check balance, make deposits withdrawals and as well check status of a transaction.

Configurations
--------------

[](#configurations)

Before we look at how you can make transactions, Let's first look at the configurations.

```
/**
 * Environment
 * You can choose which environment you are using your wallet.
 * There are two possibilites production and sandbox
 * For testing purposes always use sandbox to avoid making errors that may result int real
 * money losses.
 */
$wallet->setEnvironment("sandbox");

/**
 * Currency
 * You can also select a currency you want to use
 *
 */
$wallet->setCurrency("UGX");
```

Here is a list of all the possible configurations and the various methods you can use to manipulate them.

ConfigurationDescriptionValuesSetterGetterEnvironmentThe enviroment you are using your wallet inproduction, sandboxsetEnvironment($value)getEnvironment()CurrencyThe currencyUGX, KESsetCurrency($value)getCurrency()CallbackA valid url which ssentezo wallet calls incase the transaction completesA valid urlsetCallback($url)getCallback()Making a deposit
----------------

[](#making-a-deposit)

```
use Codelords\SsentezoWallet;

$wallet = new SsentezoWallet($username, $password);
$username =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API username
$password =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API password
$phone_number = "+256771234567";
$amount = 10000.00;
$transaction_ref = "xxx";//Some unique reference to the transaction
$narrative = "xxx"; //A description of the transaction
$successCallbackUrl = "https://example.com/success";//A call back once the transaction is successful
try {

    $ret = $wallet->deposit($phone_number,$amount,$transaction_ref,$narrative,$successCallbackUrl);
    //
}catch(\Exception $e){
    //Something wrong happened
    echo "Exception: ". $e->getMessage();
}
```

Check Status of Transaction
---------------------------

[](#check-status-of-transaction)

```
$transaction_ref = "xxx";//The unique identifier of the transaction
$username =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API username
$password =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API password
$wallet = new SsentezoWallet($username, $password);

try {
    $response = $wallet->checkStatus($prn);//The response object has all the information about the transaction
    //You can then find the status
    switch ($response->status) {
        case "SUCCEEDED": // For success
            break;
        case "FAILED": //Failed the transaction
            break;
        case "PENDING": //Still Pending
            break;
        case "INDETERMINATE": //As the name suggests
            break;
        default:// WTF
    }
} catch (Exception $e) {
    //Something went wrong
    echo "Exception: ".$e->getMessage();

}
```

Making a Withrawal
------------------

[](#making-a-withrawal)

```
use Codelords\SsentezoWallet;

$wallet = new SsentezoWallet($username, $password);
$username =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API username
$password =  "xxxxxxxxxxxxxxxxxxxxx";//Put here your API password
$phone_number = "+256771234567";
$amount = 10000.00;
$transaction_ref = "xxx";//Some unique reference to the transaction
$narrative = "xxx"; //A description of the transaction
$successCallbackUrl = "https://example.com/success";//A call back once the transaction is successful

try {

    $response = $wallet->withdraw($phone_number, $amount, $transaction_ref, $narrative, $successCallback);
    //
}catch(\Exception $e){
    //Something wrong happened
    echo "Exception: ". $e->getMessage();
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~63 days

Recently: every ~33 days

Total

12

Last Release

603d ago

Major Versions

v0.0.2 → v1.0.02023-01-01

v1.0.4 → v2.0.02024-06-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/a752450a73f0068a27f21588c32dfc921d8687906c7f5d5b53b004d676ac1d25?d=identicon)[daakibenja](/maintainers/daakibenja)

---

Top Contributors

[![daakibenja](https://avatars.githubusercontent.com/u/58640356?v=4)](https://github.com/daakibenja "daakibenja (41 commits)")

---

Tags

composermobilemoneyphpssentezowallet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codelords-ssentezo-wallet/health.svg)

```
[![Health](https://phpackages.com/badges/codelords-ssentezo-wallet/health.svg)](https://phpackages.com/packages/codelords-ssentezo-wallet)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
