plugins/woocommerce/settlekit-for-woocommerce charges WooCommerce orders in USDC: checkout creates a SettleKit payment request for the order total (no email, return to the order received page) and redirects to the hosted pay page, reusing an open payment when the buyer comes back. The signed invoice.paid webhook (?wc-api=settlekit) completes the order after checking invoice id and amount, and the thank-you page double-checks the status. Structure ported from btcpayserver/woocommerce-greenfield-plugin (MIT, 371ebfc) with LICENSE and NOTICE kept. A standalone PHP suite runs under plain PHP CLI and from vitest, including a cross-check of the PHP signature verifier against @settlekit/webhooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
SettleKit for WooCommerce
A WooCommerce payment gateway that charges orders in USDC through SettleKit payment requests. Ported from btcpayserver/woocommerce-greenfield-plugin (MIT); see settlekit-for-woocommerce/NOTICE.
- Checkout creates a payment request for the order total (
POST /v1/invoices/requests, no email,successUrl= order received page) and redirects to the hosted pay page. - The signed
invoice.paidwebhook (https://STORE/?wc-api=settlekit) completes the order after checking the invoice id and amount. The order received page also checks the status, so a late webhook never leaves a paid order pending. - Only offered for USD-priced stores (USDC settles 1:1).
Package
cd plugins/woocommerce && zip -r settlekit-for-woocommerce.zip settlekit-for-woocommerce -x '*/tests/*'
Upload the zip in WordPress under Plugins > Add New > Upload.
Tests
php plugins/woocommerce/settlekit-for-woocommerce/tests/run.php
packages/webhooks/test/woocommerce-plugin.test.ts runs the same suite from vitest and checks the PHP signature verifier against @settlekit/webhooks (skipped without a PHP CLI).