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.1

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.1
File Size Uploaded Provenance Actions
university_payments-0.1.1.tar.gz 30.1 kB With provenance Details for university_payments-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 65.8 kB

Release files / university_payments-0.1.1.tar.gz

Download URL university_payments-0.1.1.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
23d48eb148eda23714e8422e388fbbb8584e6220551e67bff287e3700f4eee27
BLAKE2b-256 checksum
How to use checksums
9b297b1292bf93d3f1faec848635047e95c910ce7bd76f1ce471892a7762cfcf
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 26, 2026.

Transparency log

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

Download URL university_payments-0.1.1-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
159ca0c886393c3f10eaf10e4cb7b55df68efcacfe30657b23724c76f26edfe5
BLAKE2b-256 checksum
How to use checksums
473c6f779e4bc61573554b651adc970dccc37f8a5b972832a5c4a507df4c8c5b
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 26, 2026.

Transparency log

Security for university-payments 0.1.1

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.1.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 26, 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