Skip to main content

Wrapper package for python stripe with Django and/or DRF

Project description

Django Silly Stripe

It is a wrapper based on the use of python's stripe API. The aim is to make it as simple as possible to use.

For now, only stripe checkout is supported, in order to handle subscriptions only.

Installation

pip install django-silly-stripe

./manage.py migrate

settings.py

INSTALLED_APPS = [
    'django_silly_stripe',  # <-- BEFORE admin>

    # ...
]


SILLY_STRIPE = {
    # keys (should be imported from environment)
    'DSS_SECRET_KEY': 'sk_xxxxxx'
    'DSS_PUBLIC_KEY': 'pk_xxxxxx',
    'DSS_RESTRICTED_KEY': 'rk_xxxxxx',  # optionnal
    'DSS_WEBHOOK_SECRET': 'wk_xxxxxx',
    # ... read the wiki to see more options
}

urls.py

urlpatterns = [
    # ...
    path('', include('django_silly_stripe.urls')),
]

Once you have created your products (and prices) witin stripe online:

Go in the admin interface, and press the big green button "Stripe: get prices & products" to populate the database with them.

Read the wiki to integrate DSS within your application

wiki

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

django-silly-stripe-1.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

django_silly_stripe-1.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file django-silly-stripe-1.0.1.tar.gz.

File metadata

  • Download URL: django-silly-stripe-1.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for django-silly-stripe-1.0.1.tar.gz
Algorithm Hash digest
SHA256 77b9f5e12dd31f8e155380a26e4b8c3468e383ad927bfdf14be5a6e404550594
MD5 d292b23793595e050cffa26552f9d99e
BLAKE2b-256 b7bc6967a813e43d3cf96baacefceae75cb5938700b7de969d7f844e758751c6

See more details on using hashes here.

File details

Details for the file django_silly_stripe-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_silly_stripe-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17d11b8e2352de262741a716576e4a3928f3759ece8ffe47c1fcf21ddebdf543
MD5 d0ce4bd2481c9b19d382d711ecfacf90
BLAKE2b-256 fa6355f8c2e357bfe67a74fcfe62375e59da2f642b84b3ada6d657b06971d2e5

See more details on using hashes here.

Supported by

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