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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_paddle_billing-0.1.11.tar.gz
.
File metadata
- Download URL: django_paddle_billing-0.1.11.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447ba184b89b1a6448228a396e754d3428883c0b8142940d8b27a889d90db7dd |
|
MD5 | e222a6ae3c69b20812eb91134e032a12 |
|
BLAKE2b-256 | 7b07bc6526feb2268b864e0d5312f7800c691325ca2a02c087d3b353ad989e6d |
File details
Details for the file django_paddle_billing-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: django_paddle_billing-0.1.11-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 665993ba8d650c52f33ce7b8d4102601f9b99ae8eaccb674be74843f86e26ba5 |
|
MD5 | 8b43d8bfa101665501ce3e74362bc6b3 |
|
BLAKE2b-256 | 682611aed36806ec498b26d782122035aa1f5245d7e2685c780ac5ff5be12f5a |