From 4d0befb67a9cf2d368f4866ccf87f4671c26b527 Mon Sep 17 00:00:00 2001 From: Konsequanzheng <45843441+Konsequanzheng@users.noreply.github.com> Date: Mon, 15 Jul 2024 09:01:03 -0500 Subject: [PATCH] Correct stripe plugin documentation local use webhook url (#7144) ## Description The stripe plugin documentation has an error in the forwarding URL for local development (`/stripe/webhooks` instead of `/api/stripe/webhooks`) Spent a day debugging my application because the URL in the docs is wrong. Hoping to save others some time with this correction. - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Documentation correction --- docs/plugins/stripe.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/stripe.mdx b/docs/plugins/stripe.mdx index a7c9347620..12f2b6fcb1 100644 --- a/docs/plugins/stripe.mdx +++ b/docs/plugins/stripe.mdx @@ -114,7 +114,7 @@ const res = await fetch(`/api/stripe/rest`, { Development: 1. Login using Stripe cli `stripe login` -1. Forward events to localhost `stripe listen --forward-to localhost:3000/stripe/webhooks` +1. Forward events to localhost `stripe listen --forward-to localhost:3000/api/stripe/webhooks` 1. Paste the given secret into your `.env` file as `STRIPE_WEBHOOKS_ENDPOINT_SECRET` Production: