Skip to main content

`django-thorbanks` provides a Django application for Estonian banklinks (iPizza protocol).

Project description


Build Status Coverage Status PyPI release

Django app for integrating Estonian banklinks into your project.


Bank Protocol Authentication Payment
Swedbank iPizza :heavy_check_mark: :heavy_check_mark:
SEB iPizza :heavy_check_mark: :heavy_check_mark:
Danske iPizza :heavy_check_mark: :heavy_check_mark:
LHV iPizza :heavy_check_mark: :heavy_check_mark:
Krediidipank iPizza :heavy_check_mark: :heavy_check_mark:
Nordea iPizza :heavy_check_mark: :heavy_check_mark:


1. Install it:


pip install django-thorbanks


pipenv install django-thorbanks


poetry add django-thorbanks

2. Add to installed apps

    # Add the following apps:

3. Configure and create migrations:


With default models:

Make django aware that thorbanks migrations are in your local apps folder via settings.MIGRATION_MODULES:

Note: Replace shop with the name of an existing app in your project.

# Tell django that thorbanks migrations are in thorbanks_models app
MIGRATION_MODULES = {"thorbanks": "shop.thorbanks_models.migrations"}

4. Link it to your Order model

Note: When using MANUAL_MODELS replace thorbanks_models with your local app name

class Order(models.Model):
    # ... other fields
    transaction = models.OneToOneField(
        "thorbanks_models.Transaction", null=True, on_delete=models.SET_NULL

5. Include thorbanks urls

urlpatterns = [
    # This is where the user will be redirected after returning from the banklink page
    url(r"^banks/", include("thorbanks.urls")),

6. Add listeners to banklinks success & failure callbacks:

See and

7. Create views and forms for payments:

see and

iPizza protocol

Project details

Download files

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

Source Distribution

django-thorbanks-0.6.0a1.tar.gz (51.6 kB view hashes)

Uploaded source

Built Distribution

django_thorbanks-0.6.0a1-py3-none-any.whl (64.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page