PLUGINS
WordPress
REST route sync plugin
Production plugin that connects WordPress to the ax402 control plane and monetizes REST routes via the hosted gateway. Source: ax402-sdk/plugins/wordpress/.
Requirements
- WordPress 6.0+, PHP 8.0+ with OpenSSL
- API key with
apiManagerscope preset
- API key with
Setup
- Copy
plugins/wordpress/towp-content/plugins/ax402-gateway/- Bundle or symlink
plugins/shared/for the PHP HTTP client - Settings → Ax402: control plane URL + API key (stored encrypted)
- Create API & gateway — auto-onboards with upstream
/wp-json - Sync REST route — pick route, USDC price, scheme
- Bundle or symlink
Buyer flow
Buyers hit the gateway hostname with an x402 client (SDK, CLI, or agent). The gateway verifies payment and proxies to the WordPress REST API.
Related
- E-commerce overview
- WooCommerce extension
- Agent guide — automate API setup