Skip to content

Commit

Permalink
docs: fix stripe webhookplug secret function format
Browse files Browse the repository at this point in the history
  • Loading branch information
27medkamal committed Oct 15, 2024
1 parent 2132080 commit 891560c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe/webhook_plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if Code.ensure_loaded?(Plug) do
plug Stripe.WebhookPlug,
at: "/webhook/stripe",
handler: MyAppWeb.StripeHandler,
secret: fn -> Application.get_env(:myapp, :stripe_webhook_secret) end
secret: &MyAppWeb.Secrets.stripe_webhook_secret/0 # a remote function in the format &Mod.fun/arity
```
"""

Expand Down

0 comments on commit 891560c

Please sign in to comment.