Skip to main content
In Step 1 of the InFlow integration, accept MPP and x402 with the Python, Go, or Rust SDK. For Node.js, read Protect an endpoint.

Before you start

Integrate both protocols in one service with shared pricing and fulfillment logic. Keep each request on one charging path. Features differ by SDK. See SDKs.

Protect an endpoint

The examples use FastAPI. The clients also work with other asynchronous frameworks.

MPP

x402

The Python SDK does not support seller subscription endpoints or more than one InFlow offer on one endpoint.
Each SDK repository has runnable sandbox examples. See SDKs.

Next step

Test a payment

Confirm the 402 challenge. Then pay your endpoint with the CLI in the sandbox.
Last modified on October 15, 2026