{"repo":"oscarychen/drf-stripe-subscription","free":true,"listed":false,"github":"https://github.com/oscarychen/drf-stripe-subscription","clone":"git clone https://github.com/oscarychen/drf-stripe-subscription.git","description":"An out-of-box Django REST framework solution for payment and subscription management using Stripe.","language":"Python","stars":120,"topics":["stripe","django","payments","billing","payment","subscription","rest-api","webhook"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"drf-stripe-subscription An out-of-box Django REST framework solution for payment and subscription management using Stripe. The goal of this package is to utilize Stripe provided UI and features as much as possible to manage subscription product models. This package helps you make use of Stripe's hosted UI for customer checkout, billing management, as well as for admin to manage product, pricing, and customer subscriptions. - Django data models representing Stripe data objects - Supports Stripe Webhook for managing changes with your products, prices, and customer subscriptions - Django management commands for synchronizing data with Stripe - Django REST API endpoints supporting Stripe Checkout Session and Customer Portal Installation & Setup Include the following drf stripe settings in Django project settings.py: Include drf stripe in Django INSTALLED APPS setting: Include drf stripe.url routing in Django project's urls.py, ie: Run migrations command: Pull data from Stripe into Django database using the following command: Finally, start Django development server as well as Stripe CLI to forward Stripe webhook requests: Usage The following REST API endpoints are provided: List product prices to subscribe This endpoint is available to both anonymous users and authenticated users. Anonymous users will see a list of all currently available products. For authenticated users, this will be a list of currently available products without any products that the user has already subscribe","default_branch":null,"files":null,"tree":[],"storefront":"/r/oscarychen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oscarychen/drf-stripe-subscription/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}