aws-samples / aws-samples/sample-agentic-serverless-payments
Feature: make facilitator URL configurable
- Dominant language
- TypeScript
- Stars
- 9
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
The facilitator endpoint is currently hardcoded to `x402.org` in the serverless and agentic flows. With the x402 ecosystem now listing 27+ facilitators on [x402.org/ecosystem](https://www.x402.org/ecosystem?filter=facilitators), it would be useful to make this configurable — e.g., via an env variable like `FACILITATOR_URL` in the `.env` files.
This would let users:
- Test against different facilitators without code changes
- Use mainnet-capable facilitators (x402.org is testnet-only)
- Choose facilitators optimized for their use case (latency, gas sponsorship, network support, etc.)
Happy to contribute a PR if there's interest.
Contributor guide
Assessment
This issue has not been assessed yet.