Welcome to OwnPay
The unified payments & billing infrastructure for SaaS, retail merchants, and autonomous AI agents. Settle localized fiat directly into Base USDC in <2 seconds for <$0.001 gas fees.
Empower AI agents (LangChain, AutoGPT, ElizaOS) to pay for API queries, compute tokens, and data feeds autonomously via the
x402 HTTP protocol with strict 3-tier spending policies.
Why Choose OwnPay?
5-Minute Quickstart
Start accepting Base USDC payments or launch autonomous AI agent billing in less than 5 minutes.
Sign in to the Merchant Portal, connect your Base USDC settlement address, and retrieve your secret key (own_live_...).
npm install @ownpay/sdk viem
pnpm add @ownpay/sdk viem
yarn add @ownpay/sdk viem
import { OwnPayClient } from '@ownpay/sdk';
const client = new OwnPayClient({
apiKey: process.env.OWNPAY_API_KEY,
environment: 'live' // Base Mainnet (8453)
});
const intent = await client.intents.create({
order_id: 'ORDER-9910',
amount: 25.00,
currency: 'USD'
});
console.log('Checkout URL:', intent.checkout_url);
curl -X POST https://ownpaylab.dev/api/v1/intents \
-H "Authorization: Bearer own_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"order_id":"ORDER-9910","amount":25.00,"currency":"USD"}'
from ownpay import OwnPayClient
client = OwnPayClient(api_key="own_live_YOUR_KEY")
intent = client.intents.create(order_id="ORDER-9910", amount=25.00, currency="USD")
print("Checkout URL:", intent["checkout_url"])
Dual-Rail Architecture (Human + AI-Agents)
Understanding how Human Retail Commerce and Autonomous Agent Micropayments converge into a single cryptographic settlement core.
Human Retail Rail
Optimized for high-conversion web & physical retail checkout. Features Adaptive FX (fiat BDT, USD, EUR, INR into Base USDC), EIP-681 mobile QR codes, and EIP-4337 Gasless Paymaster sponsorship so buyers pay zero ETH in gas.
Machine Agentic Rail
Built for autonomous software agents (LangChain, AutoGPT, ElizaOS). Operates via non-custodial smart accounts, 3-tier risk policy guardrails, and HTTP 402 (x402) micropayments for pay-per-token model inference.
Cryptographic Settlement Invariant
Both rails log every transaction into OwnPay's double-entry accounting ledger where:
Total Debits === Total Credits across all asset accounts, cryptographically verified by Base L2 block receipts and USDC transfer event signatures.
Build with AI Coding Agents MCP SERVER IN DEVELOPMENT
Connect your AI coding assistant (Cursor, Claude Code, Windsurf, Copilot) directly to OwnPay using the open Model Context Protocol (MCP) server integration (active development).
/llms.txt, scaffold payment intents, verify webhooks, and manage spending policies automatically.
MCP Server Configuration
{
"mcpServers": {
"ownpay": {
"command": "npx",
"args": ["-y", "@ownpay/mcp-server@latest"],
"env": {
"OWNPAY_API_KEY": "own_live_YOUR_API_KEY",
"BASE_CHAIN_ID": "8453"
}
}
}
}
Checkout Sessions & Intents
Create non-custodial checkout sessions that accept local fiat currencies and settle automatically into native Base USDC.
Creating an Intent via REST API
const intent = await client.intents.create({
order_id: 'INV-8820',
amount: 5000,
currency: 'BDT', // Converted to USDC automatically
customer_email: 'buyer@example.com'
});
curl -X POST https://ownpaylab.dev/api/v1/intents \
-H "Authorization: Bearer own_live_KEY" \
-H "Content-Type: application/json" \
-d '{"order_id":"INV-8820","amount":5000,"currency":"BDT"}'
Hosted Payment Links (ownpaylab.tech/pay)
Generate zero-code shareable payment links for social commerce, invoices, and digital downloads.
Payment links can be generated dynamically via the dashboard or API. When buyers visit an ownpaylab.tech/pay link, they get an instant mobile-optimized checkout UI with QR codes and Coinbase Smart Wallet support.
https://ownpaylab.tech/pay?to=0xYourMerchantAddress&amount=25.00¤cy=USD&title=Pro+SaaS+Plan
Adaptive Currency & FX Engine
Real-time localized fiat conversion into Base USDC with slippage protection and Purchasing Power Parity (PPP).
Transparent Pricing & Tiered KYC
Zero subscription ($0/mo, $0/yr). True Pay-As-You-Go with tailored compliance requirements to eliminate regulatory friction across all countries.
KYC Requirements: Streamlined Individual KYC. Requires legal full name, Government ID (NID/Passport), solo dev/freelancer tax identification, and cryptographic settlement wallet signature. Rapid approval.
KYC Requirements: Full Commercial KYC. Requires registered Trade License / Certificate of Incorporation, Corporate Tax ID/VAT/BIN, authorized representative NID/Passport, and proof of operating address to satisfy legal compliance.
KYC Requirements: Comprehensive Institutional AML/KYC. Requires Memorandum & Articles of Association, Corporate Tax Clearance, Ultimate Beneficial Owner (UBO >25%) declaration, Board Resolution, and Multi-Sig wallet verification for zero cross-border legal issues.
EIP-4337 Gasless Paymaster
Sponsor transaction gas fees on Base so end-users never have to hold ETH to make purchases.
curl -X POST https://ownpaylab.dev/api/v1/paymaster/sponsor \
-H "Content-Type: application/json" \
-d '{
"sender": "0xUserSmartAccountAddress",
"target": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "15000000"
}'
HTTP 402 (x402 Protocol) Specification
The native HTTP status code standard for machine-to-machine micropayments. Monetize high-value APIs, AI inference tokens, and live data feeds with sub-cent settlement on Base.
402 Payment Required containing payment parameters (recipient address, price in USDC, Chain ID 8453). The client pays on-chain, attaches the proof in the headers, and retries.
Client-Side Autonomous Handshake (SDK)
import { OwnPayAgentClient } from '@ownpay/sdk';
const agent = new OwnPayAgentClient({
agentId: 'agent_alpha_99',
apiKey: process.env.OWNPAY_AGENT_KEY,
chain: 'base'
});
// Automatically intercepts HTTP 402, pays USDC, and returns JSON payload
const data = await agent.fetchWithX402('https://ownpaylab.dev/api/v1/x402/data-feed');
console.log('Premium Feed Data:', data);
3-Tier Policy Guardrails & Kill-Switch
Enterprise risk mitigation ensuring autonomous agents operate safely within pre-allocated budgets, recipient whitelists, and human escalation thresholds.
POST /v1/agents/:id/freeze to immediately freeze all outgoing transactions.
Double-Entry Cryptographic Ledger
Immutable, mathematically balanced accounting journal recording every inbound checkout and outbound agent payment with on-chain settlement proofs.
Total Debits === Total Credits across all asset accounts. Every entry contains a Base L2 transaction hash, timestamp, source (HUMAN or AGENT), and protocol fee audit.
Querying the Ledger API
curl https://ownpaylab.dev/v1/ledger \
-H "Authorization: Bearer own_live_YOUR_KEY" \
-H "Content-Type: application/json"
Official Client SDKs UNDER DEVELOPMENT
Client libraries currently being engineered for TypeScript, Node.js, Python, and Model Context Protocol (MCP).
Cryptographic HMAC-SHA256 Webhooks VERIFICATION LIVE
Receive real-time signed callbacks whenever payments settle on Base Mainnet. Verification engine live; automated retry portal in active development.
import crypto from 'crypto';
app.post('/webhooks/ownpay', express.raw({ type: 'application/json' }), (req, res) => {
const signature = req.headers['x-ownpay-signature'];
const timestamp = req.headers['x-ownpay-timestamp'];
const expected = crypto
.createHmac('sha256', process.env.OWNPAY_WEBHOOK_SECRET)
.update(`v1:${timestamp}:${req.body}`)
.digest('hex');
if (signature !== `v1=${expected}`) {
return res.status(401).send('Invalid signature');
}
// Fulfill merchant order
res.json({ received: true });
});
Next.js 14 App Router Checkout Guide
Learn how to create hosted payment intents and handle real-time callbacks in modern Next.js 14 applications.
1. Server Action (app/actions/checkout.ts)
'use server';
import { OwnPayClient } from '@ownpay/sdk';
const client = new OwnPayClient({ apiKey: process.env.OWNPAY_API_KEY });
export async function createCheckoutSession(orderId: string, amount: number) {
const intent = await client.intents.create({
order_id: orderId,
amount,
currency: 'USD'
});
return intent.checkout_url;
}
Autonomous Python Agent with LangChain
Integrate x402 automated micropayments into autonomous Python AI agents using LangChain tools.
from langchain.tools import tool
from ownpay import OwnPayAgentClient
agent = OwnPayAgentClient(agent_id="scout_01", api_key="own_agent_KEY")
@tool
def procure_premium_market_data(query: str) -> dict:
"""Fetches paid data via x402 micropayment on Base."""
return agent.fetch_with_x402("https://ownpaylab.dev/api/v1/x402/data-feed")
Physical POS Terminal Integration
Implement dynamic EIP-681 QR codes on retail tablets and physical checkout terminals.
In physical retail stores, cashiers punch in the fiat amount (e.g. 500 BDT or $15 USD). The OwnPay engine generates an instant EIP-681 URI displayed on a customer-facing screen. Customers scan with Coinbase Smart Wallet, Binance Web3, or MetaMask and confirm in under 2 seconds.
Zero-Gas Checkout Flow
How to configure the EIP-4337 Paymaster so retail shoppers never need ETH in their wallets.
Traditional Web3 checkouts require users to hold both the settlement token (USDC) and native gas tokens (ETH). OwnPay's Paymaster inspects incoming UserOperations and sponsors 100% of the gas, allowing buyers with 0.00 ETH to complete transactions seamlessly.
API Overview & Authentication
OwnPay APIs adhere to RESTful conventions. All requests must be authenticated via Bearer API keys over HTTPS.
Authorization: Bearer own_live_YOUR_MERCHANT_KEY
Content-Type: application/json
Register Autonomous Agent
Provision a non-custodial smart account and assign risk policy boundaries to an AI agent.
{
"name": "Data Procurement Agent",
"framework": "LangChain",
"policy": {
"maxPerTx": 50.00,
"maxDaily": 500.00,
"escalationThreshold": 200.00
}
}
Dispatch Universal Payment
Dispatches on-chain payment with automatic routing to Level 1 autonomous clearance, Level 2 policy checks, or Level 3 human review.
Review Pending Approvals
List all pending Level 3 human approval requests awaiting merchant signature or Telegram authorization.
Query Ledger Journal
Extract verified double-entry accounting records with Base block inclusion hashes.
Human Payment Intent API
Initiate merchant checkout sessions with currency conversion from BDT, USD, EUR, INR.
Paymaster Sponsorship API
Request gas sponsorship for buyer ERC-20 transfer UserOperations.
x402 Data Feed API
Pay-per-request monetized endpoint requiring HTTP 402 challenge response.
Shopify & WooCommerce Integration PLUGINS UNDER DEVELOPMENT
Connect OwnPay's sub-cent Base USDC gateway to your e-commerce storefront with zero custom code (Q4 2026 milestone).
LangChain & ElizaOS Connectors CONNECTORS UNDER DEVELOPMENT
Equip your autonomous AI agents with wallets, budget limits, and x402 payment actions.
Cursor, Windsurf & Claude Code MCP MCP SERVER UNDER DEVELOPMENT
Allow AI coding tools to inspect endpoints, generate checkout forms, and test sandbox intents via MCP.
Coinbase Smart Wallet & Passkeys BASE L2 SUPPORTED
Passkey biometric checkout enabling consumers to pay in 1 tap without seed phrases.
Release v1.2.0 (Institutional Standard)
Launched: September 2026
- 7-Slide Interactive Institutional Presentation: Full confidential executive brief and investor data room.
- Institutional Terminology Overhaul: Refined labels across dashboard and docs to Silicon Valley venture standards.
- Mintlify 5-Tab Navigation System: Docs, Guides, API Reference, Integrations, and Changelog switcher.
- In-Page Command Palette: Ctrl+K instant search filtering across 30+ protocol guides and APIs.
Release v1.1.0 (Agentic Rails)
Launched: August 2026
- HTTP 402 (x402 Protocol): Autonomous pay-per-API stream integration.
- 3-Tier Policy Engine: Level 1 Auto, Level 2 Policy, Level 3 Human Review.
- Double-Entry Ledger: Invariant
Total Debits === Total Credits.
Release v1.0.0 (Base Genesis)
Launched: July 2026
- Base Mainnet (8453) Core: Sub-cent USDC settlement engine.
- Merchant Operating System: Real-time intent monitoring and hosted links.
- Dual Sandbox: Base Sepolia simulation with test faucets.