{"repo":"HearthSim/dj-paypal","free":true,"listed":false,"github":"https://github.com/HearthSim/dj-paypal","clone":"git clone https://github.com/HearthSim/dj-paypal.git","description":"Paypal integration for Django - Inspired by dj-Stripe","language":"Python","stars":89,"topics":["paypal","django","payments","paypal-rest-sdk","python"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"dj-paypal A Paypal integration for Django, inspired by dj-stripe. Currently only supports subscriptions. Requirements - Python 3.6+ - Django 3.1+ - Postgres 9.6+ (Non-postgres engines not supported) Installation 1. Install dj-paypal with pip install dj-paypal 2. Add djpaypal to django INSTALLED APPS setting 3. Get a client ID and client secret from paypal and add them to the settings PAYPAL CLIENT ID and PAYPAL CLIENT SECRET 4. Set PAYPAL MODE = \"sandbox\" (or \"live\" ) in the settings 5. Install your Billing Plans (see below) Setting up billing plans Download already-created billing plans from Paypal Run manage.py djpaypal download plans to sync all plans already created upstream into the local database. This will create djpaypal.models.BillingPlan objects, which can be listed from the Django admin. Creating new Paypal billing plans The manage.py djpaypal upload plans management command creates billing plans using the Paypal API. An extra PAYPAL PLANS setting must be set, which will contain a dict of Paypal billing plans to create. See example settings.py for an example of plans to create. Webhooks The djpaypal.views.ProcessWebhookView view should be hooked up to an URL endpoint which you then set up in Paypal as a webhook endpoint (https://developer.paypal.com). In order to verify webhooks being transmitted to your app, dj-paypal needs to know the ID of the webhook that is expected at that URL. Set it in the setting PAYPAL WEBHOOK ID . Sandbox vs. Live All models have a livem","default_branch":null,"files":null,"tree":[],"storefront":"/r/HearthSim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HearthSim/dj-paypal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}