caelum0x 40f90f1c5a feat: webhook event log with resend, test events, secret rotation and auto-disable (G8)
Every seller webhook delivery now keeps an attempt log (status code,
error, time, next retry) in the worker queue (Postgres) or in memory.
New routes: GET /v1/webhooks/deliveries(/:id), POST
/v1/webhooks/events/:id/resend, POST /v1/webhooks/endpoints/:id/test
(signed webhook.test event), rotate-secret with a 0-168h grace window
(both secrets sign as two v1 values, verified by @settlekit/webhooks, the
TS/Python/Go/Rust SDKs and the WooCommerce plugin), and disable/enable.
The worker retries on a 1m..6h exponential schedule instead of every tick,
signs with the live endpoint secret, skips disabled endpoints and
auto-disables one after 100 failed attempts in a row
(WEBHOOK_DISABLE_AFTER_FAILURES). Outbound requests get a 10s timeout.
The dashboard Webhooks page shows the event log with Resend and endpoint
actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 05:34:39 +03:00
..

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.paid webhook (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).