details: https://code.tryton.org/tryton/commit/3561242b561a
branch: default
user: Cédric Krier <[email protected]>
date: Tue Dec 23 12:09:31 2025 +0100
description:
Define request body when there is no signing secret defined
Closes #14447
diffstat:
modules/account_payment_stripe/routes.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 9c76c6dd5260 -r 3561242b561a modules/account_payment_stripe/routes.py
--- a/modules/account_payment_stripe/routes.py Mon Dec 22 20:11:10 2025 +0100
+++ b/modules/account_payment_stripe/routes.py Tue Dec 23 12:09:31 2025 +0100
@@ -88,9 +88,9 @@
('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)