You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With statamic-webhook-manager 2.10 the payment and subscription moments appear there as
triggers. Nothing to do if you want that. To switch it off, set statamic-payments.webhook_manager.enabled to false (env STATAMIC_PAYMENTS_WEBHOOK_MANAGER).
Without the webhook manager nothing changes.
Added
[new] Webhook Manager triggers. With goldnead/statamic-webhook-manager installed, the twenty
payment and subscription moments appear there as triggers under the automations handles
(payments.paid … payments.subscription_ended), labelled in German and English. Each body is a
chosen list of fields, never a model: no card data, no mandate, no provider responses, no
thank-you or portal token, the IP only as its /24 or /48 network. Every body carries event, occurred_at, brand (id, handle), subject_type and subject_id; the full list per
trigger is in the README. Delivered in the brand of the row, so a provider webhook or the
reminder command reaches the right brand's hooks. SubscriptionCycleFailed and PaymentCommunicationLogged are not offered, as in automations.
[new] Every body carries event_id (sha1 of handle and what makes the moment unique: the object,
its own time or reference), the same when the same moment is told twice, so receivers can drop
duplicates. occurred_at and the manager's event time are the moment's own time (paid_at, refunded_at, ended_at …), not the time of sending.
[new] Handed over after the surrounding database transaction commits, never after a rollback (the
dunning run ends a subscription inside one).
[new] A row naming a brand that cannot be set is not delivered at all (logged), instead of going out
through the current brand's hooks.
[new] The README says it plainly: order between triggers is not guaranteed; sort by occurred_at,
deduplicate by event_id.
[new] The coupling is optional: composer suggest, the manager's classes are checked by name before
anything that implements its interface is loaded, and registration retries at the end of the
booted queue. A new test boots the addon in its own process with the manager and brand-context
hidden from the autoloader.