One-click A2A payment infrastructure for AI agents
npm install @aegntic/agentmintconst { AgentPayment } = require('@aegntic/agentmint');
const payment = new AgentPayment({
wallet: '0x742d...',
acceptedTokens: ['USDC', 'ETH', 'USD', 'AUD']
});
app.use('/payments', payment.middleware());| Method | Endpoint | Description |
|---|---|---|
| POST | /payments/pay | Request payment |
| POST | /payments/webhook | Stripe webhook |
| GET | /payments/card | Generate payment link |
| GET | /payments/revenue | Revenue stats |
USDC,USD, andAUDare supported in Stripe mode.ETHis supported in crypto-only mode and returns direct wallet payment instructions.- Stripe webhooks require the raw request body, which AgentMint handles internally on
/payments/webhook. - The
/healthroute exists in the demo server at server.js, not in the exported middleware itself.