Integrating Django and Stripe — Case Study: Online Shop
4 min readDec 16, 2021
You are building your fullstack web application and everything is working great. And now comes the part to handle the payment via credit card which is very hard to handle. You decide to offload it to Stripe and let they handle it. But how? We are going to see it in this article.
Preparation
Clone the bootstrap project first:
git clone -b without-stripe git@github.com:stevelukis/django_stripe_integration.git
cd django_stripe_integration
Install the dependencies:
pip install -r requirements.txt
Run the server:
python manage.py runserver
Open http://127.0.0.1:8000/admin/
and create some dummy products.
Then open http://127.0.0.1:8000/products/
. Your products should appear now.
Pardon the basic UI as that is not our focus right now 😁.