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.
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
Simple integration works out of the box.
To pay from your interface, link:
<a href="{% url 'subscribe' %}">Subscribe</a>
Add a cronjob as per crontab.txt
File issues. Fork and send pull requests. Tell developers integrating payments.
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
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.