# `AshBilling.Plug`
[🔗](https://github.com/sfelixalejandro/ash_billing/blob/v0.1.3/lib/ash_billing/plug.ex#L1)

A Plug for receiving and verifying incoming webhooks from billing providers.

## Usage in Phoenix Router

    forward "/webhooks/stripe", AshBilling.Plug,
      provider: AshBilling.Providers.Stripe,
      webhook_secret: {System, :get_env, ["STRIPE_WEBHOOK_SECRET"]},
      handler: MyApp.Billing.WebhookHandler

---

*Consult [api-reference.md](api-reference.md) for complete listing*
