Linux 软件免费装
Banner图

Ax402 for WooCommerce

开发者 axlabs
更新时间 2026年9月24日 19:27
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

woocommerce payments crypto usdc x402

下载

0.4.3

详情介绍:

Ax402 for WooCommerce adds a payment method that settles orders with Ax402 / x402. Shoppers pay from a wallet on the pay page. Agents can use the same payment URL via the Ax402 CLI or buyer SDKs. Your catalog stays in USD. Settlement tokens come from your Ax402 platform config (for example USDC). Classic checkout and Cart / Checkout Blocks are supported. HPOS is supported. You need an Ax402 merchant account and API key from https://ax402.io External services This plugin does not include analytics, advertising pixels, or other tracking. It contacts the services below only to accept Ax402 / x402 payments. Saving an Ax402 API key in WooCommerce settings is consent to use the Ax402 service. WalletConnect, Hedera Mirror Node, and public RPC calls run in the shopper’s browser when they choose to pay. Ax402 Ax402 (operated by AxLabs) creates payment endpoints, syncs settlement tokens, confirms settlements, and serves the payment gateway the shopper or agent pays. The browser and the WordPress server may call your assigned gateway host (*.ax402.io) under the same operator. Chain metadata (GitHub / ethereum-lists) When a settlement token does not already include a chain name, public RPC, or explorer URL, the plugin may fetch one public Ethereum chain JSON file from the GitHub Contents API at https://api.github.com/repos/ethereum-lists/chains/contents/_data/chains/eip155-{id}.json, cached for 24 hours per chain. The dataset is https://github.com/ethereum-lists/chains (MIT). WalletConnect / Reown On the pay page, when a shopper selects Hedera settlement and the merchant has configured a WalletConnect project ID, the browser uses WalletConnect / Reown to discover and connect a Hedera wallet (for example HashPack). This includes WalletConnect relay traffic such as https://rpc.walletconnect.com/. Hedera Mirror Node On the pay page, the shopper's browser may query public Hedera Mirror Node REST endpoints (mainnet-public.mirrornode.hedera.com / testnet.mirrornode.hedera.com) to read token balances and network readiness. Public EVM RPC endpoints The shopper’s browser may call public EVM JSON-RPC URLs taken from token metadata or ethereum-lists chain files (via the GitHub Contents API) for balance checks, chain switching, and payment signing with their wallet. No server-side private keys are sent. Exact RPC URLs vary by chain. Wallet extensions (for example MetaMask) run locally in the shopper’s browser; private keys never leave the wallet. UCP discovery JSON may include protocol spec and schema URLs (https://ucp.dev, https://x402.org/schemas/ucp-payment-handler.json, and https://github.com/AxLabs/ucp-x402-binding). Those are documentation identifiers. This plugin does not call them as APIs. Source code and build Minified frontend assets live in build/. Readable source, build tooling, and third-party license notes: https://github.com/AxLabs/ax402-woocommerce-extension See also assets/THIRD_PARTY_LICENSES.md in the plugin package. ``` npm --prefix plugin ci npm --prefix plugin run build Optional lean EVM-only bundle (stubs Hedera): AX402_EVM_ONLY=1 npm --prefix plugin run build ``` The default build includes Hedera WalletConnect support (~2MB pay-page bundle).

安装:

  1. Upload the ax402-for-woocommerce folder to /wp-content/plugins/, or install the zip via Plugins → Add New → Upload.
  2. Activate the plugin (WooCommerce required).
  3. Set the store currency to USD.
  4. Go to WooCommerce → Settings → Payments → Ax402 and enter your API key, EVM pay-to wallet, settlement tokens, and (if enabling Hedera tokens) a Hedera account id plus WalletConnect project ID.

常见问题:

Where do I get an API key?

Sign in at https://ax402.io, open API keys, give the key a name (for example “Ax402 for WooCommerce”), select All scopes, then Create API Key.

Why USD?

Order totals are priced in USD and mapped to Ax402 settlement tokens. Non-USD store currencies are not supported in this release.

Are the REST routes public?

Yes, by design. Agent browse/buy routes (/wp-json/ax402/v1) and UCP shopping routes (/wp-json/ucp/v1) are public storefront APIs for humans and buying agents. Each route sets permission_callback to __return_true. The fulfill callback is public so Ax402 can confirm payment; it is gated by WooCommerce order key plus a one-time fulfill token. UCP session, cart, and order URLs use the WooCommerce order key as the capability. Settlement selection requires a valid order key. Disable UCP in Ax402 settings if you do not want agent discovery.

What is UCP?

Universal Commerce Protocol support for buying agents (/.well-known/ucp and /wp-json/ucp/v1). On by default. Disable it on the Ax402 settings screen if you do not want agent discovery. The human pay page does not change. x402 payment on that surface follows https://github.com/AxLabs/ucp-x402-binding

Can I hide the Ax402 credit on the pay page?

Yes. In gateway settings, leave “Show Ax402 credit on the pay page” unchecked (default).

更新日志:

0.4.3 0.4.2 0.4.1 0.4.0 0.3.0 0.2.0 0.1.0