Skip to main content
Pay MPP and x402 endpoints from your own application with a buyer SDK for Node.js, Python, Go, or Rust. Each SDK pays from the InFlow balance of the API key account when the seller offers it. The x402 buyer prefers the balance scheme, then exact. For the other ways to pay, see How the agent pays.

Before you start

When a payment needs owner approval, it waits until the owner approves it.

Pay an endpoint

MPP

The payment transport answers the 402 challenge for each request that httpx sends.

x402

The Python SDK also supports MPP buyers over MCP. Install inflowpay[mpp,mcp].

Rules for buyer code

  • Never log the API key or a payment credential.
  • Save the transaction ID as soon as you get it. You need it to check or resume a payment.
  • Show the approval to the owner while the payment waits.
  • Stripe acceptance is for sellers only. The InFlow buyer SDKs do not create Stripe tokens.

Pay with the CLI

Pay an endpoint from the command line.

SDKs

Read the packages, versions, and features of each SDK.
Last modified on October 15, 2026