PHPackages                             edlugz/sasapay - 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. [API Development](/categories/api)
4. /
5. edlugz/sasapay

ActiveLibrary[API Development](/categories/api)

edlugz/sasapay
==============

This package provides you with a simple tool to make requests to Sasapay APIs so that you can focus on the development of your awesome applications instead of all the set up involved.

v1.0.15(2y ago)1522[1 issues](https://github.com/edlugz/sasapay/issues)MITPHPPHP ^8.1

Since Nov 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/edlugz/sasapay)[ Packagist](https://packagist.org/packages/edlugz/sasapay)[ Docs](https://github.com/edlugz/sasapay)[ RSS](/packages/edlugz-sasapay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (34)Used By (0)

SasaPay
=======

[](#sasapay)

[![Latest Version on Packagist](https://camo.githubusercontent.com/90b85049ffb02cf11bc9f25c3992e79cb4961b6316bd2816d0a6ba1425b8045a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65646c75677a2f736173617061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edlugz/sasapay)[![Total Downloads](https://camo.githubusercontent.com/fd71fba15111fe67170288e81d97b081dcc1515b1cc5460812c07deb03b980f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65646c75677a2f736173617061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edlugz/sasapay)[![Build Status](https://camo.githubusercontent.com/0a8fac5f76e8dd5735002ccc86d73b6e88812b1a01dfeef36bdcb696632dda1a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65646c75677a2f736173617061792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/edlugz/sasapay)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
composer require edlugz/sasapay
```

Publish Configuration File
--------------------------

[](#publish-configuration-file)

```
php artisan vendor:publish --provider="EdLugz\SasaPay\SasaPayServiceProvider" --tag="migrations"
```

Fill in all the details you will be requiring for your application. Here are the env variables for quick copy paste.

```
SASAPAY_PERSONAL_ONBOARDING_RESULT_URL
SASAPAY_BUSINESS_ONBOARDING_RESULT_URL
SASAPAY_FUNDING_RESULT_URL
SASAPAY_SEND_MONEY_RESULT_URL
SASAPAY_BUSINESS_PAYMENT_RESULT_URL
SASAPAY_UTILITY_PAYMENT_RESULT_URL
SASAPAY_CLIENT_ID
SASAPAY_CLIENT_SECRET
SASAPAY_MERCHANT_CODE
SASAPAY_BASE_URL=
```

Usage
-----

[](#usage)

Using the facade

Onboarding - Personal

```
SasaPay::personalOnboarding()->signUp($firstName, $middleName = '', $lastName, $email, $countryCode, $mobileNumber, $documentNumber, $documentType);
SasaPay::personalOnboarding()->confirm($id, $otp);
SasaPay::personalOnboarding()->kyc($customerMobileNumber, $passportSizePhoto, $documentImageFront, $documentImageBackdocumentImageBack);
```

Onboarding - Business

```
SasaPay::businessOnboarding()->signUp($firstName, $middleName, $lastName, $countryCode, $mobileNumber, $documentNumber, $documentType, $documentType);
SasaPay::businessOnboarding()->confirm($id, $otp);
SasaPay::businessOnboarding()->kyc($requestId, $businessKraPin, $businessRegistrationCertificate, $directorIdCardFront, $directorIdCardBack, $directorKraPin);
```

Customers

```
SasaPay::customer()->getCustomers();
SasaPay::customer()->customerDetails($accountNumber);
```

Fund Account - send stk push to mobile number

```
SasaPay::fund()->fundRequest($networkCode, $mobileNumber, $receiverAccountNumber, $amount, $transactionDesc);
SasaPay::fund()->processRequest($receiverAccountNumber, $checkoutRequestId, $verificationCode);
SasaPay::fund()->fundingResult($data);
```

Send Money - to mobile wallets

```
SasaPay::sendMoney()->sendToMObile($transactionDesc, $senderNumber, $amount, $reason, $networkCode, $receiverNumber, $transactionReference);
SasaPay::sendMoney()->sendMoneyResult($data);
```

Send Money - to bank accounts

```
SasaPay::sendMoney()->sendToBank($transactionDesc, $senderNumber, $amount, $reason, $bankCode, $accountNumber, $transactionReference);
SasaPay::sendMoney()->sendMoneyResult($data);
```

Lipa - to paybills and till numbers

```
SasaPay::businessPayment()->lipa($amount, $senderAccountNumber, $receiverMerchantCode, $accountReference, $transactionFee = 0, $billerType, $networkCode, $reason);
SasaPay::businessPayment()->businessPaymentResult($data);
```

Utility - for airtime, nairobi water, dstv, gotv

```
SasaPay::utility()->payUtility($amount, $payerAccountNumber, $accountNumber, $transactionFee = 0);
SasaPay::utility()->billQuery($serviceCode, $customerMobile, $accountNumber);
SasaPay::utility()->utilityResult($data);
```

Statement - fetch transaction statement

```
SasaPay::statement()->fetch($accountNumber);
```

Transaction - verify and check status

```
SasaPay::transaction()->check($checkoutRequestId, $merchantTransactionReference, $transactionCode);
SasaPay::transaction()->verify($transactionCode);
```

Balance - check merchant balance

```
SasaPay::balance()->check($accountNumber);
```

Supplementary functions - channel codes, countries, sub-regions, industries, sub-industries, business types, account product types, agent locations

```
SasaPay::supplementary()->channelCodes();
SasaPay::supplementary()->countries();
SasaPay::supplementary()->subRegions();
SasaPay::supplementary()->industries();
SasaPay::supplementary()->subIndustries();
SasaPay::supplementary()->businessTypes();
SasaPay::supplementary()->accountProductTypes();
SasaPay::supplementary()->agentLocations();
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Eddy Lugaye](https://github.com/edlugz)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.4% 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 ~1 days

Total

16

Last Release

874d ago

### Community

Maintainers

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

---

Top Contributors

[![edlugz](https://avatars.githubusercontent.com/u/4479919?v=4)](https://github.com/edlugz "edlugz (64 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (17 commits)")[![Henriquedn](https://avatars.githubusercontent.com/u/4680937?v=4)](https://github.com/Henriquedn "Henriquedn (14 commits)")

---

Tags

apilaravelphpsasapaylaravelSasaPay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edlugz-sasapay/health.svg)

```
[![Health](https://phpackages.com/badges/edlugz-sasapay/health.svg)](https://phpackages.com/packages/edlugz-sasapay)
```

###  Alternatives

[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[dcblogdev/laravel-xero

A Laravel Xero package

53129.1k1](/packages/dcblogdev-laravel-xero)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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