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.2.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

django_silly_stripe-1.0.2-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

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