All Projects → HearthSim → Dj Paypal

HearthSim / Dj Paypal

Licence: mit
Paypal integration for Django - Inspired by Dj-Stripe

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Dj Paypal

Django Payments
Universal payment handling for Django.
Stars: ✭ 575 (+945.45%)
Mutual labels:  paypal, payments, django
Doorstep
The powerful e-commerce solution for Python
Stars: ✭ 88 (+60%)
Mutual labels:  paypal, django
Django Shop Tutorial
Use Django To Create A Simple Shopping Site Tutorial
Stars: ✭ 109 (+98.18%)
Mutual labels:  paypal, django
react-smart-payment-buttons
React integration for PayPal Smart Payment Buttons
Stars: ✭ 18 (-67.27%)
Mutual labels:  paypal, payments
Shopping cart
A basic shopping cart for digital products. Made with Django
Stars: ✭ 70 (+27.27%)
Mutual labels:  payments, django
Django Getpaid
Django payments processor.
Stars: ✭ 371 (+574.55%)
Mutual labels:  payments, django
Django Oscar Paypal
PayPal integration for django-oscar. Can be used without Oscar too.
Stars: ✭ 112 (+103.64%)
Mutual labels:  paypal, django
Paypal Checkout Components
Javascript Integration for PayPal Button and PayPal Checkout
Stars: ✭ 938 (+1605.45%)
Mutual labels:  paypal, payments
Django Paypal
A pluggable Django application for integrating PayPal Payments Standard or Payments Pro
Stars: ✭ 602 (+994.55%)
Mutual labels:  paypal, django
Digota
ecommerce microservice
Stars: ✭ 382 (+594.55%)
Mutual labels:  paypal, payments
Pinax Stripe
a payments Django app for Stripe
Stars: ✭ 650 (+1081.82%)
Mutual labels:  payments, django
Dj Stripe
Django + Stripe Made Easy
Stars: ✭ 1,022 (+1758.18%)
Mutual labels:  payments, django
Disposableemailchecker
Python class for use with Django to detect Disposable Emails
Stars: ✭ 50 (-9.09%)
Mutual labels:  django
Django Rest Framework Tricks
Collection of various tricks for Django REST framework.
Stars: ✭ 52 (-5.45%)
Mutual labels:  django
Yesterday I Learned
Brainfarts are caused by the rupturing of the cerebral sphincter.
Stars: ✭ 50 (-9.09%)
Mutual labels:  django
Django Unifi Portal
Authenticate Unifi WiFi Guests with Django
Stars: ✭ 50 (-9.09%)
Mutual labels:  django
Django Airports
✈️ It's like django-cities, but django-airports
Stars: ✭ 54 (-1.82%)
Mutual labels:  django
Django Custom User Model
django custom user model
Stars: ✭ 52 (-5.45%)
Mutual labels:  django
Payment
支付宝支付、银联支付、微信支付、paypal、苹果内购支付
Stars: ✭ 48 (-12.73%)
Mutual labels:  paypal
Stripy
Micro wrapper for Stripe's REST API.
Stars: ✭ 49 (-10.91%)
Mutual labels:  payments

dj-paypal

Build Status PyPI

A Paypal integration for Django, inspired by dj-stripe.

Currently only supports subscriptions.

Requirements

  • Python 3.6+
  • Django 2.0+
  • 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 livemode boolean attribute. That attribute is set to True if created in Live (production) mode, False otherwise (sandbox mode). Sandbox and Live data can co-exist without issues. Once you are done testing in Sandbox mode, use the manage.py djpaypal_delete_all_test_data management command to (locally) clear all the test data. This command has no impact on the upstream data.

Data considerations

Most of the models defined in dj-paypal are copies of the upstream Paypal model data. Deleting or editing objects (be it from the admin or in the database) does not actually change any of the upstream Paypal data.

License and Sponsorship

This project was designed and developed by HearthSim. It is licensed under the MIT license. The full license text is available in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].