@agentaos/pay package lets you accept regulated stablecoin payments from your Node.js backend. Stripe-like developer experience: create checkouts, handle webhooks, export invoices.
Install
Quick Start
How It Works
Webhook notification
AgentaOS sends
checkout.session.completed to your webhookUrl with the transaction hash.What You Can Do
| Feature | Method |
|---|---|
| Accept a payment | agentaos.checkouts.create() |
| Check payment status | agentaos.checkouts.retrieve() |
| Create reusable payment links | agentaos.paymentLinks.create() |
| Verify webhook signatures | agentaos.webhooks.verify() |
| List all transactions | agentaos.transactions.list() |
| Download invoices | agentaos.invoices.downloadPdf() |
| Export monthly CSV | agentaos.invoices.exportCsv() |
| Download statement PDF | agentaos.invoices.downloadStatement() |
Authentication
Get your API key from app.agentaos.ai → Developer → API Keys.Requirements
- Node.js 20+
- Zero dependencies (uses native
fetchandcrypto)