Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Latest PyPI version https://img.shields.io/travis/sunscrapers/django-getpaid.svg https://img.shields.io/coveralls/github/cypreess/django-getpaid.svg https://img.shields.io/pypi/wheel/django-getpaid.svg https://img.shields.io/pypi/l/django-getpaid.svg

django-getpaid is a multi-broker payment processor for Django

Documentation

The full documentation is at https://django-getpaid.readthedocs.io.

Quickstart

Install django-getpaid and at least one payment backend:

pip install django-getpaid
pip install django-getpaid-paynow

Add them to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'getpaid',
    'getpaid_paynow',  # one of plugins
    ...
]

Add django-getpaid’s URL patterns:

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

Use getpaid.models.AbstractOrder as parent class of your Order model and define minimal set of methods:

from getpaid.models import AbstractOrder

class MyCustomOrder(AbstractOrder):
    # fields
    def get_absolute_url(self):
        return reverse('order-detail', kwargs=dict(pk=self.pk))

    def get_total_amount(self):
        return self.amount

    def get_user_info(self):
        return dict(email=self.buyer.email)

    def get_description(self):
        return self.description

Select your Order model in settings.py and provide settings for payment backends:

GETPAID_ORDER_MODEL = 'yourapp.MyCustomOrder'

GETPAID_BACKEND_SETTINGS = {
    'getpaid_paynow': {   # dotted import path of the plugin
        # refer to backend docs for its real settings
        "api_key": "9bcdead5-b194-4eb5-a1d5-c1654572e624",
        "signature_key": "54d22fdb-2a8b-4711-a2e9-0e69a2a91189",
    },
}

Features

  • support for multiple payment brokers at the same time

  • clean but flexible architecture

  • support for asynchronous status updates - both push and pull

  • support for modern REST-based broker APIs

  • support for using multiple currencies (but one per payment)

  • easy customization with provided base abstract models and swappable mechanic (same as with Django’s User model)

Running Tests

Does the code actually work?

poetry install
poetry run tox

Disclaimer

This project has nothing in common with getpaid plone project.

Credits

Proudly sponsored by SUNSCRAPERS

Tools used in rendering this package:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-getpaid-2.0.0rc5.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_getpaid-2.0.0rc5-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file django-getpaid-2.0.0rc5.tar.gz.

File metadata

  • Download URL: django-getpaid-2.0.0rc5.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-40-generic

File hashes

Hashes for django-getpaid-2.0.0rc5.tar.gz
Algorithm Hash digest
SHA256 e226b18310c20d6d9aed15ef4221126fb01be1ce205f9cfdb270dd203bd2709f
MD5 ba0b3bd9eeb6d45d28e3ee4aef42a3a5
BLAKE2b-256 372930c857536d1b4ca3fac377c06dfe69ef8b2c1f1103f4bba1a84dfb53572c

See more details on using hashes here.

File details

Details for the file django_getpaid-2.0.0rc5-py3-none-any.whl.

File metadata

  • Download URL: django_getpaid-2.0.0rc5-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-40-generic

File hashes

Hashes for django_getpaid-2.0.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 94990c0098d7bcc9ef1ad617bc5e5983c15ea289b17f09f0eb4612387fd71e4b
MD5 5060247b502fbaa3c7051d71ae0e81eb
BLAKE2b-256 5c9561645ab81ebaffbfdf86b2f7737efb903c4527f24d5ee6ec8a552936495d

See more details on using hashes here.

Release history Release notifications | RSS feed

3.2.0

2 files

3.1.0

2 files

3.0.1

2 files

3.0.0

2 files

2.3.0

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.1

2 files

2.0.0

2 files

This release

2.0.0rc5 This release

2 files

1.8.0.1

1 file

1.8.0

2 files

1.7.6

1 file

1.7.3

1 file

1.7.2

2 files

1.6.0

1 file

1.5.1

1 file

1.5.0

1 file

1.4.0

1 file

1.3.0

1 file

1.1.2

1 file

1.1.1

1 file

1.1

1 file

1.0.1

1 file

1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page