Skip to main content

university-payments

Provider-agnostic payments for the University platform: Paystack, Flutterwave and Stripe adapters, verified webhooks, refunds, an escrow ledger and payouts. This is an optional level two module that depends only on university-core. Core never depends on a payment provider.

  • Sells for any module.
    • Events (tickets), marketplace (orders) and creator (sponsorship fees) describe what's owed through Core's payable adapters. No module imports another.
  • Built on mistrust.
    • Amounts come from the selling module, never the client.
    • Success always comes from re-verifying with the provider, never from webhook bodies or redirects.
    • Amount and currency must match exactly.
    • Every state change is locked and idempotent.
    • Checkout requires an Idempotency-Key.
  • Verified webhooks through Core's pipeline: provider signatures (HMAC-SHA512, Stripe's timestamped signatures, Flutterwave's hash), replay protection, de-duplication and logging.
  • Automatic refunds when a seller can't fulfil (for example, a ticket hold expired before payment arrived), or when the wrong amount was paid.
  • Double-entry ledger. Escrow is held until the selling module releases it, alongside available balances and platform fees. Payouts are requested by sellers and processed by finance with four-eyes checks and no stored account numbers.
  • Admin is read-only; money moves only through audited services.
pip install university-payments
INSTALLED_APPS += ["university.payments"]
UNIVERSITY = {
    "PAYMENTS": {
        "PROVIDERS": {
            "paystack": {
                "class": "university.payments.providers.paystack.PaystackProvider",
                "options": {"secret_key": os.environ["PAYSTACK_SECRET_KEY"]},
            }
        }
    }
}

See the module documentation.

Metadata

Release files for university-payments 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for university-payments 0.1.2
File Size Uploaded Provenance Actions
university_payments-0.1.2.tar.gz 30.1 kB With provenance Details for university_payments-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for university-payments 0.1.2
File Interpreter ABI Platform Actions
university_payments-0.1.2-py3-none-any.whl Python 3 none any Details for university_payments-0.1.2-py3-none-any.whl

Total release size: 65.9 kB

Release files / university_payments-0.1.2.tar.gz

Download URL university_payments-0.1.2.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a31cb655aecae5dcf5c2d8f0fe14c4aa1e28e372510dcd8adba4fe65ef050073
BLAKE2b-256 checksum
How to use checksums
3ff630ae4da52e12a858bb3f3ff486e0d7bfdc56affa06f1220d6674bdce08ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / university_payments-0.1.2-py3-none-any.whl

Download URL university_payments-0.1.2-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1700119608efac220b9d45be6107877a12cfde675176401676647c19db361d59
BLAKE2b-256 checksum
How to use checksums
9427f3e622c2c61a8195620b3cfb2410bde3d8f01566747d3abbd89301512126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for university-payments 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for university_payments-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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