Spree Commerce Events & Webhooks
Integrates Spree Commerce's event-driven architecture and Webhooks 2.0 to decouple business logic and connect external services.
This skill enables developers to leverage the Spree event bus and Webhooks 2.0 for building scalable, decoupled e-commerce applications. It provides the necessary patterns for subscribing to lifecycle events (order, product, payment), implementing custom subscribers using the Spree DSL, and securely consuming webhooks with HMAC-SHA256 signature verification. It is particularly useful for replacing complex callback chains with asynchronous, event-driven workflows and integrating with third-party analytics, accounting, or fulfillment systems.
Key Features
01Management of lifecycle events for Orders, Payments, and Products
0232 GitHub stars
03Secure Webhooks 2.0 configuration with HMAC-SHA256 signing
04Implementation of Spree::Subscriber DSL with wildcard matching support
05Standardized signature verification patterns for Ruby and TypeScript consumers
06Asynchronous job orchestration using Sidekiq and exponential-backoff retries
Use Cases
01Decoupling complex business logic from ActiveSupport callbacks into isolated subscribers
02Implementing cross-cutting concerns like global logging or analytics tracking via event wildcards
03Building secure, idempotent webhook consumers for external system integrations