X402.Hooks.Default (X402 v0.3.3)

Copy Markdown View Source

Default no-op implementation of X402.Hooks.

Every callback returns {:cont, context} so facilitator operations proceed unchanged.

Summary

Functions

Continues settle success handling without changes.

Continues verify success handling without changes.

Continues settle flow without changes.

Continues verify flow without changes.

Continues settle failure handling without changes.

Continues verify failure handling without changes.

Functions

after_settle(context, metadata)

(since 0.1.0)
@spec after_settle(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues settle success handling without changes.

after_verify(context, metadata)

(since 0.1.0)
@spec after_verify(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues verify success handling without changes.

before_settle(context, metadata)

(since 0.1.0)
@spec before_settle(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues settle flow without changes.

before_verify(context, metadata)

(since 0.1.0)
@spec before_verify(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues verify flow without changes.

on_settle_failure(context, metadata)

(since 0.1.0)
@spec on_settle_failure(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues settle failure handling without changes.

on_verify_failure(context, metadata)

(since 0.1.0)
@spec on_verify_failure(X402.Hooks.Context.t(), X402.Hooks.metadata()) ::
  {:cont, X402.Hooks.Context.t()}

Continues verify failure handling without changes.