Skip to content

fmalina/django-pay

Repository files navigation

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 Blocl payment features https://blocl.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

Payment card handling integrates with Global Payments gateway, which uses 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.

About

Payment and CC handling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published