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 1mo 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

Maintenance29

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://www.gravatar.com/avatar/c25b4aa30e0ffe62949cbc52658516eeb89bc5d6e1189dbe98b0995551a2219a?d=identicon)[samueltarus](/maintainers/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

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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