From 34cb1a4b350a81d5a3ca8f1695e4f644cb9feeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Dec 2025 12:09:31 +0100 Subject: [PATCH] Define request body when there is no signing secret defined Closes #14447 --- modules/account_payment_stripe/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment_stripe/routes.py b/modules/account_payment_stripe/routes.py index 591f4001e9..7c04178794 100644 --- a/modules/account_payment_stripe/routes.py +++ b/modules/account_payment_stripe/routes.py @@ -88,9 +88,9 @@ def webhooks_endpoint(request, pool, account): ('webhook_identifier', '=', account), ]) + request_body = request.get_data(as_text=True) if account.webhook_signing_secret: sig_header = request.headers['STRIPE_SIGNATURE'] - request_body = request.get_data(as_text=True) try: stripe.Webhook.construct_event( request_body, sig_header, account.webhook_signing_secret)