A reliable webhook delivery and retry manager for WooCommerce. Prevents dropped order notifications to external ERP, CRM, and shipping services when third-party servers experience temporary downtime.
Developed and maintained by Harun Sekmen — E-Commerce Systems Engineer & WooCommerce Developer.
✉️ Discuss System Integrations · 💼 Upwork Profile · 🔗 Main GitHub Profile
Store administrators can inspect failed webhook attempts, monitor third-party response codes, and trigger immediate manual payload replays:
WooCommerce webhooks are essential for automatically notifying external business systems—such as warehouse fulfillment providers (ShipStation), customer platforms (Klaviyo, HubSpot), accounting software, or custom ERPs—whenever a customer places an order or updates their account.
However, native webhook deliveries can run into real-world issues:
- Silent Delivery Drops: If the destination server experiences a momentary network timeout, rate limit, or 500 error, the webhook delivery often fails silently.
- Untracked Orders: Warehouse fulfillment teams never receive the order alert, leading to delayed shipments and unhappy customers before anyone notices the error.
- No Simple Replay: Native WooCommerce does not offer an easy button to re-send a specific failed webhook payload without manually flipping order statuses back and forth.
WooCommerce Resilient Webhook Dispatcher ensures dependable communication with third-party tools. If a delivery fails, it is automatically scheduled for retry at spaced intervals and logged in a visual WP Admin dashboard, where store managers can inspect the exact payload and replay it with one click.
How outgoing order webhooks are protected with Action Scheduler exponential retry and isolated dead-letter handling:
flowchart LR
A[Order Completed Event] --> B[Webhook Dispatcher]
B --> C{Delivery Success?}
C -- 200 OK --> D[Mark Delivered & Archive]
C -- Timeout / 5xx Error --> E[Action Scheduler Queue]
E --> F[Exponential Backoff Retry 1, 2, 3...]
F --> G{Max Retries Exceeded?}
G -- No --> B
G -- Yes --> H[Dead Letter Queue DLQ]
H --> I[Admin Alert & Manual Replay UI]
- Automated Retry Scheduling: Automatically retries failed webhook deliveries at spaced intervals (e.g., +1m, +5m, +15m, +1h, +6h) before marking them for review.
- Failed Delivery Queue: Preserves intact JSON payloads, HTTP response codes, and error messages for complete transparency.
- 1-Click Manual Replay: Re-send any failed notification directly from the WordPress Admin table without touching the order status.
- Background Processing via Action Scheduler: Retries run completely in the background without affecting store checkout performance.
- High-Performance Order Storage (HPOS) Ready: Built to support modern WooCommerce custom order tables and standard webhook actions.
Need your WooCommerce store connected reliably to external APIs and services?
- Custom ERP & CRM Integrations: Dependable two-way syncing with HubSpot, Klaviyo, Zoho, Odoo, or proprietary ERPs.
- Fulfillment & Shipping Connections: Automated order handoffs to warehouse networks, local couriers, and tracking updates.
- Accounting & Invoicing Feeds: Automated invoice generation and tax synchronization.
- Resilient Webhook Handlers: Custom endpoints designed to handle third-party downtime gracefully.
📩 Discuss your integration: Email [email protected] or reach out via Upwork.
-
Clone into plugins directory:
git clone https://github.com/harunsekmen/woo-webhook-resilience.git wp-content/plugins/woo-webhook-resilience
-
Activate via WP-CLI:
wp plugin activate woo-webhook-resilience
-
Inspect the retry console: Go to WooCommerce > Webhook Queue in WordPress Admin to review delivery logs and test manual replays.
This open-source project is licensed under the GNU General Public License v3.0.
