allandereal/pesapal-laravel

PesaPal payment driver for Laravel.

Fund package maintenance!
allandereal

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-main 2024-11-07 05:49 UTC

This package is auto-updated.

Last update: 2025-04-07 06:42:29 UTC


README

##PesaPal Laravel package

Minimum Requirements

  • Laravel 11.x
  • A PesaPal account with consumer key and secret

Installation

Require the composer package

composer require allandereal/pesapal-laravel

Publish the configuration

This will publish the configuration under config/pesapal.php.

php artisan vendor:publish --tag=pesapal.config

Publish the views (optional)

PesaPal comes with some helper components for you to use on your checkout, if you intend to edit the views they provide, you can publish them.

php artisan vendor:publish --tag=pesapal.components

Add your PesaPal credentials

Make sure you have the PesaPal credentials set in config/pesapal.php

'base_url' => env('PESAPAL_BASE_URL'),
'consumer_key' => env('PESAPAL_CONSUMER_KEY'),
'consumer_secret' => env('PESAPAL_CONSUMER_SECRET'),
'webhook_path' => env('PESAPAL_WEBHOOK_URL'),

Keys can be found in your PesaPal account https://developers.pesapal.com/

Contributing

Contributions are welcome, if you are thinking of adding a feature, please submit an issue first so we can determine whether it should be included.