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.pretix-postfinance.url = "github:sweenu/pretix-postfinance";
outputs = { self, nixpkgs, pretix-postfinance }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
services.pretix = {
enable = true;
plugins = [
pretix-postfinance.packages.x86_64-linux.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:
productionorsandbox
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.0.0.tar.gz
(21.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pretix_postfinance-1.0.0.tar.gz.
File metadata
- Download URL: pretix_postfinance-1.0.0.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e8c6dd7fa354a195a13bf636c5bbf9493b105baef3f6ab0a4c83e9bc5acd42
|
|
| MD5 |
1b2458af47b07e88c25b5b212881ef7e
|
|
| BLAKE2b-256 |
d44ee4655f54b93ce25931791307b307fe5d23989bab5485e2857bb72523481c
|
File details
Details for the file pretix_postfinance-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pretix_postfinance-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed634ae67fbb109c68a036df7957229646e9a748cbfa945782683d094738735
|
|
| MD5 |
8a07a3663908d47878d51ffb8e882415
|
|
| BLAKE2b-256 |
6d790c9837369331673aac85fb818087fafe2cd86ccb4658923a1095135c5bd1
|