This package provides an integration between Django, a high-level Python Web framework, and Paddle Billing, a platform for selling digital products and services.
- Easy setup and configuration
- Seamless integration with Django projects
- Comprehensive handling of Paddle Billing features, including webhooks
To install the package, use pip:
pip install django-paddle-billingAfter installing the package, add it to your INSTALLED_APPS in your Django settings:
INSTALLED_APPS = [
...
'django_paddle_billing',
...
]Then, run migrations:
python manage.py migrateYou can now use the package in your Django project.
In order to test webhooks locally, you can user cloudflared tunnel: Cloudflared
cloudflared tunnel --url http://localhost:8000/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.paddleNote: The deep level of DNS requires to be paid Advanced DNS (10$/month), so sandbox.paddle.example.com is not free
This package uses pytest for testing. To run the tests, use the following command:
pytestContributions are welcome! Please read our contributing guidelines for details.
This project is licensed under the MIT License. See the LICENSE file for details.