Create a minimal JavaScript example showing how an AI agent can make x402 payments to interact with paid API endpoints.
https://github.com/test/x402-example