Skip to content

fmalina/django-pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Pay: Payments and Subscriptions Made Easy

Django-Pay is a reusable Django app for managing subscriptions, payment cards, and transactions. Designed for seamless integration and PCI compliance, it supports Realex, PayPal, and Global Payments gateways.

Features

  • Payment Gateways: Supports Realex and Global Payments with PayPal fallback.
  • Card Validation: MOD10 (Luhn algorithm), expiry checks, and AVS.
  • Encrypted Storage: Securely stores card details.
  • PCI Compliance: Built-in tools to meet PCI standards.
  • Recurring Payments: Easy setup for subscription models.

Installation

  • Install the Package
pip install -e git+https://github.com/fmalina/django-pay.git#egg=pay
  • Add pay to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
    ...,
    'pay',
]
  • Include pay URLs in your project's urls.py file:
from django.urls import include, path

urlpatterns = [
    ...,
    path('pay/', include('pay.urls')),
]
  • Customize settings as needed (see pay/app_settings.py for options).
  • Apply migrations
./manage.py migrate pay

Usage

Quick Start

Add a subscription link to your templates:

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

Recurring Charges

Set up a cron job using the provided crontab.txt for automated charges.

About

Payment and CC handling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published