Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/null-none/drf-stripe

💳 Django REST Framework wrapper of the payments Django app for Stripe
https://github.com/null-none/drf-stripe

api django django-rest-framework drf stripe stripe-api

Last synced: about 1 month ago
JSON representation

💳 Django REST Framework wrapper of the payments Django app for Stripe

Awesome Lists containing this project

README

        

======================
drf-stripe
======================

Django REST Framework wrapper of the payments Django app for Stripe

Install
======================
* pip install drf-stripe
* Add 'payments' to INSTALLED_APPS
* Add to urls.py: ``url(r"^api/stripe/", include("payments.api.urls"))``

Endpoints
======================
* current-user/ (GET)
* subscription/ (GET/POST)
* change-card/ (GET/POST)
* charges/ (GET)
* invoices/ (GET)
* plans/ (GET)
* events/ (GET)
* webhook/ (POST)
* cancel/ (POST)

Plans
======================

* "premium": {"name": "Premium", "stripe_plan_id": "price_1L6TduCWdky3mdpH4wCEdKvf"},