Skip to main content

Django REST Framework wrapper of the payments Django app for Stripe

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drf-stripe-1.2.6.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

drf_stripe-1.2.6-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file drf-stripe-1.2.6.tar.gz.

File metadata

  • Download URL: drf-stripe-1.2.6.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for drf-stripe-1.2.6.tar.gz
Algorithm Hash digest
SHA256 170f764b32edcd6d004fd0aa7720f1969d5dfeaa680cf17f1294fc828f364884
MD5 a0814bd3d7f971f12f429408b19dd0a6
BLAKE2b-256 42cc9e6c67e27c7d63d0a7b214dbd5c7d219c38a00852b343728d255cb00dc09

See more details on using hashes here.

File details

Details for the file drf_stripe-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: drf_stripe-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for drf_stripe-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb70255a70ad9665d63a025c1725c738aa583adeeb162da001c22a361e04623c
MD5 bb2f1456872fd3286f847b3b07129f8a
BLAKE2b-256 60d8bdee55bbfaba8285ea023a91dd7665ff7283ab23fff054a47f4828cab506

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page