View Source Stripe.WebhookHandler behaviour (stripity_stripe v3.1.1)

Webhook handler specification. See Stripe.WebhookPlug for more details.

Link to this section Summary

Callbacks

Handles a Stripe webhook event within your application.

Link to this section Types

@type error_reason() :: binary() | atom()

Link to this section Callbacks

@callback handle_event(event :: Stripe.Event.t()) ::
  {:ok, term()} | :ok | {:error, error_reason()} | :error

Handles a Stripe webhook event within your application.