PHPackages                             epmnzava/pesapal - 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. epmnzava/pesapal

ActiveLibrary[Payment Processing](/categories/payments)

epmnzava/pesapal
================

This is a laravel package for intergration with pesapal

1.0.6(3y ago)31481MITPHPPHP ^7.1|^8.0|^8.1CI failing

Since Nov 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dbrax/pesapal-laravel)[ Packagist](https://packagist.org/packages/epmnzava/pesapal)[ Docs](https://github.com/epmnzava/pesapal)[ RSS](/packages/epmnzava-pesapal/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (4)Versions (6)Used By (0)

[![](https://github.com/dbrax/pesapal-laravel/raw/main/src/Pesapal.jpeg)](https://github.com/dbrax/pesapal-laravel/blob/main/src/Pesapal.jpeg)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3a12bb763c781c3eab6bc8d7ca4aa0cd0ddf812269570bb29d9e0b0c742a245e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65706d6e7a6176612f7065736170616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/pesapal)[![Build Status](https://camo.githubusercontent.com/6c843a4575895aebd164b561ef0ab0cf91648936bfc1dbb5797de9fe6c9ff8a3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65706d6e7a6176612f7065736170616c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/epmnzava/pesapal)[![Total Downloads](https://camo.githubusercontent.com/85b9407d0b9cbe47434c005f8e86e34017254f67d1bf153ef54c72299103117a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65706d6e7a6176612f7065736170616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/pesapal)[![Emmanuel Mnzava](https://camo.githubusercontent.com/15b68fe6b51c375a750cb19d7a7a707f5c317c4941a7709e499c35b510be8ac9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d456d6d616e75656c2532304d6e7a6176612d677265656e)](mailto:epmnzava@gmail.com)

This is a laravel package for intergrating with - \[pesapal service\] () More information of this can be found [here](https://epmnzava.medium.com/)

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

[](#installation)

Version Matrix
--------------

[](#version-matrix)

VersionLaravelPHP Version1.0.08.0&gt;= 8.01.0.18.0&gt;= 7.3 &gt;= 8.01.0.28.0&gt;= 7.2.5 &gt;= 8.0You can install the package via composer:

```
composer require epmnzava/pesapal
```

Update your config (for Laravel 5.4 and below)
==============================================

[](#update-your-config-for-laravel-54-and-below)

Add the service provider to the providers array in config/app.php:

```
Epmnzava\Pesapal\PesapalServiceProvider::class

```

Add the facade to the aliases array in config/app.php:

```
'Pesapal'=>Epmnzava\Pesapal\PesapalFacade::class,

```

Publish the package configuration (for Laravel 5.4 and below)
=============================================================

[](#publish-the-package-configuration-for-laravel-54-and-below)

Publish the configuration file and migrations by running the provided console command:

```
php artisan vendor:publish --provider="Epmnzava\Pesapal\PesapalServiceProvider"

```

### Environmental Variables

[](#environmental-variables)

PESAPAL\_CONSUMER\_KEY `your provided pesapal consumer key `

PESAPAL\_CONSUMER\_SECRET `your provided pesapal client secret`

PESAPAL\_API\_URL `your provided pesapal api url live: www.pesapal.com Test demo.pesapal.com `

PESAPAL\_CALLBACK\_URL `your  callback url`

CURRENCY\_CODE `currency put TZS for Tanzanian Shillings`

Usage
-----

[](#usage)

This release does not come with database tables for transaction or payments you need to create then After you have filled all necessary variables , providers and facases this is how the package can be used.

```
