details:   https://code.tryton.org/tryton/commit/33dc0ceecccf
branch:    7.4
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
        (grafted from 3561242b561a96629cd1c8af18141e5ffc5c139d)
diffstat:

 modules/account_payment_stripe/routes.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 59a047aa9573 -r 33dc0ceecccf modules/account_payment_stripe/routes.py
--- a/modules/account_payment_stripe/routes.py  Sat Dec 20 21:19:44 2025 +0100
+++ b/modules/account_payment_stripe/routes.py  Tue Dec 23 12:09:31 2025 +0100
@@ -61,9 +61,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)

Reply via email to