Skip to content

njoguamos/laravel-pesapal-playground

Repository files navigation

Laravel Pesapal Package Playground

Screenshot 2024-03-19 at 02 38 54

The purpose of this repo to allow testing and debugging Laravel Pesapal Package by Njogu Amos. You can use it to test you Pesapal credentials.

Installation

# clone the repository
git clone git@github.com:njoguamos/laravel-pesapal-playground.git 

# change into the directory
cd laravel-pesapal-playground

# install dependencies
composer install

# create a .env file
npm install
npm run build

# create a .env file
cp .env.example .env

# generate a key
php artisan key:genenate

# set up your database
touch database/database.sqlite
php artisan migrate

# create the first access token
php atisan pesapal:auth

Update your .env file with your Pesapal credentials

PESAPAL_LIVE=
PESAPAL_CONSUMER_KEY=
PESAPAL_CONSUMER_SECRET=

Start the application server

php artisan serve

Start the schedule worker

php artisan schedule:work