Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/aifinpay/wordpress-aifinpay/releases/download/v0.2.0/aifinpay-0.2.0.zipAiFinPay for WordPress
Shadow by default: counts AI agents. Enforce: the HTTP 402 of @aifinpay/gate, receipts verified locally, units metered in the site's database. End-user text: readme.txt.
src/Core is free of WordPress calls (a test fails otherwise). src/WordPress is the adapter.
Test
Needs PHP 8.1+, Composer, Node 22+, WP-CLI, no Docker.
composer install
php vendor/bin/phpunit --testsuite core
scripts/setup-wp.sh test 8190 sqlite
AIFINPAY_WP_ROOT=.local/test/web php vendor/bin/phpunit --testsuite wordpress
node scripts/check-gate-parity.mjs
Both check @aifinpay/gate 0.10.1 from npm; for an unpublished build set GATE_DIST=<sdk>/gate/dist.
node tests/e2e/run.mjs sqlite
For MySQL, start a private server first (scripts/start-mysql.sh), then node tests/e2e/run.mjs mysql.
node scripts/mutation-check.mjs
The fixtures in tests/fixtures are shared with the other AiFinPay gate adapters. check-gate-parity.mjs replays the published @aifinpay/gate against them.
Build
scripts/build-zip.shReleases
1 release. Each count is every asset in that release; expand a row for the breakdown.