Skip to content

Put XGuard inside WordPress x402 Pay facilitator selection - #479

Open
moelayyan90 wants to merge 4 commits into
mainfrom
feat/wordpress-x402-pay-connector
Open

Put XGuard inside WordPress x402 Pay facilitator selection#479
moelayyan90 wants to merge 4 commits into
mainfrom
feat/wordpress-x402-pay-connector

Conversation

@moelayyan90

Copy link
Copy Markdown
Owner

Add a native external facilitator connector for Automattic x402-Pay / WordPress 7.0 Connectors API.

The goal is distribution inside an existing payment path: after installing the connector, site owners can select XGuard — Base mainnet directly from Settings → x402 Pay → Facilitator.

Implementation:

  • registers connector type x402_facilitator
  • uses x402 Pay's own X402FacilitatorClient
  • Base mainnet + official USDC profile matching x402 Pay's production profile
  • canonical backend https://api.xguardgate.com
  • zero-config/free-allowance mode by default
  • optional XGUARD_LICENSE_KEY constant/env adds Bearer authorization for Usage Credits
  • preserves site-configured receiving wallet and price; no managed payTo override
  • behavioral contract test stubs WordPress/x402-Pay and asserts registration, Base USDC profile, facilitator URL, optional auth, and pass-through behavior
  • CI lints PHP, runs the contract test, verifies live XGuard 5.0.1, and builds an installable plugin zip

No WordPress.org or Automattic approval is claimed by this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant