Metadata-Version: 2.1
Name: fiduswriter-payment-paddle
Version: 3.11.3
Summary: A Fidus Writer plugin to allow payment through Paddle
Home-page: https://www.github.com/fiduswriter/fiduswriter-payment-paddle
Author: Johannes Wilm
Author-email: johannes@fiduswriter.org
License: AGPL License
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
License-File: LICENSE

# fiduswriter-payment-paddle


Installation
------------

1. Sign up with Paddle.com, create plans and register a webhook (the URL is https//YOURWEBSITE.COM/api/payment/webhook/).

2. Enable subscription for the webhook for these events:

* Subscription Created

* Subscription Updated

* Subscription Cancelled

3. In the configuration.py file, add "payment" to "INSTALLED_APPS"

4. Add these settings to configuration.py:


```python
PADDLE_SANDBOX = True  # Only needed for testing with paddle sandbox.

PADDLE_VENDOR_ID = 547628

PADDLE_MONTHLY_PLAN_ID = 304958

PADDLE_SIX_MONTHS_PLAN_ID = 328473

PADDLE_ANNUAL_PLAN_ID = 232332

PADDLE_PUBLIC_KEY = '''-----BEGIN PUBLIC KEY-----
...
-----END PUBLIC KEY-----'''

PADDLE_API_KEY = '234234a4b...36'
```

Additional steps if you don't use the Ubuntu Snap
-------------------------------------------------

1. Install `pycryptodome` and `phpserialize`:

    pip install pycryptodome phpserialize

2. Run:

    python manage.py migrate
