A sample RESTful API that allows Paystack users carry out money transfers as well as list and search through their transfer history.
- MySQL database
- Redis server
- Apache web server
- PHP 7.2.5 or higher
- Create a new MySQL database called "krass"
- Create a new user MySQL user with username = "krass" and password = "krass"
- Grant the new MySQL user ("krass") full privileges to the "krass" database
- Open a new terminal window in a folder of your choice
- From the terminal, run the command
git clone https://github.com/kheme/krass.git - Enter the the "krass" folder and make a copy of the
.env.examplewith the commandcp .env.example .env - Open the
.envfile in an editor of your choice, and set yourREDIS_PASSWORDandPAYSTACK_SECRET_KEY - From the terminal window, run the following commands:
composer updateto install dependenciesphp artisan migrateto migrate database tablesphp artisan passport:installto install Lumen Passportphp artisan passport:keysto generate Lumen Passport keys- Finally
php -S localhost:8000 -t ./publicto start the built-in development server
Documentation for this API is available on Postman via https://documenter.getpostman.com/view/8339368/T1LLFoLr
Paystack's API documentation is publicly available via https://paystack.com/docs/api/