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

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

Summary

Callbacks

Handles a Stripe webhook event within your application.

Types

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

Callbacks

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

Handles a Stripe webhook event within your application.