machine-payments is a growing Python project in the AI payments / x402 ecosystem. It currently has 51 GitHub stars and 13 forks.
This repository demonstrates how to implement machine-to-machine payments using different protocols:
git clone https://github.com/stripe-samples/machine-payments
cd machine-payments
cp .env.template .env
# Edit .env with your credentials
make install
make install — install dependencies for every sample in the repomake lint — run each sample's linter and formatting checksmake format — apply automatic formatting fixes in each samplemake typecheck — run type checking or build validation for each samplemake test — run the automated test suite for each samplemake ci — run the full per-sample CI command (install, lint, typecheck, and test)make install
make lint
make format
make typecheck
make test
make ci
make run command and test request:MIT
TypeScript Interface for Machine Payments Protocol
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Rust SDK for the Machine Payments Protocol
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.