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
Hashes for django_paddle_billing-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d840bc805cb4781cb1537b0bc777e8f75db45cf96818eeafa70f9c81b4632b1e |
|
MD5 | c043f7dcb634499cde8d363385942119 |
|
BLAKE2b-256 | a3130caad1ec70ec7583dfa9605f4d5dacea3ca999c063d8bf2a8b1538ac51dc |
Hashes for django_paddle_billing-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ef4d2931acc77cb4533c4db0cd76beb7560e9954556d6e898f66c3fd20166d |
|
MD5 | 36130295d422a1ca1893e67772bf770f |
|
BLAKE2b-256 | 1f8ceffb74da1b940164b4d4f992fa55109122287bc3a3e169d4b2a776b85af2 |