Giter Site home page Giter Site logo

django-pay's Introduction

Django app to work with subscriptions, payments and payment cards

https://travis-ci.org/fmalina/django-pay.svg?branch=master

A reusable Django app to work with payments and credit cards. Extracted from FlatmateRooms payment features https://www.FlatmateRooms.co.uk/subscribe

  • contains Realex payment gateway integration
  • validation: card number (MOD10) and expiry, address verification system (AVS)
  • models for encrypted storage of card numbers
  • PayPal fallback offered as alternative payment method
  • many PCI compliance requirements

Pay requires that you have a Realex account, which requires company merchant account.

Installation (into a Django project)

To get the latest version from GitHub

pip3 install -e git+git://github.com/fmalina/django-pay.git#egg=pay

Add pay to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'pay',
)

Configure your settings to suit, see pay/app_settings.py.

Add the pay URLs to your urls.py

urlpatterns = [
    ...
    path('pay/', include('pay.urls')),
]

Create your tables

./manage.py migrate pay

Usage

Simple integration works out of the box.

To pay from your interface, link:

<a href="{% url 'subscribe' %}">Subscribe</a>

Recurring charges

Add a cronjob as per crontab.txt

Contribute

File issues. Fork and send pull requests. Tell developers integrating payments.

Dual Licensing

Commercial license

If you want to use Django Pay to develop and run commercial projects and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

Once purchased, you are granted a commercial BSD style license and all set to use Django Pay in your business.

Small Team License (£400) Small Team License for up to 8 developers

Organization License (£1200) Commercial Organization License for Unlimited developers

Open source license

If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use Django Pay under the terms of the GPLv3.

django-pay's People

Contributors

fmalina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.