---
name: Agentic Payments
slug: agentic-payments
category: AI Engineering
description: Agentic Payments adds Stellar-based machine-to-machine billing for paid APIs. Use it for x402 HTTP 402 flows and MPP Charge or Channel modes on testnet or pubnet.
github: "https://github.com/rylsherdamz-rgb/stellar-forge/tree/master/skills/agentic-payments"
language: HTML
stars: 14
forks: 0
install: "npx degit https://github.com/rylsherdamz-rgb/stellar-forge/tree/master/skills/agentic-payments ~/.claude/skills/agentic-payments"
installs_to: ~/.claude/skills/agentic-payments
source_path: skills/agentic-payments/SKILL.md
collection_size: 11
category_size: 2451
collection_url: "https://dirskills.com/collections/rylsherdamz-rgb/stellar-agentic-framework"
added: 2026-08-12T04:42:26.450Z
last_synced: 2026-08-12T04:42:26.450Z
canonical_url: "https://dirskills.com/skills/agentic-payments"
---

# Agentic Payments

Agentic Payments adds Stellar-based machine-to-machine billing for paid APIs. Use it for x402 HTTP 402 flows and MPP Charge or Channel modes on testnet or pubnet.

**Install:**

```bash
npx degit https://github.com/rylsherdamz-rgb/stellar-forge/tree/master/skills/agentic-payments ~/.claude/skills/agentic-payments
```

## README

# Agentic Payments (x402 + MPP)

## Source Files (published with this skill)

| File | Contents |
|------|----------|
| `templates/src/middleware/x402.ts` | Express middleware — checks x402 payment header, verifies OZ channel, rejects unpaid requests with 402 |

## x402 Middleware

See `templates/src/middleware/x402.ts` for the full implementation. Import and apply:

```ts
import { x402Middleware } from "./middleware/x402";

app.use("/api/paid", x402Middleware({ channelId: process.env.OZ_CHANNEL_ID! }));
```

## Payment Setup

- USDC (SEP-41 SAC) on `stellar:testnet` / `stellar:pubnet`
- OZ Channels facilitator for x402
- MPP Charge mode: per-request SAC
- MPP Channel mode: off-chain commits for high-frequency traffic
