Skip to main content

Integrates out-of-the-box payment processing for django-flexible-subscriptions

Project description

payable-subscriptions

Code Style Code Style PyPI Project


This builds upon the subscription and recurrent billing from django-flexible-subscriptions with supported payment vendors, such as Venmo.

  • Integrates out-of-the-box payment processing for django-flexible-subscriptions.
    • NOTE: Currently, only Venmo is supported.
  • Automatically update Google Contact Group based on subscription status (new or expired)

Quick start

  1. Add payablesubs (and subscriptions) to your INSTALLED_APPS setting like this:
    INSTALLED_APPS = [
        ...
        'subscriptions',
        'payablesubs',
    ]
  1. Inject payablesubs custom manager class by adding this in settings file:
DFS_MANAGER_CLASS = "payablesubs.management.commands._payable_manager.PayableManager"
  1. Include the polls URLconf in your project urls.py like this:
   path('subscriptions/', include('subscriptions.urls')),
  1. Run python manage.py migrate to create the models.

  2. Start the development server and visit http://127.0.0.1:8000/subscriptions/dfs/subscriptions to view the subscriptions dashboard. NOTE: You need to create and login with a superuser account.

    See django-flexible-subscription documentation for more details.

  3. Create your Venmo access token following these instructions. Save the token to a file: .credentials/venmo.token

  4. Automate sending and processing payments by calling

$> python manage.py process_subscriptions

Optional Settings

The following can be set either directly in your settings file, or via environment properties

  • PAYABLESUBS_BILLING_ENABLED: if disabled, payment requests will not be sent. Helpful for testing.
  • PAYABLESUBS_DRY_RUN: processes subscriptions, but doesn't persist Bills or send payment requests. Helpful for testing.
  • PAYABLESUBS_GOOGLE_CONTACT_LABEL: The Google contact group label associated with active subscriptions. If not set, Google integration is disabled.

Libraries Used

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

payable-subscriptions-1.0.8.zip (38.8 kB view details)

Uploaded Source

File details

Details for the file payable-subscriptions-1.0.8.zip.

File metadata

  • Download URL: payable-subscriptions-1.0.8.zip
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for payable-subscriptions-1.0.8.zip
Algorithm Hash digest
SHA256 8a7708b9a9edb948bd30eab1e296287c35a4a6d989c6c91a54cd13addc907c3f
MD5 e12c8b50473fa7f2afedbb8db3537152
BLAKE2b-256 a5353621ddaa464b604931e7061bc4ec09a2bdb79d1cb6272b034e01bda21a8d

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