CustomEvents on document whenever the subscriber’s billing status changes. Use these to trigger analytics, update your own UI, or log conversion events.
Event reference
All events are dispatched ondocument (not window).
steadpay:lockout
Fires when the subscriber transitions to lockout from any prior state. Also fires on first load if the subscriber is already in lockout (null → lockout).
steadpay:warning
Fires when the subscriber transitions to warning from a non-null prior state. Suppressed on initial page load (null → warning does not fire).
steadpay:active
Fires when the subscriber transitions to active from a non-null prior state. Suppressed on initial page load (null → active does not fire).
steadpay:recovered
Fires when a subscriber in lockout completes the card update flow inside the gate overlay. This is distinct from steadpay:active and represents a conversion event — the subscriber upgraded their payment method in-session.
Transition rules
Events fire on status transitions only — not on every poll tick when the status is unchanged.| Transition | Event fired |
|---|---|
null → lockout (first load) | steadpay:lockout |
null → warning (first load) | (suppressed) |
null → active (first load) | (suppressed) |
active → warning | steadpay:warning |
active → lockout | steadpay:lockout |
warning → lockout | steadpay:lockout |
lockout → active (via polling) | steadpay:active |
warning → active (via polling) | steadpay:active |
| card update completed in gate | steadpay:recovered |
| status unchanged between polls | (nothing) |
steadpay:active vs steadpay:recovered
Both events signal that the subscriber is now active. The difference:
steadpay:active— the server resolved the issue (e.g. a retry succeeded or an operator reinstated the subscriber)steadpay:recovered— the subscriber completed the card update flow in the current session
steadpay:recovered to attribute revenue recovery to the enforcement gate.