Skip to main content

Module hooks

Module hooks 

Source
Available on crate feature server only.
Expand description

Paygate-level lifecycle hooks.

Unlike facilitator-level FacilitatorHooks which fire inside verify / settle, these hooks fire at the HTTP paygate layer and let integrators:

  • bypass payment for API-key holders,
  • enforce IP allow-lists / KYT checks,
  • short-circuit the request with a custom error response.

Structs§

NoopPaygateHooks
No-op PaygateHooks implementation used as the default when no hooks are configured.

Enums§

ProtectedRequestOutcome
Outcome returned by PaygateHooks::on_protected_request.

Traits§

DynPaygateHooks
Dyn-compatible shim over PaygateHooks.
PaygateHooks
Lifecycle hooks for the HTTP paygate layer.