Skip to main content

Django + Paddle Billing Integration

Project description

Django Paddle Billing

This package provides an integration between Django, a high-level Python Web framework, and Paddle Billing, a platform for selling digital products and services.

Features

  • Easy setup and configuration
  • Seamless integration with Django projects
  • Comprehensive handling of Paddle Billing features, including webhooks

Installation

To install the package, use pip:

pip install django-paddle-billing

Usage

After installing the package, add it to your INSTALLED_APPS in your Django settings:

INSTALLED_APPS = [
    ...
    'django_paddle_billing',
    ...
]

Then, run migrations:

python manage.py migrate

You can now use the package in your Django project.

Local webhook testing

In order to test webhooks locally, you can user cloudflared tunnel: Cloudflared

Temporary URL

cloudflared tunnel --url http://localhost:8000/

Permanent URL

Then, you can create a tunnel for your webhook:

cloudflared tunnel login
cloudflared tunnel create sandbox.paddle
# Create config file
# ...
cloudflared tunnel route dns sandbox.paddle sandbox-paddle.example.com
cloudflared tunnel run sandbox.paddle

Note: The deep level of DNS requires to be paid Advanced DNS (10$/month), so sandbox.paddle.example.com is not free

Testing

This package uses pytest for testing. To run the tests, use the following command:

pytest

Contributing

Contributions are welcome! Please read our contributing guidelines for details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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_paddle_billing-0.1.2.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_paddle_billing-0.1.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file django_paddle_billing-0.1.2.tar.gz.

File metadata

  • Download URL: django_paddle_billing-0.1.2.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for django_paddle_billing-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a20ba3726c67365414febc1381cd4be9a14d52595424c6e6d590bce6a5aeb86c
MD5 4fda38120ee93b92d380a1ec92ad9953
BLAKE2b-256 0284a63e97989f808c72bc0518cb56fcf1920011517a62e9a20a107ec5f45aaa

See more details on using hashes here.

File details

Details for the file django_paddle_billing-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_paddle_billing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08748211fa2ae52b7a82c35eb1c5787ba9d7ff5304715f76075ca36b6a026717
MD5 e3eab8bc8b17416559055db7986ecfa7
BLAKE2b-256 371d75c66543b4dbbc45b0e91a9a25f0cb855ea82deaa7b79b40b11f41065b19

See more details on using hashes here.

Supported by

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