Skip to content

Commit 0549d75

Browse files
authored
docs: fix stripe webhookplug secret function format (#860)
1 parent 2132080 commit 0549d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stripe/webhook_plug.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if Code.ensure_loaded?(Plug) do
102102
plug Stripe.WebhookPlug,
103103
at: "/webhook/stripe",
104104
handler: MyAppWeb.StripeHandler,
105-
secret: fn -> Application.get_env(:myapp, :stripe_webhook_secret) end
105+
secret: &MyAppWeb.Secrets.stripe_webhook_secret/0 # a remote function in the format &Mod.fun/arity
106106
```
107107
"""
108108

0 commit comments

Comments
 (0)