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 14, 2024
1 parent 2132080 commit 888d2bb
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 @@ -83,7 +83,7 @@ if Code.ensure_loaded?(Plug) do
plug Stripe.WebhookPlug,
at: "/webhook/stripe",
handler: MyAppWeb.StripeHandler,
secret: Application.get_env(:myapp, :stripe_webhook_secret)
secret: &MyAppWeb.Secrets.stripe_webhook_secret/0 # a remote function in the format &Mod.fun/arity
```
### Runtime configuration
Expand Down

0 comments on commit 888d2bb

Please sign in to comment.