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

ActiveLibrary[Payment Processing](/categories/payments)

samueltarus/laravel-pesapal
===========================

A Laravel package for PesaPal integration

00PHP

Since Sep 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/samueltarus/laravel-pesapal)[ Packagist](https://packagist.org/packages/samueltarus/laravel-pesapal)[ RSS](/packages/samueltarus-laravel-pesapal/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Laravel PesaPal Integration
===========================

[](#laravel-pesapal-integration)

This package provides an easy way to integrate PesaPal payment gateway into your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require samueltarus/laravel-pesapal
```

Configuration
-------------

[](#configuration)

Publish the config file with:

```
php artisan vendor:publish --provider="samueltarus\LaravelPesaPal\PesaPalServiceProvider" --tag="config"
```

Then, add your PesaPal credentials to your `.env` file:

```
PESAPAL_CONSUMER_KEY=your_consumer_key_here
PESAPAL_CONSUMER_SECRET=your_consumer_secret_here
PESAPAL_ENDPOINT=https://endpoints.mikaappliances.com

```

Usage
-----

[](#usage)

This package provides two main routes:

1. Process Payment: `POST /pesapal/process-payment`
2. Check Status: `GET /pesapal/check-status`

You can also use the `PesaPal` facade in your code:

```
use samueltarus\LaravelPesaPal\Facades\PesaPal;

// Process a payment
$result = PesaPal::submitOrder([
    'amount' => 1000,
    'currency' => 'USD',
    'description' => 'Test payment',
    'callback_url' => 'https://your-callback-url.com',
]);

// Check status of a transaction
$status = PesaPal::getTransactionStatus('order_tracking_id');
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.# laravel-pesapal

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36603027?v=4)[Samuel Tarus](/maintainers/samueltarus)[@samueltarus](https://github.com/samueltarus)

### Embed Badge

![Health badge](/badges/samueltarus-laravel-pesapal/health.svg)

```
[![Health](https://phpackages.com/badges/samueltarus-laravel-pesapal/health.svg)](https://phpackages.com/packages/samueltarus-laravel-pesapal)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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