samueltarus/laravel-pesapal is a Laravel package for a laravel package for pesapal integration.
It currently has 0 GitHub stars and 0 downloads on Packagist.
Install it with composer require samueltarus/laravel-pesapal.
Discover more Laravel packages by samueltarus
or browse all Laravel packages to compare alternatives.
Last updated
This package provides an easy way to integrate PesaPal payment gateway into your Laravel application.
You can install the package via composer:
composer require samueltarus/laravel-pesapal
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
This package provides two main routes:
POST /pesapal/process-paymentGET /pesapal/check-statusYou 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');
The MIT License (MIT). Please see License File for more information.# laravel-pesapal