Use Cases
Real scenarios where PayDirect powers programmable crypto settlement across the autonomous economy.
Agent-to-Agent Payments
Autonomous agents exchange value programmatically during multi-step workflows. No human intervention required — agents negotiate, settle, and confirm payments entirely on-chain.
Examples
- AI agent pays another agent for data retrieval
- Multi-agent workflows with cascading payments
- Agent-initiated subscriptions to other agent services
Code Example
// Agent A pays Agent B for a service
const payment = await client.payments.create({
amount: "2.50",
currency: "USDC",
metadata: {
sender: "agent_alice",
recipient: "agent_bob",
task: "data_enrichment"
}
});API Monetization
Charge per API call with real-time settlement. Create a payment intent per request, store the receipt, and trigger fulfillment only after settlement. Reconcile using webhook events.
Examples
- Pay-per-call API access
- Metered usage with automatic billing
- Tiered pricing based on consumption
Code Example
// Middleware: charge per API request
app.use("/api/premium", async (req, res, next) => {
const payment = await client.payments.create({
amount: "0.01",
currency: "USDC",
description: "API call billing",
metadata: { endpoint: req.path }
});
// Await settlement before fulfilling
await waitForSettlement(payment.id);
next();
});Micropayments
Scale microtransaction ecosystems that traditional payment rails cannot handle. Sub-cent settlement at scale, enabling new business models like pay-per-byte, pay-per-inference, and granular content monetization.
Examples
- Pay-per-inference for AI models
- Content micropayments (articles, data feeds)
- IoT device-to-device payments
Code Example
// Micropayment for AI inference
const payment = await client.payments.create({
amount: "0.001",
currency: "USDC",
description: "GPT-4 inference call",
metadata: {
model: "gpt-4",
tokens: 1500
}
});Subscriptionless Billing
Recurring or on-demand payments without credit cards or subscription management overhead. Programmable billing schedules that trigger settlement automatically based on usage or time intervals.
Examples
- Usage-based billing without subscriptions
- Time-interval triggered payments
- Consumption-based SaaS billing
Code Example
// Scheduled payment (cron-triggered)
const payment = await client.payments.create({
amount: computedUsage.toString(),
currency: "USDC",
description: "Monthly usage billing",
metadata: {
period: "2025-08",
usage: computedUsage
}
});SaaS Platform Integration
Add crypto settlement to your SaaS platform with minimal code changes. PayDirect provides a Stripe-like experience for Web3 — familiar patterns, instant settlement.
Examples
- Checkout flows with USDC settlement
- Platform marketplace payments
- Vendor payout automation
Code Example
// SaaS checkout integration
const payment = await client.payments.create({
amount: plan.price,
currency: "USDC",
description: `${plan.name} - ${user.email}`,
metadata: {
planId: plan.id,
userId: user.id
}
});
// Redirect to payment page
redirect(payment.paymentUrl);DAO & Governance Payments
Automate payments triggered by DAO proposals and governance decisions. When a proposal passes, PayDirect settles the payment — no manual treasury management required.
Examples
- Proposal-approved grant disbursements
- Bounty payouts on task completion
- Multi-sig treasury operations
Code Example
// DAO proposal triggers payment
async function onProposalPassed(proposal) {
const payment = await client.payments.create({
amount: proposal.budget,
currency: "USDC",
description: `Grant: ${proposal.title}`,
metadata: {
proposalId: proposal.id,
dao: "agentdao"
}
});
}Build Your Use Case
Start integrating PayDirect into your application with our developer-first APIs and SDKs.