Skip to main content

okxweb3-app-paymentrouter

Dual-protocol payment middleware that routes a single HTTP endpoint to both x402 and MPP clients. The seller writes one route; the router negotiates which protocol the caller speaks and emits the matching challenge/response headers.

Install

pip install okxweb3-app-paymentrouter[fastapi]

What it provides

  • paymentrouter.router — request inspector that detects protocol (x402/mpp) from headers and dispatches to the right adapter.
  • paymentrouter.adapter — pluggable adapters for okxweb3-app-x402 and okxweb3-app-mpp.
  • paymentrouter.fastapi — drop-in FastAPI Depends() integration.

Why

Two payment protocols, one URL. Lets you accept payment from any client without forcing a protocol choice or duplicating endpoints. The challenge response carries both WWW-Authenticate (MPP) and payment-required (x402) headers — the client picks.

Metadata

Release files for okxweb3-app-paymentrouter 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 okxweb3-app-paymentrouter 0.1.0
File Size Uploaded Provenance Actions
okxweb3_app_paymentrouter-0.1.0.tar.gz 146.4 kB Without provenance Details for okxweb3_app_paymentrouter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for okxweb3-app-paymentrouter 0.1.0
File Interpreter ABI Platform Actions
okxweb3_app_paymentrouter-0.1.0-py3-none-any.whl Python 3 none any Details for okxweb3_app_paymentrouter-0.1.0-py3-none-any.whl

Total release size: 156.5 kB

Release files / okxweb3_app_paymentrouter-0.1.0.tar.gz

Download URL okxweb3_app_paymentrouter-0.1.0.tar.gz
Size 146.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e56feb13b27be379fbab30b7b70a02483e7f5b7c45b9ef7ebd6be60885db6093
BLAKE2b-256 checksum
How to use checksums
f89f28a58e92d65a20b725e0af65ed1f7438d2238cae89cec743030fdc03b0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / okxweb3_app_paymentrouter-0.1.0-py3-none-any.whl

Download URL okxweb3_app_paymentrouter-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6b12623f8b4882443c3e17c6af3795f4e9a944206b5d7efda2425cef393e738
BLAKE2b-256 checksum
How to use checksums
961676a34be6cc7e2ec649198426736abf4f542b8f19561ce90ea76b86825cc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for okxweb3-app-paymentrouter 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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