Skip to main content

A Fidus Writer plugin to allow payment through Paddle

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fiduswriter-payment-paddle-3.11.3.tar.gz (34.6 kB view hashes)

Uploaded Source

Built Distribution

fiduswriter_payment_paddle-3.11.3-py3-none-any.whl (54.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page