Skip to main content

PostFinance Checkout payment plugin for pretix

Project description

pretix-postfinance

PostFinance Checkout payment plugin for pretix.

Installation

PyPI

pip install pretix-postfinance

NixOS

For NixOS users, the plugin can be installed using the flake:

{ inputs, pkgs, ... }:
{
  services.pretix = {
    enable = true;
    plugins = [
      inputs.pretix-postfinance.packages.${pkgs.stdenv.hostPlatform.system}.default
    ];
  };
}

Development

Setup with uv

# Create virtual environment
uv venv

# Install with development dependencies
uv pip install -e ".[dev]"

Setup with Nix

# Enter development shell
nix develop

# Or use direnv (if you have a .envrc configured)
direnv allow

Running checks

# Run linting
uv run ruff check .

# Run type checking
uv run mypy pretix_postfinance/

# Run tests with coverage
uv run pytest tests/ --cov=pretix_postfinance --cov-report=term-missing -v

Configuration

Configure the plugin in your pretix settings with:

  • Space ID: Your PostFinance Checkout space ID
  • User ID: API user ID
  • API Secret: API authentication secret
  • Environment: production or sandbox

Features

  • Payment processing via PostFinance Checkout
  • Full and partial refund support
  • Webhook handling for payment and refund notifications
  • Payment capture support
  • Comprehensive error handling and logging
  • Admin interface integration

License

GNU Affero General Public License v3.0 (AGPLv3)

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

pretix_postfinance-1.1.0.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

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

pretix_postfinance-1.1.0-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file pretix_postfinance-1.1.0.tar.gz.

File metadata

  • Download URL: pretix_postfinance-1.1.0.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pretix_postfinance-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0889ce178dc6475f0acd20d63db6ed8dfdd3c0b4e78865ee73c1070a8d394b8f
MD5 76feee4162cfae08c636f62221f31e8d
BLAKE2b-256 49af75f36020d73907ff981ee42945491edb88d6451c8fa8c940b6eaaff2e8e9

See more details on using hashes here.

File details

Details for the file pretix_postfinance-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pretix_postfinance-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pretix_postfinance-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69182d6cf7e9862e3255125ad82d591aa3d364203530c6f24f549ced60b1fed2
MD5 327166579e0a5b459f17dc64b5f59ac3
BLAKE2b-256 78848d767842b4463a705aaada67b5521bea4123c77b9d1706a1e7d87fcfd5f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page