This repository offers a great starting point for testing your Jenga API. This repo implements Jenga API wrapper for Laravel by @njoguamos.
Before cloning this repository, ensure you have the following from JengaHQ
- You have created an account with JengaHQ. Register account here
- You have a
merchantCode
,consumerSecret
andApi-Key
. Learn how to generate these credentials - You have subscribed to JengaAPI subscriptions. Without subscription, requests may fail.
- You have added a bank account in your JengaHQ dashboard. This account can be real bank account or demo bank account.
git clone git@github.com:njoguamos/laravel-jenga-playground.git
cp .env.example .env
php artisan key:generate
# Database connection
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_jenga_playground
DB_USERNAME=root
DB_PASSWORD=
# Jenga Credenatials
JENGA_LIVE_MODE=false
JENGA_MERCHANT_CODE=
JENGA_API_KEY=
JENGA_CONSUMER_SECRET=
# Optional
JENGA_DEFAULT_ACC=
JENGA_DEFAULT_WALLET=
JENGA_COUNTRY_CODE=
php artisan migrate
php artisan jenga:keys
pbcopy < ./storage/jenga.pub.key
Open your application in a new shell and run the following command. This command will generate Bearer token
every five minutes.
php artisan schedule:work
vite build && php artisan serve
Open the application http://127.0.0.1:8000 in a browser