Check out the post.
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate
-
Install the requirements:
(venv)$ pip install -r requirements.txt
-
Apply the migrations:
(venv)$ python manage.py migrate
-
Add your Stripe test secret key, test publishable key, endpoint secret and price API ID to the settings.py file:
STRIPE_PUBLISHABLE_KEY = '<your test publishable key here>' STRIPE_SECRET_KEY = '<your test secret key here>' STRIPE_PRICE_ID = '<your price api id here>' STRIPE_ENDPOINT_SECRET = '<your endpoint secret here>'
-
Run the server:
(venv)$ python manage.py runserver