Hey, I have used stripe for my first time, I am creating a subscription website. I am using djstripe, but I have noticed it is may be not the best option. How do you usually integrate stripe in django? I would love to know it!
Maybe Will’s tutorial can help
https://learndjango.com/tutorials/django-stripe-tutorial
I have a guide specifically on integrating Stripe subscriptions into Django.
Here’s my take on dj-stripe:
Pros:
- It’s great for out-of-the-box webhook support and model syncing.
- Model syncing is quite nice. E.g. being able to
ForeignKey
into a stripe data model is super convenient.
Cons:
- The docs are not very good.
- Upgrades can be a pain (though hopefully this improves in upcoming versions)
- It’s a bit opinionated and wants you to do everything its way.
Overall, I would say that for me the pros substantially outweight the cons, but if you have relatively simple requirements then it may be easier to roll your own integration. Particularly, if you’re happy without any model syncing to your DB and querying the Stripe API any time you want info about a subscription, then it’s probably not worth the trouble.
Hope that helps!
1 Like
Yes, thank you so much!