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

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.0
File Size Uploaded Provenance Actions
university_payments-0.1.0.tar.gz 30.0 kB With provenance Details for university_payments-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 65.8 kB

Release files / university_payments-0.1.0.tar.gz

Download URL university_payments-0.1.0.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4248b61ed8aa5b8663dfa314eeff5846fc39db949b1f73885b06aeb222312c93
BLAKE2b-256 checksum
How to use checksums
c54c7bb5e50b9ea3b83d913a8facde30f68d85b77e464e653e65917934c1bc53
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.0-py3-none-any.whl

Download URL university_payments-0.1.0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6660a825da3758767a85659c9bd4b6e64b982683a64bd60074bad44f05d0af84
BLAKE2b-256 checksum
How to use checksums
66603e3987c3f8b50971a798f3471ff91977742395d6322b7dac1ea1f5cc8404
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.0

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