fiduswriter / fiduswriter-payment-paddle

Paddle payments for fiduswriter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

  2. Add these settings to configuration.py:

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

About

Paddle payments for fiduswriter

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 47.7%Language:Python 45.4%Language:CSS 6.9%