Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 737 Bytes

File metadata and controls

35 lines (24 loc) · 737 Bytes

AgentaOS Integration Examples

Example scripts using the @agentaos/pay SDK to create checkouts, retrieve payment status, and listen for webhooks.

Setup

cp .env.example .env
# Add your API key from app.agentaos.ai → Developer → API Keys
pnpm install

Scripts

# Create a checkout session
pnpm create-checkout

# Get checkout status by session ID
pnpm get-checkout <sessionId>

# Create a reusable payment link
pnpm create-link

# List recent checkouts
pnpm list-checkouts

# Start a webhook listener (use with ngrok)
pnpm webhook-server

Documentation