Skip to content

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

License

Notifications You must be signed in to change notification settings

null-none/drf-stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"},

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages