From dd8f2f2bba0bace6da60ade32e0d795debd21666 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 12 Jan 2024 12:14:45 -0800 Subject: [PATCH] Add a hint about formatting during request forwarding --- src/Webhooks.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Webhooks.ts b/src/Webhooks.ts index 7ac67f7f41..038c205d29 100644 --- a/src/Webhooks.ts +++ b/src/Webhooks.ts @@ -378,6 +378,8 @@ export function createWebhooks( message: 'No signatures found matching the expected signature for payload.' + ' Are you passing the raw request body you received from Stripe? \n' + + ' If a webhook request is being forwarded by a third-party tool,' + + ' ensure that the exact request body, including JSON formatting and new line style, is preserved.\n' + docsLocation + '\n' + whitespaceMessage,