Create a paystack account https://paystack.com
git clone the project git clone https://github.com/kofnet002/django-paystack-integration.git
- navigate to the project folder
cd django-paystack-integration - create a virtual environment
python -m venv venvand activate it:- for linux base machine
. venv/bin/activate - for window base machine
venv\Scripts\activate
- for linux base machine
- install the necessary requirements
pip install -r requirements.txt
- create a
.envfile in the base directory of the project - create the following variables and replace them with the your paystack_secret and paystack_public, and any secret for the SECRET_KEY
SECRET_KEY=XXXXXPAYSTACK_SECRET_KEY=XXXXXPAYSTACK_PUBLIC_KEY=XXXXX
- create the neceseary migration:
python manage.py makemigrationspython manage.py migrate
run the application python manage.py runserver to get the application starting
you can create a superadmin to get access to the django admin dashboard python manage.py createsuperuser, url 127.0.0.1:8000/admin/